Connecting Tech Pros Worldwide Forums | Help | Site Map

Parse .html,.css for php using cpanel?

Nik Coughin
Guest
 
Posts: n/a
#1: Jul 17 '05
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/
-=-=-=-=-=-=-=-=-=-=-=-



GreyWyvern
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Parse .html,.css for php using cpanel?


On Mon, 13 Dec 2004 16:07:47 +1300, Nik Coughin
<nrkn!no-spam!@woosh.co.nz> wrote:
[color=blue]
> 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?[/color]

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!
Nik Coughin
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Parse .html,.css for php using cpanel?


GreyWyvern wrote:[color=blue]
> On Mon, 13 Dec 2004 16:07:47 +1300, Nik Coughin
> <nrkn!no-spam!@woosh.co.nz> wrote:
>[color=green]
>> 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?[/color]
>
> Add these to an .htaccess file in the associated directory:
>
> AddType application/x-httpd-php .css
> AddType application/x-httpd-php .html
>
> Grey[/color]

Excellent. Thank you.


Duende
Guest
 
Posts: n/a
#4: Jul 17 '05

re: Parse .html,.css for php using cpanel?


While sitting in a puddle GreyWyvern scribbled in the mud:
[color=blue]
>
> Add these to an .htaccess file in the associated directory:
>
> AddType application/x-httpd-php .css
> AddType application/x-httpd-php .html[/color]

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.

--
Mr. D?
Never trust a cat to do a dog's job.
Michael Fesser
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Parse .html,.css for php using cpanel?


.oO(Duende)
[color=blue]
>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.[/color]

Would be reason enough for me to change the host.

Micha
Closed Thread