Re: web page existance check
| From: | Vinod Panicker | Date: | Thu, 29 Apr 2004 09:41:13 +0000 |
| Subject: | Re: web page existance check | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184932@lists.php.net to get a copy of this message | ||
How big is the bookmark database? The approach would ideally change
based on that...
A standard mechanism would be to connect to the web server hosting the
page and issuing a HEAD request for the necessary web page. Parse the
response and ensure that the webserver doesnt issue a 404. Timeouts
ofcourse have to be handled as well.
Regards,
Vinod.
On Thu, 29 Apr 2004 11:18:23 +0200, Decapode Azur
<blue_prawn@tuxfamily.org> wrote:
>
> Hello,
>
> What is the best way to check if a web page is still there or not?
> (For exemple to check the links of a bookmarck database,
> to remove old links.)
>
> Cheers
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>