Rob Packer wrote:
I think you have assigned $fp to be the imploded string, not a file pointer. Thus fclose($fp) would generate an error. Given this, I'm not sure what "if (!$fp)" would mean.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
HTH
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php