I see. OK, well as I said, there appear not to be. I can tell by looking at the server generated contents of your getalbumpics.php?id=Facility file. No images listed. Did you edit that file at all? If not, there is some sort of issue with how your server is interpreting it. In the past I've noticed some servers having an issue with:
as used in that file, so you could try this:
Code:
<?
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 " [$curimage, \"$file\", \"$filedate\"],\n";
$curimage++;
}
}
echo " [\"placeholder\"]\n";
closedir($handle);
}
return($files);
}
$photovar=$_GET['id'];
if (!eregi("^[a-zA-Z0-9_]+$", $photovar)){
echo "alert(\"Photo Album ID must contain only letters, numbers, or underscore, and cannot start with a number\")";
die();
}
echo "var $photovar={\n";
echo " baseurl: \"http://" . $_SERVER["SERVER_NAME"] . dirname($_SERVER['PHP_SELF']) . "/\",\n";
echo " images: [\n";
returnimages();
echo " ],\n";
echo " desc: []\n";
echo "}\n";
?>
But it could be some security restriction on the server not allowing a directory and/or files to be listed. Check with your host for more info on that.
Bookmarks