Re-JeeP Posted August 3, 2006 Share Posted August 3, 2006 Hi!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 Quote Link to comment Share on other sites More sharing options...
onlyican Posted August 3, 2006 Share Posted August 3, 2006 phps aint reconized as a MIME type on your serveruse the normal php extensionor set up a new MIME type Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 3, 2006 Share Posted August 3, 2006 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):[code]AddType application/x-httpd-phps .phps[/code] Quote Link to comment Share on other sites More sharing options...
Re-JeeP Posted August 4, 2006 Author Share Posted August 4, 2006 [quote]AddType application/x-httpd-phps .phps[/quote]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! Quote Link to comment Share on other sites More sharing options...
alecjw Posted August 7, 2006 Share Posted August 7, 2006 If you can find mime.types, insert this on to the end of it:application/x-httpd-phps .phpsOr you could try whereis httpd.conf in the bash shell. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.