clearstatcache(); if(is_executable(PATH_TO_SOURCE_DIR . $filename) { code } Always returns true for: foo.jpg foo.php foo.sh And even if I feed it a non existing file.I found one ref that said is_executable() doesn't work in safemode, seems dumb if true.
If that's so, how can I test whether an uploaded file is executable? I'm on a NIX with Apache, etc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php