Thanx for your advices very much.
I still don't understand it but it works.
Do you always use the full path while working with subdirs or do you always call a is_dir($dir.'/'.$file)?
Here's a new code for Script1.php with some
"question-comments".
$dir = 'test2';
$handle=opendir($dir);
if...
Hello,
I've got a problem with opendir($dir) function. When I use opendir(".") everything is OK but when I call opendir($dir), program works strange - is_dir() and is_file() return wrong results then.
For example (both scripts are written bellow):
I have a directory "test1" with "Script1.php"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.