Why is_dir () returns false even if it is a directory?
does not return an error
$path_mysql = '/var/lib/mysql/'; if(!is_dir($path_mysql)){ echo 'error'; }
returns an error
$path_mysql = '/var/lib/mysql/domain.com/'; if(!is_dir($path_mysql)){ echo 'error'; }
/var/lib/mysql/domain.com/ executes exsits, but is_dir () returns false !?
I can access the directory through PuTTY and WinSCP
source share