This used to be located at http://elijahhoffman.com/index.php?q=editorial&z=one and is now located at http://elijahhoffman.com/editorial/one
the folder path used to read just 'galleries/editorial_i'; but it wasn't working, i assumed because of the new path location... so i appended the full url to the path and it still doesn't work... thoughts?
<?php
$folder = 'http://elijahhoffman.com/galleries/editorial_i/';
$handle = opendir($folder);
while (false !== ($file = readdir($handle))) {
if ($file != '.' && $file != '..') {
$files[] = $file;
}
}
closedir($handle);
sort($files);
foreach ($files as $file) {
print <<<EOF
<img src="{$folder}/{$file}" class="imgfullmargin" alt="{$file}"/>
EOF;
}
?>
The parameter passed to opendir should be a path, not an url:
$folder = './galleries/editorial_i/';
$handle = opendir($folder);
...