Online Shopping : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to
Did You Find This Entry Useful?

568 of 638 people (89%) answered Yes
Recently 9 of 10 people (90%) answered Yes


What is PHTML ? Is it the same thing as PHP ?

Jan 24th, 2009 09:08
Brad Kint, healthy man, gaurav sabharwal, dman, Philip Olson, urge overkill, Fred David,,

Web servers, such as apache, allow us to define our own extensions.  
Some people (not many) choose to run their PHP files via the .phtml 
extension.  It's typical to see .php and .php3
For apache, you'll want to load httpd.conf and find/edit a line in 
similar fashion to :
  AddType application/x-httpd-php .php .php3 .phtml .foo
Essentially, the above means that PHP will parse .php .php3 .phtml 
and .foo files on this server.  Notice how we can put anything, such 
as .foo
If you're running PHP3, it would look like :
  AddType application/x-httpd-php3 .php .php3 .phtml .foo
PHTML is an extension often given to PHP-generated web pages.