note 1335 deleted from fopen by ronabop
| From: | ronabop@php.net | Date: | Thu, 10 Aug 2000 20:04:58 +0000 |
| Subject: | note 1335 deleted from fopen by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-892@lists.php.net to get a copy of this message | ||
i whant to verify if an ftp file exist before
to retreive it.
<PRE>
// if test.txt does not exist a warning is displayed
$fp = fopen("ftp://user:passwd@host.com/test.txt");
// if file is or not present it return alway false
if(file_exists("ftp://user:passwd@host.com/test.txt")) {
return true;
}
else {
return false;
}
</PRE>
What is the problem?
give me your suggestions
thanks