Re: Link Checking

From: Date: Sat, 25 Nov 2000 12:59:22 +0000
Subject: Re: Link Checking
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27140@lists.php.net to get a copy of this message
<? $fp = fopen('http://www.moo.com/bla.exe','r'); while(!feof($fp)){ $line = trim(fgets($fp,4096)); if(ereg("404",$line)){ echo 'OMG 404!!!!'; exit; } } fclose($fp); ?> On Sat, Nov 25, 2000 at 12:29:38PM +0200, Holev` wrote: > Hi, > Lets say I want to check if the url: http://www.moo.com/bla.exe > works, > it's not enough to check if I can connect to it, I also want to make sure it > doesn't end up at a file http://www.moo.com/404.html . > How can this be done ? > > thanx. > > -- > _______________________________________________ > David Berlin > webmaster@builder.co.il > > > > -- > 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 ================================================================================ = Joe Stump joestump98@yahoo.com http://www.miester.org = ================================================================================ Need a programmer? http://www.google.com/search?q=joe+stump+resume

« previous php.general (#27140) next »