Ok im not sure whats causing this problem but its with is_file and is_dir ..... or something on the server im using idk what....
These are the results
http://mentaleak.com/anime/dir.php
anyone have an idea ?
| Code: |
| <?php
// Note that !== did not exist until 4.0.0-RC2 $pathreconstruct ="/home/mentfis8/public_html/anime"; $newpath = 'styles/Mentaleak/theme/'; $pathpieces = explode("/", $newpath); for ($q = 0; $q < sizeof($pathpieces); $q++) { echo $q . " "; $pathreconstruct = $pathreconstruct . "/" . $pathpieces[$q]; echo $pathreconstruct . " "; var_dump(is_dir($pathreconstruct)); echo "<br/>"; echo "<br/>"; if ($handle = opendir($pathreconstruct)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { if (!is_file($file)) { echo realpath(dirname($file)) ."/" . $file. "<br/>"; } } } } echo "<br/>"; } ?> |
These are the results
http://mentaleak.com/anime/dir.php
anyone have an idea ?
