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 [EMAIL PROTECTED]
  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 [EMAIL PROTECTED]
  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

 *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*



-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to