faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

5 of 6 people (83%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

how can I configure apache so that I can run <? php ...> commands in files that don't end in .php?

Mar 20th, 2008 17:04
ha mo, Devis Lucato, supun edirisinghe,


The file extensions interpreted as php files are configured on the web
server (Apache, IIS etc).
To configure Apache to interpret files ".php" in the configuration you
can find this rows:
AddType application/x-httpd-php .php
If you want, for example, to interpret files with ".phtml" extension
you have to add this:
AddType application/x-httpd-php .phtml
If you want, for example, to interpret files with ".php4" extension you
have to add this:
AddType application/x-httpd-php .php4
And so on.
Remember that an extension can have just one interpreter, you can't, for
example, have .asp to be interpreted as vbscript and php together.
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com