Unable to Fork - suggestions?

From: Date: Fri, 04 Oct 2002 13:56:44 +0000
Subject: Unable to Fork - suggestions?
Groups: php.windows 
Request: Send a blank email to php-windows+get-16165@lists.php.net to get a copy of this message
Hi - I need to run some system commands using passthru() or exec() but every single one I do gives me an "unable to fork" error. For example, when trying to make a call to an ImageMagick tool: <?php Header("Content-type: image/gif"); passthru("C\imagemagick\convert -crop 0x0 -bordercolor white -border 10x10 inputfile.png GIF:- ?> I've got PHP 4.2.3 installed on a Win NT 4 SP6a server running IIS (PHP is running in CGI mode). I have the IIS Lockdown tool installed and URLscan, which I think prevents web users from running cmd.exe, which I think may be part of the problem as I vaguely rememvber reading that since PHP 4.06 cmd.exe us appended in fgron of all system calls... Would using Apache as the webserver instead of IIS help? Anyway, does anyone have any of the program execution functions (exec(), passthru(),system(), etc.) running without errors on PHP 4.2.x. and Windows? If so, please let me know how you did it! :-) cheers Paul *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+* Paul Groves paul.groves@oucs.ox.ac.uk Senior Project Officer, Academic Computing Development Team www.oucs.ox.ac.uk/acdt/ ACDT is part of the Learning Technologies Group www.oucs.ox.ac.uk/ltg/ Oxford University Computing Services | University of Oxford | 13 Banbury Road | Oxford OX2 6NN | Tel: 01865 273290 *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+* *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+* Paul Groves paul.groves@oucs.ox.ac.uk Senior Project Officer, Academic Computing Development Team www.oucs.ox.ac.uk/acdt/ ACDT is part of the Learning Technologies Group www.oucs.ox.ac.uk/ltg/ Oxford University Computing Services | University of Oxford | 13 Banbury Road | Oxford OX2 6NN | Tel: 01865 273290 *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*

« previous php.windows (#16165) next »