View Single Post
Old 08-26-2011, 11:02 AM  
robber
Web Developer
 
Industry Role:
Join Date: Jan 2011
Location: UK
Posts: 264
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

Last edited by robber; 08-26-2011 at 11:03 AM..
robber is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook