From:             [EMAIL PROTECTED]
Operating system: Win98
PHP version:      4.0.6
PHP Bug Type:     Program Execution
Bug description:  exec() family problems

exec(), system(), etc. cause php to hang when called through the browser.
when executed from the command line, it works fine.

I'm running PHP4.06, PWS, Win98SE. I'm using the PHP binary downloaded from

I have a batch file, test.bat which contains one line:
echo Hello

My PHP script is:

echo "Executing command: [$cmd]\n";
echo "Return value is: $value\n";

When I run this from the command line, ie. php test.bat, it works as
expected. When I call the script from the browser, a command window opens
and closes quickly, I get no output in the browser and the browser keeps
trying to load the script. If I hit stop, the browser stops with nothing
retrieved at all. PHP is still listed in the task list when pressing

Edit bug report at:

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to