mikeyzc
05-28-2004, 12:36 PM
I keep getting errors when trying to open a directory then read the directory then echo the files to the screen...
Warning: opendir(http://www.mydomain.com/testing/images/): failed to open dir: not implemented in D:\mydomain website\testing\images\image.php on line 3
<?php
if ($handle = opendir('http://www.mydomain.com/testing/images')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
closedir($handle);
}
?>
Warning: opendir(http://www.mydomain.com/testing/images/): failed to open dir: not implemented in D:\mydomain website\testing\images\image.php on line 3
<?php
if ($handle = opendir('http://www.mydomain.com/testing/images')) {
echo "Directory handle: $handle\n";
echo "Files:\n";
while (false !== ($file = readdir($handle))) {
echo "$file\n";
}
closedir($handle);
}
?>