This is a discussion on Parse .html,.css for php using cpanel? within the PHP Language forums, part of the PHP Programming Forums category; Is there something that I can do from cpanel so that php will parse not only ..php files, but also ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Is there something that I can do from cpanel so that php will parse not only
..php files, but also files with .html and .css extensions? -- "Come to think of it, there are already a million monkeys on a million typewriters, and the Usenet is NOTHING like Shakespeare!" - Blair Houghton -=-=-=-=-=-=-=-=-=-=-=- http://www.nrkn.com/ -=-=-=-=-=-=-=-=-=-=-=- |
|
|||
|
On Mon, 13 Dec 2004 16:07:47 +1300, Nik Coughin
<nrkn!no-spam!@woosh.co.nz> wrote: > Is there something that I can do from cpanel so that php will parse not > only .php files, but also files with .html and .css extensions? Add these to an .htaccess file in the associated directory: AddType application/x-httpd-php .css AddType application/x-httpd-php .html Grey -- The technical axiom that nothing is impossible sinisterly implies the pitfall corollary that nothing is ridiculous. - http://www.greywyvern.com/webslavent.php?msg=53 - Opera puffin mascot campaign! |
|
|||
|
GreyWyvern wrote:
> On Mon, 13 Dec 2004 16:07:47 +1300, Nik Coughin > <nrkn!no-spam!@woosh.co.nz> wrote: > >> Is there something that I can do from cpanel so that php will parse >> not only .php files, but also files with .html and .css extensions? > > Add these to an .htaccess file in the associated directory: > > AddType application/x-httpd-php .css > AddType application/x-httpd-php .html > > Grey Excellent. Thank you. |
|
|||
|
.oO(Duende)
>Works great if your host lets you add user defined mime types. Awhile back >PageZone installed something to increase security that does'nt allow user >defined mime types & messed me up a bunch. Would be reason enough for me to change the host. Micha |