For some reason, .phps (php source) files aren't working on my server. I get a 404 error. On another server, I'm getting the same thing. On the last server I tried, it works but isn't color coded. Is there anyway I can make it color coded?
For some reason, .phps (php source) files aren't working on my server. I get a 404 error. On another server, I'm getting the same thing. On the last server I tried, it works but isn't color coded. Is there anyway I can make it color coded?
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
You need toCode:AddHandler php-source .phps
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
And where would I do that? [I have shared hosting]
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
I would assume that has to do with the Apache Modules? Not sure though.
- Mike
A .htaccess file will do.
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Alright, I've heard of .htaccess but have never used it. Where do I start?
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
Create a file called .htaccess and put the directive in it?
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
Alright, and just put that in my root directory? Ok.
Last edited by alexjewell; 06-11-2007 at 12:41 PM.
Thou com'st in such a questionable shape
Hamlet, Act 1, Scene 4
Well, it may be alright, and then again, maybe not, since the system must be set-up to acknowledge the .htaccess file in the directory that you are putting it. There needs to be a directive: AllowOverride home/patheto/directory/ in httpd.conf, and then you need to do a soft restart on the server to pick this change up.....BTW..... (NIX servers, at least)
Bookmarks