I have a shell script which mcrypts for me

   echo "Preparing..."
   mcrypt -F -c ./.mcrypt $ORIG
   echo "Moving..."
   mv "$ORIG.nc" $CRYPTED
   echo "Done"

the php file calls it

$COMMAND = './crypt.sh '.$CNAME;

if ($_POST['cname']) {
    $output=shell_exec($COMMAND);
    echo $output;
}

i can see Preparing... Moving... Done but
the file is not encrypted! but if i run
php index.php through ssh, the encrypt happens.
why is it going through the script but not crypting or
moving or outputting anything else?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.