[PHP] is_dir() question

2005-09-26 Thread vlad georgescu
i have the code below ** *if ($dir = @opendir(dir2open)) { while($file = readdir($dir)) { //if (($file!='.') ($file!='..') ($file!='.htaccess') ($file!=' index.php')) { // if (is_dir($file)) { // print just . .. // if (is_file($file)) { // works fine if

Re: [PHP] is_dir() question

2005-09-26 Thread Jochem Maas
maybe the following helps you (a little): vlad georgescu wrote: i have the code below ** *if ($dir = @opendir(dir2open)) $path = dir2open; // make this into a proper path! if ($dir = @opendir($path)) { while($file = readdir($dir)) { //if (($file!='.') ($file!='..') ($file!='.htaccess')