Broken links report

From: Date: Tue, 03 Jun 2003 05:41:53 +0000
Subject: Broken links report
Groups: php.general 
Request: Send a blank email to php-general+get-149882@lists.php.net to get a copy of this message
Hi, On a link page I have I'd like to show if the links are valid (=exists) I tried to do a pOpen (http://www.whatever.com/index.html,"r") and if it exists everything is fine but if it's not there I get a warning "failed to create stream: HTTP request failed! HTTP/1.1 404 Object Not Found" Opening the file is actually not necessary, I'm checking for existence. But it's the only way I've found. Is there a better way to do this? I'm using PHP4 on a w2k workstation Thanx /Kjell

« previous php.general (#149882) next »