file checking
| From: | Huseyin | Date: | Sun, 14 Jan 2001 06:51:32 +0000 |
| Subject: | file checking | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34454@lists.php.net to get a copy of this message | ||
i am trying to write a function that checks the file to see if it is still
availabla to download
if not it will return link is broken
this is what i have
if(!($connection = @fopen ($row[url], "r"))) {
$broken=1;}
else {
$broken=0;
}
but the problem is that it sometimes display broken link even thoug it is
not
if someone can help me thats wonderful
thanks in advance