Re: ftp file exists
| From: | Marco Tabini | Date: | Fri, 08 Nov 2002 16:57:02 +0000 |
| Subject: | Re: ftp file exists | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-123424@lists.php.net to get a copy of this message | ||
Try
$f = fopen ('ftp://server/filename',
'r');
if $f is null, the file doesn't exist. Otherwise, it exists and you have
to fclose ($f). FTP support has to be compiled into your version of PHP
for this to work.
Marco
-------------
php|architect -- The Monthly Magazine For PHP Professionals
Come visit us on the web at http://www.phparch.com!
On Fri, 2002-11-08 at 12:01, Fifield, Mike wrote:
> How do you check if a file exists a remote ftp site.
>