| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.  You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us.  | 
		
		
			
  | 	
	
	
		
		|||||||
| New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2003 
				Location: Netherlands 
				
				
					Posts: 1,267
				 
				
				
				
				 | 
	
	
	
	
		
			
			 Hello ; 
		
	
		
		
		
		
			I am writing a piece of code to create cache files from a certain site and all its pages. Because we display different data from the database using server alias configuration we need to create cache files with http_host and request_uri combined. Otherwise displayed cached will be displayed on wrong sites. I already created a piece of code, but does not work properly ... Here is the part with the problem: $filename = "cache/".basename(rtrim($_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"], '/')).".cache"; I would like the combine HTTP_HOST and REQUEST_URI into 1 filename, now it creates 2 files. 1 for index and 1 for every other page visited. Thanks ; Pascal 
				__________________ 
		
		
		
		
	
	Free Porn Webcams  | 
| 
		 | 
	
	
	
		
                 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
				
			
			
			Industry Role:  
				Join Date: Dec 2003 
				Location: Netherlands 
				
				
					Posts: 1,267
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Already found it ;) 
		
	
		
		
		
		
			$filename = "cache/".basename(rtrim($_SERVER["HTTP_HOST"], '/')).basename(rtrim($_SERVER["REQUEST_URI"], '/')).".cache"; 
				__________________ 
		
		
		
		
	
	Free Porn Webcams  | 
| 
		 | 
	
	
	
		
                 |