We've expanded our news coverage and improved our search! Visit
news.oreilly.com for the latest or search for all things across O'Reilly!
Article:
 |
|
Working with Files in PHP, Part 3
|
| Subject: |
|
is_dir argument |
| Date: |
|
2003-03-25 14:51:50 |
| From: |
|
anonymous2
|
|
|
|
The line
if(is_dir($mydir->path.$file)) {
does not produce the desired effect for me; I changed it to
if(is_dir("$mydir->path/$file")) {
and it now works. Possibly a typo, or am I missing something? Would also probably work as
if(is_dir($mydir->path.'/'.$file)) {
if you wanted to keep it that way.
|