I have a Perl script that I need to call from within a PHP page. The script runs fine from the command line and is running as a cron job without any problems,. However, when I try to execute it through PHP nothing happens. In fact the only error I get from print_r(error_get_last()) is a number 1.
I’ve tried exec(), passthru() and shell_exec() and all three gave me the same result.
What am I doing wrong?