Roland Roland - 1 year ago 138
PHP Question

How to check using PHP FTP functionality if folder exists on server or not?

Is there a way to check if a a folder exists on the server using PHP Ftp functionality?

Answer Source

For PHP 5:

$folder_exists = is_dir(''); : "As of PHP 5.0.0, this function can also be used with some URL wrappers." : [Support] "As of PHP 5.0.0: filesize(), filetype(), file_exists(), is_file(), and is_dir()"

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download