Re: is_dir paths

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

 



Mark Rees wrote:
Hello

I am having trouble with is_dir

I am trying to check whether /lists/admin/temp exists (which it does).

However, I cannot get the function to work by specifying the path as above -
it only works if I do it relative to the current working directory. So:

var_dump (is_dir(getcwd()));

what does the following output:

var_dump (getcwd());

?

also do an 'ls' in the relevant dir in order to determine possible
problems due to permissions.

var_dump (is_dir('temp'));
#temp is one level below the working directory
var_dump (is_dir("/lists/admin/temp"));

returns
bool(true)
bool(true)
bool(false)

Thanks in advance

Mark
--
www.itsagoodprice.com - top-brand electronics for less.


--
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