SV: [PHP] Checking if a web, a url really exists ?
| From: | Daniel Svensson, Coretrek | Date: | Mon, 19 Mar 2001 14:35:54 +0000 |
| Subject: | SV: [PHP] Checking if a web, a url really exists ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44549@lists.php.net to get a copy of this message | ||
This should work:
$url = http://www.php.net;
if ($fp = fopen ($url, "r"))
{
/* DO THE STUFF */
}
Of course the entire web page can be retrieved through the created file
pointer.
/Daniel
-----Opprinnelig melding-----
Fra: Steve Haemelinck [mailto:steve.haemelinck@pandora.be]
Sendt: 19. mars 2001 15:27
Til: PHP Mailing Listl (E-mail)
Emne: [PHP] Checking if a web, a url really exists ?
Anybody got an idea on how to check if a url really exists ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net