faqts : Computers : Programming

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

286 of 371 people (77%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

What is PHTML? Is it the same as PHP ?

Jul 4th, 2008 02:23
Taksh Verdhan, Rachit Bagda, Chris Hayes, Chris Hayes, Tobias Sasse, Alex Fenton, Fred David,


Yes, sort of. '.phtml' is simply a file extension. You can set up your
webserver so it knows pages with a certain extension are PHP files that
should be parsed by PHP before it sends it to the browser. 
The '.phtml' extension dates back to version 2.0 of PHP and is pretty
much outdated, as is '.php3' by now. The preferred standard extension to
use for PHP files is now '.php'.
For almost all standard setups, it should make no difference whether you
use '.php' or '.phtml', a few servers are set up to choose between PHP
versions based on the file extension. Run a simple script with <?PHP
phpinfo();?> in it to check whether the file extension matters on your
server. Or ask you provider to find out the proper extension for your
purpose.
The server administrator can set this up. For example you 
could make a Perl interpreter being the handler for '.phtml' by 
changing the webserver's settings. Or let '.asp' files be handled by
php, if you think that's useful. In the Apache config file, look for the
line "AddType application/x-httpd-php .php "
http://myspacelayouts4u.wordrepss.com
http://healthguideinfo.wordpress.com/
http://seoservicesinc.wordpress.com
http://health-care-informations.blogspot.com/
http://sportsboom.blogspot.com/
http://galcoholster.blogspot.com/
http://511-tactical.blogspot.com/ 
http://trtraveltrailer.blogspot.com/
http://aaatravel.blogspot.com/
http://downloadwebscripts.blogspot.com/
http://whyiseducationimportant.blogspot.com/
http://healtheducationdirect.blogspot.com/