Josh,

Believe it or not, I found an effective way to do that with a batch script!
But PHP works better :)

One of the easiest ways in PHP is to use the backtick method - the `
character (just like in unix).

Example:

<pre>
<?php
echo `ping blah.host.com`;
?>
</pre>

Works great.

-Dash

-----Original Message-----
From: Evans, Josh [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 18, 2002 11:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] executing windows command with php


what would be the best way to ping a host and return the output to a
webpage?




-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to