Re: having trouble with is_file() and is_dir() on 5.1.2

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

 




On Jan 22, 2007, at 11:18 PM, clive wrote:


everything without an extension is a directory
You will notice that the only directory detected
by this code is templates. There are no files
detected by this code. Does this have something
to do with stat cache? I want to make one array
with directories and one array with files. I can't
see any syntax or logic problems.
Thanks in advance;
JK

As far as I know is_dir and is_file require a full path , as chris mentioned, how are you populating $cont;

clive


Thanks all for the replies, I think I got the message.
Some times getting better at things can be a pain.
I code and code and code and get use to writing
code like the above and have it just work. Then I
use a function I've never used before, is_file()
and is_dir() and surprise... I have gotten past dumb
syntax errors and screwy logic, it must be the os
or something(?!).
JK

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