Reading up on scandir(), having an issue getting anything to display.
<?php
$dir = 'http://www.universaldynamicmedia.com/sandbox/Images';
$array = scandir($dir);
foreach($array as $key => $value)
{
echo '<li><img src="' . $dir . $value . '" /></li>';
}
?>
I supposed I’m not doing something right with the directory and scandir() as the other stuff, I’ve done before and it works fine.
Would directory permissions cause an issue?
** Note you cannot use a URL, you must have access to the folders/files
scandir():
readdir():