Bug #11722 Updated: unable to fork with system command

From: Date: Sat, 06 Jul 2002 11:04:59 +0000
Subject: Bug #11722 Updated: unable to fork with system command
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-13299@lists.php.net to get a copy of this message
ID: 11722 Updated by: sorinv@yahoo.com Reported By: erik@pbmusic.nl Status: Closed Bug Type: Program Execution Operating System: win98 PHP Version: 4.0.6 New Comment: If you want to run a windows command that is an internat command (not exe, it is carried out by the cmd.exe process) prefix your command with 'cmd /C '. Example: system('cmd /C md xxx'); This will make it work. Sorin Previous Comments: ------------------------------------------------------------------------ [2001-07-23 11:52:40] kalowsky@php.net closed due to no user feedback. if this bug is still valid, please reopen the bug. ------------------------------------------------------------------------ [2001-06-27 22:07:52] sniper@php.net You have a time machine? Can you give me a copy of PHP 4.1? :) I assume you meant PHP 4.0.1? system() works for me just fine with PHP 4.0.6. Are you sure you have installed PHP correctly? Is it run as CGI or as Apache module? ------------------------------------------------------------------------ [2001-06-27 03:23:09] erik@pbmusic.nl I am running a appache 1.3 webserver with PHP 4.1 wen i use the command: system('md xxx'); everything works fine now i have installed php4.6 and i get the message "unable to fork" wenn i run the same script. what am i doing wrong? Do i need to start the process in background with an other program??? Many thanks in advance. PHP is perfect. Erik ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=11722&edit=1

« previous php.bugs (#13299) next »