| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| rbsterli -
 
 
 Joined: 07 Jan 2005
 Posts: 2
 
 
 | 
			
				|  Posted: Sat Feb 04, 2006 12:57 am    Post subject: How to: parse PHP code in .htm or .html files |   |  
				| 
 |  
				| Does anyone know how or where to configure Abyss to do this?  I have a script to return the top 10 referrers but my main page must either be PHP or the server needs to be configured to parse PHP code within html files. 
 Any suggestions??  Thanks in advance.
 
 
 Regards,
 Rich Sterling
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| Anonymoose -
 
 
 Joined: 09 Sep 2003
 Posts: 2192
 
 
 | 
			
				|  Posted: Sat Feb 04, 2006 1:12 am    Post subject: |   |  
				| 
 |  
				| Just add .htm and .html to the file types that are processed with PHP, in the same way you set up the .php file extension in the Abyss console. _________________
 
 "Invent an idiot proof webserver and they'll invent a better idiot..."
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| rbsterli -
 
 
 Joined: 07 Jan 2005
 Posts: 2
 
 
 | 
			
				|  Posted: Sat Feb 04, 2006 2:04 am    Post subject: |   |  
				| 
 |  
				| Got it.  Thanks!   Works like a charm.  :) |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| kev1952 -
 
 
 Joined: 08 Sep 2005
 Posts: 105
 Location: Townsville Australia
 
 | 
			
				|  Posted: Sat Feb 04, 2006 3:25 am    Post subject: |   |  
				| 
 |  
				| I take it from the above that you add .htm and .html to the "script path" under "scripting parameters", yes? _________________
 Cheers....     Kev
 
 Kev's Place - http://www.kevsplace.com
 
 Powered by Abyss X1.
 |  | 
	
		| Back to top |         | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Sat Feb 04, 2006 1:18 pm    Post subject: |   |  
				| 
 |  
				|  	  | kev1952 wrote: |  	  | I take it from the above that you add .htm and .html to the "script path" under "scripting parameters", yes? | 
 This is done automatically if "Use the associated extensions to automatically update the Script Paths" is checked in your PHP interpreter declaration.
 _________________
 Support Team
 Aprelium - http://www.aprelium.com
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| kev1952 -
 
 
 Joined: 08 Sep 2005
 Posts: 105
 Location: Townsville Australia
 
 | 
			
				|  Posted: Sat Feb 04, 2006 4:40 pm    Post subject: |   |  
				| 
 |  
				| Thanks for that - I was wondering because it's always worked for me. 	  | aprelium wrote: |  	  | This is done automatically if "Use the associated extensions to automatically update the Script Paths" is checked in your PHP interpreter declaration. | 
 _________________
 Cheers....     Kev
 
 Kev's Place - http://www.kevsplace.com
 
 Powered by Abyss X1.
 |  | 
	
		| Back to top |         | 
	
		|  | 
	
		|  |