ID: 10898 Comment by: story-hardcore35 at hotmail dot com Reported By: yves at monet dot be Status: Bogus Bug Type: Filesystem function related Operating System: Win ME & Win NT 4.0 PHP Version: 4.0.5 New Comment:
<a href=http://3-sweat-women-video.da.ru>hardcore story</a> Previous Comments: ------------------------------------------------------------------------ [2002-05-25 15:10:00] skamp at tele2 dot co dot uk That maybe the case - however this worked in version 4.0.4 but doesn't from 4.0.6 onwards. I've just spent all afternoon wondering why my pages don't work in 4.2.1 - going back to 4.0.4 fixed it. Similarly trying to get the argument passed via a url after the ? worked OK in 4.0.4 but no longer. ------------------------------------------------------------------------ [2001-05-17 03:13:07] yves at monet dot be Hello, than the docs in my book are wrong, it says file instead of path. Sorry for wasting your time... ------------------------------------------------------------------------ [2001-05-16 10:53:13] [EMAIL PROTECTED] this is bogus. you have to either chdir() into the $parent or is_dir() the full path. ------------------------------------------------------------------------ [2001-05-16 08:35:02] yves at monet dot be A little script that should echo alle filetypes of all files in any subdir of the parent provided. Now I use opendir to test wether the file is a dir, but this isn't a good solution, is it? The is_dir() allways returns false the filetype() allwyas returns dir <?php function getFileInfo($parent) { $handle = opendir($parent); while ($file = readdir($handle)) { $filelist[]=$file ; } reset($filelist); while(list(,$f)=each ($filelist)) { if ($f!="." && $f!="..") { if(is_dir($f)) { getFileInfo($f); } else { echo filetype($f); } } } } getFileInfo("c:\data\pdf"); ?> ------------------------------------------------------------------------ [2001-05-16 06:23:07] [EMAIL PROTECTED] Please provide a short script so that we can reproduce it. Derick ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/10898 -- Edit this bug report at http://bugs.php.net/?id=10898&edit=1
