note 12877 deleted from function.parse-url by jimw
| From: | jimw@php.net | Date: | Fri, 21 Dec 2001 00:40:19 +0000 |
| Subject: | note 12877 deleted from function.parse-url by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23662@lists.php.net to get a copy of this message | ||
About the function isValidUrl posted a few comments earlier:
Won't this leak file descriptors? You should store the file pointer somewhere so you can close
it:
function isValidUrl($url)
{
if ($fp = fopen($url))
{
fclose($fp);
return true;
}
else
return false;
}