RE: [PHP-WIN] Website Check using PHP
| From: | Ross Fleming | Date: | Wed, 28 Nov 2001 20:48:16 +0000 |
| Subject: | RE: [PHP-WIN] Website Check using PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10638@lists.php.net to get a copy of this message | ||
<?
$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:stl_steve@stls.org]
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:stl_steve@stls.org>
stl_steve@stls.org