| 
| 
 | 
 | 
 | 
 | 
 | 
		
			
  | 	
	
	
		
		|||||||
| 
		 | 
	Thread Tools | Search this Thread | Rate Thread | Display Modes | 
| 		
			
			 | 
		#1 | 
| 
			
			
			
			 That's what she said 
			
			
		
			
				
			
			
								
		
	 | 
	
	
	
		
		
			
			 
				
				Pulling pics from dated folders, works - but how about?
			 
			Hi guys and else.. 
		
	
		
		
		
		
		
		
		
		
		
	
	I have this code. It works fine. First snippet "defines" the rule. Next snippet are put into "for instance" the various tables that builds up the site. Code: 
	<?php
$date = date('Y-m-d');
if(!is_dir("gallery/".$date)){$date="default";}
function fcheck($name){
if(@file_exists("gallery/".$date."/".$name)){
return "gallery/".$date."/".$name;
}else{
return "gallery/".$date."/".$name;
}}
?>
Code: 
	<td align="center"><a href="xpic01.php"><img src="gallery/<?php echo $datetoday; ?>/001.jpg"></a></td> OK; HERE COMES THE QUESTION I am not good at PHP. What if I want each dated folder to include a textfile where PHP reads and publish on appropriate placement on webpage? Hope I ask a understandable question. cheers M  RtenPS, according my User-status-name-title "Rock stars ... is there anything they don't know?" No, we know everything. Absolutely. Except this about reading a text and put it into a html/php page.  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
| Thread Tools | Search this Thread | 
| Display Modes | Rate This Thread | 
		
  | 
	
		
  |