Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

MIME & Apache Handler Help

Discussion in 'EasyApache' started by bpat1434, May 2, 2005.

  1. bpat1434

    bpat1434 Well-Known Member

    Joined:
    Oct 2, 2004
    Messages:
    71
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    Columbia, MD
    Hey all.

    I'm having some trouble getting the phps extension to work as expected. I've logged in as a regular user and gone through both the Apache Handlers and MIME Types and added the following:
    application/x-httpd-php-source .phps

    Now, I figured that this should take all *.phps documents and print them as source using the highlight_file() php function, or at least print the source. Unfortunately it always asks me to download the phps file. I know that you CAN add the type as I have per the PHP manual.

    Did I do something wrong? Has anyone else run into this trouble before? Thanks for the help.

    ~Brett
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    166
    *bump*

    I have the same problem.

    In my httpd.conf
    Code:
    AddType application/x-httpd-php-source .phps
    But the files download in IE and FF with just the contents of the file and mime-type = 'application/x-httpd-php-source'.

    Anyone know how to fix it?
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice