views:

213

answers:

1

Hi, I'm using this:

AddHandler application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml

AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .phtml

...within a .htaccess file but my .phtml files are not running as php, they're just showing the code!

Have I missed something?

+1  A: 

Is your server configured to read .htaccess files? To test this simply write random content in it. If the server still works the file is ignored otherwise it returns a 500 Internal Server Error.

To enable .hhtaccess file support in your configuration use the AllowOverride directive.

johannes
Stupid server doesnt support htaccess :(. Wish my clients knew what they were doing.
Joel