Reply to Re: check if a file exists on an FTP server
Posted by Steve on 07/24/06 02:51
On Sun, 23 Jul 2006 08:05:45 -0700, 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
I'd just use fopen, as in
fopen("ftp://user:password@example.com/somefile.txt", "r")