
|
 |

Protecting the content of include filesA common practice in web design is to put repeated content (such as headers, footers, functions, etc) into a separate file then include it in all your webpages. However, using an extension such as .txt or .inc means if someone guesses the filename, they can view the contents of your file. This is particularly dangerous if you have sensitive info such as passwords or php code you don't want publically available. A way to protect this is to use the .php or .asp extension (depending on your server). If anyone views the page directly, all your code is executed and not visible to the end user. Comments
Comment by vinkal on 2005-01-20
this site is very helpfull
Comment by Theresa on 2011-08-18
I can arelady tell that's gonna be super helpful.
Comment by Avinash Powar on 2011-06-20
Nice site, very useful information
Comment by ivan tutorial on 2011-04-12
nice explanation!great post
|
|
|