Jump to content

[SOLVED] Simple Directory Reading Script Errors


hellonoko

Recommended Posts

My simple script to read a directory returns an error:

 

Warning: opendir(http://localhost/idea/gallery/) [function.opendir]: failed to open dir: not implemented in C:\www\idea\gallery\read_directory.php on line 3

 

<?php
//Open images directory
$dir = opendir("http://localhost/idea/gallery/");

//List files in images directory
while (($file = readdir($dir)) !== false)
  {
  echo "filename: " . $file . "<br />";
  }
  closedir($dir);
?> 

 

What does this mean?

 

Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.