Reply to Re: File extensions

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация