This is the output of your http://www.jrcoyotes97.com/photos/getpics.php file:
Code:
var galleryarray=new Array();
Obviously, either there are no images in that folder or your host's PHP interpreter needs different code in order to retrieve them.
In the first case, upload the images to that folder, in the second case, determine the proper PHP syntax for your server. Common problems with getpics.php are that many servers prefer (additions red):
Code:
<?php
Header("content-type: application/x-javascript");
function returnimages($dirname="./") {
$pattern="\.(jpg|jpeg|png|gif|bmp)$";
$files = array();
$curimage=0;
if($handle = opendir($dirname)) {
while(false !== ($file = readdir($handle))){
if(eregi($pattern, $file)){
$filedate=date ("M d, Y H:i:s", filemtime($file));
echo 'galleryarray[' . $curimage .']=["' . $file . '", "'.$filedate.'"];' . "\n";
$curimage++;
}
}
closedir($handle);
}
return($files);
}
echo "var galleryarray=new Array();" . "\n";
returnimages();
?>
Bookmarks