php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11722 unable to fork with system command
Submitted: 2001-06-27 03:23 UTC Modified: 2001-07-23 11:52 UTC
From: erik at pbmusic dot nl Assigned:
Status: Closed Package: Program Execution
PHP Version: 4.0.6 OS: win98
Private report: No CVE-ID: None
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 34 = ?
Subscribe to this entry?

 
 [2001-06-27 03:23 UTC] erik at pbmusic dot 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-27 22:07 UTC] 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-07-23 11:52 UTC] kalowsky@php.net
closed due to no user feedback.  if this bug is still valid, please reopen the bug.
 [2002-07-06 07:04 UTC] sorinv at yahoo dot com
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 01:01:29 2024 UTC