is_executable() ???

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux