Re: Problem with: exec(), system()
| From: | Oliver Charlet | Date: | Sat, 24 Feb 2001 21:23:10 +0000 |
| Subject: | Re: Problem with: exec(), system() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5724@lists.php.net to get a copy of this message | ||
hi,
see the entry from 22.2.2001 from Markus.
running PHP4 DLL stops the functions system(), passthru() and ecex() to work
properly, because PHP4 DLL cannot fork threads!
Olli
"Johan Huhtalo" <johu@enea.se> schrieb im Newsbeitrag
news:3A8BAB89.FFC2D54E@enea.se...
> I don´t know whats the problem with exex, system :(
> first time i get: error message: Warning: Unable to fork
> [C:\winnt\system32\cmd.exe dir C:\] in c:/program files/apache
> group/apache/htdocs/relay/relay.php4 on line 28
>
> when second time, it hangs, i dont get any response from the server.
> i have to restart Apache to get the error msg again.
>
> using: Apache 1.3.14 on WinNT 4.0
> PHP Version 4.0.4pl1
>
>
> code:
>
> <?php
> print("Hello world!<BR>\n");
> $cmd = "C:\\winnt\\system32\\cmd.exe dir C:\\"; /* for test, want to
> use c:\\test\\test.exe, but gets the same errors */
> $hmm = system( $cmd );
> ?>
>
> Thanks for help.
>
> --
> Regards
>
> Johan
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>