Images called from folder won't display on screen

I am using this code to call all the images from a folder:

$handle = opendir(dirname(realpath(__FILE__)).'/images/'); while($file = readdir($handle)){ if($file !== '.' && $file !== '..'){ echo '<img src="admin/img/uploads/'.$file.'" border="0" />'; } }

The html says that the images are present but they aren’t visable on screen:

[code]





[/code]

Any help is much appreciated!

Is there any reason you’re reading from a path I can’t completely read but that ends with ‘/images/’ where the URLs don’t seem to refer to the same location?
This may be your problem.

Hope it helps,
O.

Thought id replied to this one. Thanks Ojoshiro, silly mistake but that sorted it.

Sponsor our Newsletter | Privacy Policy | Terms of Service