|
Posted by Noodle on 07/23/06 22:47
2 options...
1. Use 'ftp_nlist' to retrieve the list of files, and check to see if
your file is there.
http://www.php.net/manual/en/function.ftp-nlist.php
or
2. Use 'ftp_size' to check the file size of a given file (it will
return -1 if the file doesn't exist).
http://www.php.net/manual/en/function.ftp-size.php
laredotornado@zipmail.com wrote:
> Hello,
>
> Using PHP 4, how do you check if a file exists on an FTP server given
> its connection information and a directory to check?
>
> Thanks, - Dave
Navigation:
[Reply to this message]
|