|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-09-14 09:29 UTC] sniper@php.net
[2005-09-14 16:19 UTC] johannes at jlindenbaum dot de
[2005-09-14 16:38 UTC] johannes at jlindenbaum dot de
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Dec 04 23:00:01 2025 UTC |
Description: ------------ Hi, Don't know if it's just me but XAMPP distrib with php 4.4.0 running parsing following PHP code doesn't work. Clearly the $handle directory I am reading contains directories. These are not recognized and thus not put into the array! htdocs in Apache has full 777 for developing purposes. Reproduce code: --------------- $directories = array(); while( FALSE !== ($file_names = readdir($handle)) ) { if( $file_names != "." && $file_names != "..") { if( !is_dir($file_names) ) { echo $file_names; } else { $directories[] = $file_names; } } } Expected result: ---------------- I expect directories found in the read directory to be added into the $directories array. Actual result: -------------- Directory is outputted as if it were a file.