is_executable() ???
| From: | Al | Date: | Mon, 07 Jan 2008 17:30:59 +0000 |
| Subject: | is_executable() ??? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-266849@lists.php.net to get a copy of this message | ||
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.