I have a strange problem. the dir class and the other dir functions in php won't read the dirs or files within a particular dir! i get itself (.) and its parent (..) but nothing else. even if i rename the folder etc and change the script to suit it still wont return the contents! all other dirs (that i know of. can i be bothered testing them all? i think not!) work like expected!
has anyone come across this before?
im running 4.2.2. on xp and have never had or seen this issue before!
$d = dir('./data/development/archive');
if ( !$d )
{
echo 'Error opening development archive.';
}
$d_list = array();
while ( $entry = $d->read() )
{ echo '['.$entry.']';
if ( $entry != '.' && $entry != '..' )
{
if ( is_dir($entry) )
{
$d_list[] = $entry;
}
}
}
if anyone can help, thanks!