""Helmut Himmelstoss"" <[EMAIL PROTECTED]> wrote in message
9b21na$iu7$[EMAIL PROTECTED]">news:9b21na$iu7$[EMAIL PROTECTED]...
> I copied the Program Ping.exe to the same directory as my script and the
> User the IUSR_[Machine name] hast the permissions.
>
> <?php
>     echo"<pre>";
>     $dd=system("ping  ping 127.0.0.1");
>     echo "$dd ;;this is a system-test";
>     echo "<hr>";
> ?>
>  The result is the same.......... no result:
>         ;;this is a system-test
>
you must use single quotes in system() call
ping ping whats that check your erorr logs
this worked 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\\ping 127.0.0.1');
echo "$dd ;;this is a test";
echo"</pre>";
?>
printed this out
Pinging 127.0.0.1 with 32 bytes of data:



Reply from 127.0.0.1: bytes=32 time=1ms TTL=128

Reply from 127.0.0.1: bytes=32 time=1ms TTL=128

Reply from 127.0.0.1: bytes=32 time=1ms TTL=128

Reply from 127.0.0.1: bytes=32 time=1ms TTL=128



Ping statistics for 127.0.0.1:

    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

    Minimum = 1ms, Maximum =  1ms, Average =  1ms

    Minimum = 1ms, Maximum =  1ms, Average =  1ms ;;this is a test




-- 
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