$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.


php|architect -- The Monthly Magazine For PHP Professionals
Come visit us on the web at!

On Fri, 2002-11-08 at 12:01, Fifield, Mike wrote:
> How do you check if a file exists a remote ftp site. 

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to