DekGenius.com
[ Team LiB ] Previous Section Next Section

Recipe 8.15 Enabling PHP Script Handling

Problem

You want to enable PHP scripts on your server.

Solution

If you have mod_php installed, use AddHandler to map .php and .phtml files to the PHP handler:

AddHandler application/x-httpd-php .phtml .php

Discussion

This recipe maps all files with .phtml or .php to the PHP handler. You must ensure that the mod_php module is installed.

See Also

    [ Team LiB ] Previous Section Next Section