04-25-2004, 03:55 AM
			
							
		 | 
		
			 
			#1
			
		 | 
	
	| 
			
			
			
	  
	Gruntled 
	
	is [Too Long]
		
	
	 
			not actually disgruntled. 
			
		
			
				
			
			
			
				 
				Join Date: Jan 2004 
				Location: Atlanta, GA 
				
				
					Posts: 1,088
				 
					
						xBucks: 4,211  
					 
				
				
				
				
				
			 					
		
	 | 
	
	
	
	
		
			
			
			 
			
		
		
		
		
	Quote: 
	
	
		
			
				Originally posted by Gruntled  
You can do it in PHP: 
 
Put the following in a file called counter.php 
 
$viewss = file("hits.txt"); 
$views = $viewss[0]; $views++; 
$fp = fopen("hits.txt", "w"); 
fwrite($fp, $views); 
fclose($fp); 
print $views; 
?> 
 
Then put the include line in the pages you want to hit track, and where ion the page you want the # of hits to show up. 
 
include ("counter.php"); 
?> 
 
again, I just rely on the server stats.   Check out AWstats at sourceforge.net 
			
		 | 
	 
	 
  
		
	
		
		
		
		
			
				__________________ 
				 
			 
		
		
		
		
	
	 | 
	
		 
		
				
		
		
		
		 
	 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
			
		
	 |