Re: how can I check the url's validity

From: Date: Thu, 21 May 2009 12:07:18 +0000
Subject: Re: how can I check the url's validity
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-44034@lists.php.net to get a copy of this message
jackywdx escribió: > hi all: > I have a problem, I wonder if there is any good way to check the url's validity. > For example, the url: > http://diybbs.enet.com.cn/thread-3004314-1-1.html > How can I check whether the page exsist, meaning it has content, not 404. > My server's php version is PHP4.3.9, quite low, and doesn't have curl extension. > I have try fsockopen, fopen. But it's not effective enough, a bit slow. > I wonder if there is some functions or some ways to quickly detemine whether the url is valid. > Thanks. > This question is suited for php-general list and NOT for internals, anyway, install PHP5, and try again.. 4.3.9 is extremely old and you shouldnt be running that... -- "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodríguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.internals (#44034) next »