Parse .html,.css for php using cpanel?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Nik Coughin

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

    -=-=-=-=-=-=-=-=-=-=-=-


  • GreyWyvern

    #2
    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!

    Comment

    • Nik Coughin

      #3
      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.


      Comment

      • Duende

        #4
        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.

        Comment

        • Michael Fesser

          #5
          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

          Comment

          Working...