| 
	
 | 
 Posted by Norman Peelman on 02/27/07 02:49 
J.O. Aho wrote: 
> shimmyshack wrote: 
> 
>> your server is set up to execute the php inside the files if they end 
>> in .php which is normal. Stuart meant that if you have control over 
>> the server you could change this to say only .pjio files or 
>> a .phtml, .php and .php5 all at once etc.. whatever you choose 
> 
> There is those who uses 
> 
>  AddType application/x-httpd-php .html 
> 
> Which will cause the server to work extra as it will parse all html  
> files, of which most usually don't have any php at all. 
> 
#allow only .php and .htm to be parsed for php code 
AddType application/x-httpd-php .php .htm 
 
 
#allow .php, .htm, and .mycustomextension to be parsed for php code 
AddType application/x-httpd-php .php .htm .mycustomextension 
 
All other extensions (unless dealt with appropriately) will be served as  
static HTML, eg: .html, .shtml, .mystatichtml, etc. 
 
Norm
 
  
Navigation:
[Reply to this message] 
 |