Help - Search - Members - Calendar
Full Version: phtml
The Planet Forums > Control Panels > Plesk
CodeBlu
Could someone please tell me how to add phtml function to plesk. I just got a new customer that would like to use this and I have never used it before. Thanks in advance.

CodeBlu
CodeBlu
well I have gotten it work, but thanks anyways. I will post how I did just incase others have the same question.

#
# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP 3.x module (not part of the Apache distribution - see
AddHandler server-parsed .phtml
AddType text/html .phtml

# http://www.php.net) will typically use:
#
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .php .php4 .php3
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml .php <----add this

All I did was just add that line to the httpd.conf file and all went good.

CodeBlu
Rich2k
except that phtml isn't text/html but php
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.