<?
$file=@fopen($url, "r");

if ($file)
{
print("File available");
}
else
{
print("File not available");
}


fclose($fp);
?>


Hope that helps

Ross


-----Original Message-----
From: Steven Moshier - Information Technology 
[mailto:[EMAIL PROTECTED]] 
Sent: 28 November 2001 20:25
To:     
Subject: [PHP-WIN] Website Check using PHP


I am wondering if there is a way for PHP to query a file on a 
specific website to test the availability of that page. What my 
goal is, is to check multiple websites on 2 different IIS 
servers. Is there a way to use any of the SNMP functions? I 
used the SNMP get function to check the “up” status of our routers.
 
Thanks!, and sorry about the earlier reply to the spam
 
Steven Moshier -  <http://www.stls.org/it> Information 
Technology (607)962-3141 Ext. 212  <mailto:[EMAIL PROTECTED]> 
[EMAIL PROTECTED]
 


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