Re: ftp_chdir notice error

From: Date: Sat, 15 Feb 2014 19:50:42 +0000
Subject: Re: ftp_chdir notice error
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-322888@lists.php.net to get a copy of this message
On 14-02-15 02:46 PM, Ron Piggott wrote:
I am using the result of “ ftp_chdir “ to know if the directory exists or not. If the result is “false” then I make the directory:
However when the result is ‘false’ a PHP warning is created: “ PHP Warning: ftp_chdir(): Failed to change directory “ How can I avoid this warning? Use the function file_exists.
-- Stephen

« previous php.general (#322888) next »