I feel like such an idiot...
I have no idea where to place it, or better yet how to do it. Right now i have the following code:
<?
$dirname = "/mnt/storage2/r/re/renateverhagen.nl/html/test/";
$dh = opendir($dirname);
while(!(($file = readdir($dh))===false)){
if(is_dir("$dirname/$file"))
;
else
{
$file_array = explode(".", $file);
// Code Enters in as link_name, file_name and repeats
$file_list[] = $file_array[0];
$file_list[] = $file;
}
}
echo"<p>";
if($file_list[0]==NULL)
echo"No Files Found";
for($f=1, $n=0; $file_list[$f] != ""; $f=$f+2, $n=$n+2)
{
echo"•
<a href=\"test/".$file_list[$n+1]."\" target=\"_blank\">".$file_list[$n]."</a>
<br>";
}
echo"</p>";
?>
it shows al files instead of only the -th.jpg files. (output: http://www.renateverhagen.nl/test5.php)
Could you help me how to show only the -th.jpg files and linking them to the big ones?