.phps Files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 2kb
    Junior Member
    • Jun 2005
    • 1

    .phps Files

    Sorry if this doesn't actually need a new thread as a quick search didn't really find anything, but what do I need to do to get .phps files working. (ie. display the highlighted source)
  • Jonathan
    Senior Member
    • Mar 2004
    • 1229

    #2
    Its a value that needs to be added/changed in the httpd.conf file.
    I'd submit a TT seeing if Dathorn would be willing to add this since
    they are the only ones with access to that system file. Another
    option is to use this function if they won't add the nessary changes to enable .PHPS files.
    "How can someone be so distracted yet so focused?"
    - C

    Comment

    • sdjl
      Senior Member
      • Mar 2004
      • 502

      #3
      There is also another option too.
      Add this line of code to the top of any document you want to allow people to see the source for:
      PHP Code:
      if($_GET['source']) { show_source(__FILE__); } 
      Then, all you do is call your script with a ?source=yes on the end of it

      David
      -----
      Do you fear the obsolescence of the metanarrative apparatus of legitimation?

      Comment

      • deuce868
        Junior Member
        • Sep 2004
        • 4

        #4
        I was just trying to get this to work. I saw that in cpanel you can add a custom handler so I added .phps and application/x-httpd-php-source to the cpanel.

        Now after this I would expect to need to restart apache, but I couldn't find a way to do that by hand. I'm not sure, maybe it does it on it's own, but it still won't handle the phps files.

        Before I go about other options is there a reason that the addHandler won't work?

        Thanks

        Comment

        Working...