PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
. - dir
.. - dir
Warning: filetype() [function.filetype]: Lstat failed for crap in C:\Apache2\htdocs\test\class\test.class.php on line 36
crap -
Warning: filetype() [function.filetype]: Lstat failed for default in C:\Apache2\htdocs\test\class\test.class.php on line 36
default -
It seems PHP is not recognizing that 'crap' and 'default' are directories. I thought I needed a full path to this, so I used getcwd().DIRECTORY_SEPARATOR.'themes'. Even using a relative path 'themes/' it still does this.
I am using php 5.1.2, apache 2, on windows.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
It won't recognize my 'crap' and 'default' directories.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Bah. I have worked with these functions so many times, I felt for sure this was a bug. I even reported it to php.net as a bug with my first bug report ever. I guess everytime i've used them in the past they have in the same directory. Now i feel like a bag of suck.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
http://de2.php.net/glob wrote:array glob ( string pattern [, int flags] )
[...] Returns an array containing the matched files/directories, an empty array if no file matched or FALSE on error.
[...] GLOB_ONLYDIR - Return only directory entries which match the pattern