By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 1,552 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

Parse .html,.css for php using cpanel?

P: n/a
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/
-=-=-=-=-=-=-=-=-=-=-=-
Jul 17 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
On Mon, 13 Dec 2004 16:07:47 +1300, Nik Coughin
<nr***********@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!
Jul 17 '05 #2

P: n/a
GreyWyvern wrote:
On Mon, 13 Dec 2004 16:07:47 +1300, Nik Coughin
<nr***********@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.
Jul 17 '05 #3

P: n/a
While sitting in a puddle GreyWyvern scribbled in the mud:

Add these to an .htaccess file in the associated directory:

AddType application/x-httpd-php .css
AddType application/x-httpd-php .html


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.
Jul 17 '05 #4

P: n/a
.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
Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.