The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    16
    *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