Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 17th, 2005, 10:59 AM
Nik Coughin
Guest
 
Posts: n/a
Default Parse .html,.css for php using cpanel?

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/
-=-=-=-=-=-=-=-=-=-=-=-


  #2  
Old July 17th, 2005, 10:59 AM
GreyWyvern
Guest
 
Posts: n/a
Default 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!
  #3  
Old July 17th, 2005, 10:59 AM
Nik Coughin
Guest
 
Posts: n/a
Default 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.


  #4  
Old July 17th, 2005, 10:59 AM
Duende
Guest
 
Posts: n/a
Default 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.
  #5  
Old July 17th, 2005, 10:59 AM
Michael Fesser
Guest
 
Posts: n/a
Default 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
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles