You are here: Re: check if a file exists on an FTP server « PHP Programming Language « IT news, forums, messages
Re: check if a file exists on an FTP server

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация