Program execution functions doesn´t work in my system
| From: | Beginning PHP Programmer | Date: | Sun, 24 Jun 2001 19:31:50 +0000 |
| Subject: | Program execution functions doesn´t work in my system | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55070@lists.php.net to get a copy of this message | ||
Hi
In the PHP manual there are some program execution functions like passthru(), exec() and system().
I´ve got PHP4 installed on IIS 5.0 on Windows 2000 Server, and it works fine.
I tried with a very simple script like the following:
<?
$commandstring = "cmd";
passthru($commandstring);
?>
But it doesn´t work. You can see this warning in the explorer:
Warning: Unable to fork [cmd] in d:\inetpub\wwwroot\nntpadm\creategroup.php on line 3
I need to run some external programs from a PHP script.
How could I do that?
Thanks in advance.
Rub