I am using the following statements to execute a Perl script from a web site using PHP.
$perl = shell_exec('perl '.$dest.'/script.pl 2>&1 '.$mail.' '.str_replace("/", "\\", $dest));
I want to run the script server side, but it seems that it uses the Perl that is installed on the client so someone that has not installed Perl could not run the script.
I can't figure out what I am missing.
EDIT: I run:
$perl = shell_exec('C:\Perl\bin\perl.exe -v');
and figure out that was Perl server side running. So now I have to understand why some clients can't execute script.
EDIT 2: It is definitely a permission issue, only administrator could write. I' ll manage the permission.