How can I check if a specific file exists on a remote server using PHP via FTP connections?
Some suggestions:
ftp_size, which returns -1 if it doesn't exist: http://www.php.net/manual/en/function.ftp-size.phpfopen, e.g. fopen("ftp://user:password@example.com/somefile.txt", "r")ftp_nlist, check to see if the filename you want is in the list: http://www.php.net/manual/en/function.ftp-nlist.php