re: shell_exec

From: Date: Sun, 17 Aug 2003 19:40:45 +0000
Subject: re: shell_exec
Groups: php.general 
Request: Send a blank email to php-general+get-159856@lists.php.net to get a copy of this message
All I want to do is execute a perl script. I do not care about output to browser. I have used shell_exec, system, exec, and backticks with no avail. Here is what i have now in my php page. shell_exec("perl data/addSite.pl" . " &> /tmp/error " ); I know the perl script executes because a basic print statement in the perl script is outputted to /tmp/error. However anything else in the script not having to do with output is not executed. The perl script is basically supposed to add a file. That is it. The perl script is fine from command line. All paths are correct and like I said I do not care about output to the browser for the user. My questions is why does the perl script execute (and mostly work) but not execute certain pieces of code when executed from my php page.

« previous php.general (#159856) next »