Re: Exec()
| From: | Patrick | Date: | Wed, 11 Apr 2001 12:54:29 +0000 |
| Subject: | Re: Exec() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6634@lists.php.net to get a copy of this message | ||
""Helmut Himmelstoss"" <Helmut.Himmelstoss@t-online.de> wrote in message
news:9avht3$kc3$1@toye.p.sourceforge.net...
> HI,
>
> system(), exec() etc. don't work properly under Windows.
> they just don't hand back the output.
>
> Has anyone got these functions working (e.g. Ping.exe)??
>
> THX Helmut
This works for me
<?
//escaping the backslash and in single quotes
//this works for win98/apache/php4apache.dll
//NOTE: this and the php4isapi.dll is not yet ready
//for production, if CGI MODE then I do think it should work
echo"<pre>";
$dd=system('c:\\windows\\netstat -a');
echo "$dd ;;this is a test";
echo"</pre>";
?>