Re: Test links?

From: Date: Sat, 30 Nov 2002 18:06:51 +0000
Subject: Re: Test links?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-126551@lists.php.net to get a copy of this message
Okay, I'm confused... file, fopen, and fsockopen seem to say not found on alot valid URLs... does this look to be correct usage? $url = $row[0]; // just get the url from the db $fp = implode ('', file ($url)); if (!$fp) {echo "<font color=red><b>Unable to access file</b></font>"; } else { fclose($fp); echo "The link is working!"; } It seems I always get this warning... Warning: Supplied argument is not a valid File-Handle resource in /web/home/nrc.net/www/robert/links4.php on line 11 If someone can tell me what I'm doing wrong, I'd appreciate it. Thanks, Robert

« previous php.general (#126551) next »