Error on popen()
Posted: Thu Mar 25, 2010 8:47 am
Hello all,
I'm trying to use the popen() function to run a php thread like this:
On the popen() line I am receiving an error message that the "file or directory does not exist". I'm not sure what I'm doing wrong here. Could it be permissions? Perhaps it is looking for a path relative to the working directory (not sure what that would be in this case)?
I'm trying to use the popen() function to run a php thread like this:
Code: Select all
$command_string = "start /b c:\\php\\php.exe c:\\inetpub\\wwwroot\\app_folder\\script.php --arg1=foo --arg2=bar ";
popen($command_string, 'r');