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

From: Date: Wed, 24 Jan 2007 01:01:43 +0000
Subject: Re: having trouble with is_file() and is_dir() on 5.1.2
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-247656@lists.php.net to get a copy of this message
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

« previous php.general (#247656) next »