Re: Test Links...
| From: | Ray Hunter | Date: | Fri, 26 Sep 2003 18:35:07 +0000 |
| Subject: | Re: Test Links... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164053@lists.php.net to get a copy of this message | ||
Ive used curl to test stuff out with too...however, if on link i like to
use wget to test it out. You might not have that option but I have seen
others use fopen or file_get_contents.
HTH,
BigDog
On Fri, 2003-09-26 at 10:15, Doug Coning wrote:
> Greetings All,
>
> I am creating a 'links' page and was wondering if there was a way in PHP
> to test the response of an outside link? I'm sure everyone here has
> clicked on a links page link and have a "No Page Found" error because no
> one is keeping the links uptodate. I was wondering if there was a way
> when a link was clicked to test the link first to see if it is still
> active. If it isn't active, I would like to remove the link from my
> database.
>
> Is there a command that tests the results of link?
>
> Thanks,
>
> Doug Coning
> American Web Studio
> http://www.americanwebstudio.com
> HTML / FLASH / PHP / MYSQL / FILEMAKER
>