Hi Morten
To use the coding i provided then you want to use:
Code:
<?php
$date = date('Y-m-d');
if(!is_dir($date)){$date="default";}
## Amend this to:
## if(!is_dir("gallery/".$date)){$date="default";}
function fcheck($name){
if(file_exists($date."/".$name)){
## Amend this one to:
## if(@file_exists("gallery/".$date."/".$name)){
return $date."/".$name; ## Amend this one to: return "gallery/".$date."/".$name
}else{
return "default/".$name; ## Amend this one to: return "gallery/".$date."/".$name
}}
?>
Hope this helps
Rob