You are here: Re: checking for broken URLs with PHP? « PHP Programming Language « IT news, forums, messages
Re: checking for broken URLs with PHP?

Posted by Lars Eighner on 11/15/07 10:38

In our last episode,
<1194951649.555713.91490@k79g2000hse.googlegroups.com>,
the lovely and talented AK
broadcast on comp.lang.php:

> Hi,

> Can anyone tell me how to connect to a URL using PHP for the purpose
> of obtaining the HTTP response code? Specifically, I want to be able
> to ascertain whether a link is down (404) or alive.

> A bare-bones example would be appreciated.

> Thanks!

Is there some reason searching the manual index on 'http' did not turn up
http_head for you?

--
Lars Eighner <http://larseighner.com/> <http://myspace.com/larseighner>
Countdown: 432 days to go.
What do you do when you're debranded?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация