php src

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

airo
Forum Commoner
Posts: 31
Joined: Thu Apr 24, 2003 4:07 pm

Post by airo »

[]InTeR[] wrote:M$ is brainwasing you... 8O 8O 8O
Im sorry, but i get the imression of the stereotypical nerd bent over a keyboard with a pocket protector and a tie on whenever i see someone type M$ :P

ANyway, renaming a PHP file to a diffrent extension, such as .txt or .html IS less secure then keeping it .php due to the MIME filetype and interpratation on the servers part. If someone knows your including the file under, say include.html, all they have to do is go to include.html view source, and since it sends the whole file client side without running anything between <? ?>'s, the user can see your source.
User avatar
phice
Moderator
Posts: 1416
Joined: Sat Apr 20, 2002 3:14 pm
Location: Dallas, TX
Contact:

Post by phice »

When was the last time any of us (nerds/geeks) have worn a pocket projector with slicked back hair?

Ah yes, Revenge of the Nerds.
Image Image
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

That's why setting your server to parse files with the extension ".inc" or ".whatever" makes sense. Once parsed, nothing will but the intended output is viewable.
airo
Forum Commoner
Posts: 31
Joined: Thu Apr 24, 2003 4:07 pm

Post by airo »

patrikG wrote:That's why setting your server to parse files with the extension ".inc" or ".whatever" makes sense. Once parsed, nothing will but the intended output is viewable.
Yup. But on some types of servers this can be quite a pain, due to alot of servers dont allow MIME type configuration...

Damn i cant spell tonight... need... sleep...
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

Sounds like you're talking about M$-Servers...:P
airo
Forum Commoner
Posts: 31
Joined: Thu Apr 24, 2003 4:07 pm

Post by airo »

**snort**
Yeah guys, those damn M$, oppresing us! I think im going to send a nasty e-mail to Bill insinuating that hes a nazi-facist!!!!111!!!
Post Reply