Jump to content


Force to view a *.phps page

  • Please log in to reply
4 replies to this topic

#1 Re-JeeP

  • Members
  • PipPip
  • Member
  • 21 posts

Posted 03 August 2006 - 05:42 PM


I'm using this link to view a script.
<a href="script.phps" target="_blank">Script</a>

But it dosen't show the page, it pops up a downloader instead.

I searched some infomation about it and a header seemed to solve it.

But i don't realy now how to use it!

Any ideas?

// Johan

#2 onlyican

  • Members
  • PipPipPip
  • Advanced Member
  • 921 posts
  • LocationHants - UK

Posted 03 August 2006 - 05:48 PM

phps aint reconized as a MIME type on your server
use the normal php extension
or set up a new MIME type

Tell me the problem, I will try tell you the solution

#3 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 03 August 2006 - 06:04 PM

YOu server will need to be configured to to parse .phps files with the PHP Highlighter. With Apache you can add this to the httd.conf or .htaccess (i think):
AddType application/x-httpd-phps .phps

#4 Re-JeeP

  • Members
  • PipPip
  • Member
  • 21 posts

Posted 04 August 2006 - 06:19 AM

AddType application/x-httpd-phps .phps

I tried to put the text into a .htaccess-file but it didn't work.

Since I can't get access to httpd.conf I need some other solution!

#5 alecjw

  • Members
  • PipPipPip
  • Advanced Member
  • 31 posts
  • LocationHatfield, Herts, UK

Posted 07 August 2006 - 09:10 AM

If you can find mime.types, insert this on to the end of it:
application/x-httpd-phps .phps

Or you could try whereis httpd.conf in the bash shell.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users