Originally Posted by haganxy Code: if (-d /home/whatever) { ... } that "-d" checks if the /home/whatever is a file or a directory you can use is_file or is_dir to chech that before actually doing the if-stuff example if (is_dir($path)) { echo "Is Directory\n"; } if (is_file($path)) { echo "Is File\n"; }
if (-d /home/whatever) { ... }
Forum Rules
Bookmarks