Basically the script looks like this right now (when I add the sever path I dont get a directory error but a sort error, when I comment out the sort I see a blank screen!):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<head>
<title>Show files in a directory!</title>
</head>
<body>
<?php
function GetFileArray($sPath) {
$handle = opendir("$sPath");
while ( $file = readdir($handle) )
if ( ereg("(frags-).*", $file) ) {
$retVal[count($retVal)] = $file;
}
/ Clean up and sort em out! /
closedir($handle);
sort($retVal);
print("$retVal");
}
$path="/home/3dstrea/public_html/jukebox2/";
getfilearray($path);
?>
</body>