""Helmut Himmelstoss"" <[EMAIL PROTECTED]> wrote in message
9avht3$kc3$[EMAIL PROTECTED]">news:9avht3$kc3$[EMAIL PROTECTED]...
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to