Re: Exec()
| From: | Helmut Himmelstoss | Date: | Wed, 11 Apr 2001 16:03:05 +0000 |
| Subject: | Re: Exec() | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-6636@lists.php.net to get a copy of this message | ||
it did'nt works. I get no result. I work in CGI Mode under WinNT and IIS5
""Patrick"" <patrickolson@qwest.net> schrieb im Newsbeitrag
news:9b1niq$hqa$1@toye.p.sourceforge.net...
>
> ""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>";
> ?>
>
>
>
> --
> 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
>