RE: [PHP-WIN] Website Check using PHP
| From: | Steven Moshier - Information Technology | Date: | Wed, 28 Nov 2001 21:00:11 +0000 |
| Subject: | RE: [PHP-WIN] Website Check using PHP | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-10639@lists.php.net to get a copy of this message | ||
I think we have a solution. Thanks a lot everyone.
Steven Moshier - Information Technology
(607)962-3141 Ext. 212
stl_steve@stls.org
-----Original Message-----
From: Ross Fleming [mailto:r.fleming@totalise.co.uk]
Sent: Wednesday, November 28, 2001 3:48 PM
To: 'Steven Moshier - Information Technology'; php-windows@lists.php.net
Subject: RE: [PHP-WIN] Website Check using PHP
<?
$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
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
For additional commands, e-mail: php-windows-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net