|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-17 18:13 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 17 00:00:01 2025 UTC |
Description: ------------ I recently had to upgrade a host to Windows 2003 Server, IIS 6 and PHP 4.3.4. Everything seems to work OK except when I try to use exec() or passthru(). I get errors similar to the following Warning: passthru(): Unable to fork [c:/Inet/MIS/sql/echo.bat] in c:\inet\MIS\MIS\Conv.php on line 91 Both exec() and passthru() give the same error. I stall have another host running Windows 2000 Server, IIS 5 PHP 4.3.2 and the same code works fine. I've checked all the config options for scripting and turned them all on! By default 2003 Server and IIS installs in a heavily protected mode Reproduce code: --------------- if ($Action == "PerlBat") { $Ans = passthru("echo.bat", $Ret); } echo.bat -------- echo "hello bat !!!" 1>echo.outbat 2>>echo.err NOTE: the above is just a simple example script, my applications run much more complicated scripts Expected result: ---------------- I expect the script to execute. Actual result: -------------- Script fails to run.