ok i have uploaded it but having the following problems
could not open directory!
/* INITIALISATION */
// useful shortcut
$url = $_SERVER["PHP_SELF"]."?";
// start point and ordering
$start = ( isset($_GET["start"]) ) ? $_GET["start"] : 0;
$sortby = ( isset($_GET["sortby"]) ) ? $_GET["sortby"] : $df_sortby;
$ascdsc = ( isset($_GET["ascdsc"]) ) ? $_GET["ascdsc"] : $df_ascdsc;
// allowed image types
$sfxs = array(".JPG",".jpeg",".png");
// get the current directory path:
$curdir = dirname(stripslashes($_SERVER["PATH_TRANSLATED"]));
// get folder delimiter for this system:
$slash = ( strstr($curdir,"\\") ) ? "\\" : "/";
$thumbdir = $thumbdir;
/* READ DIRECTORY */
// create array to hold filenames and information
// $images[n][0] = name
// $images[n][1] = date
// $images[n][2] = size
$images = array();
@ $handle = opendir($curdir);
if ( !$handle ) {
error("could not open directory!");
exit;
}
i can only assume its this line:
$curdir = dirname(stripslashes($_SERVER["PATH_TRANSLATED"]));