Thread: PHP warning
View Single Post
  #1 (permalink)  
Old 30-11-2005, 00:53
targetdesign targetdesign is offline
Member
 
Join Date: Nov 2005
Posts: 39
Default PHP warning

Hello,

Just a friendly warning.
While I was learning PHP I read alot of stuff.
Most of this seemed to have standard examples of how to do different tasks.

For database connection they said it was good to use the include option so that if you change your database details or password then you can just change one file and the rest are updated.

Anyway the examples had db.inc as the file name generally in a folder called include.

If other people like myself who have read this go around trying this folder/filename combination on your website hosting then they could get that file to load.

Now to the problem. if this file extension is not setup as a file type to be parsed by a program the details will load as a simple text file.

Exposing your password and other details.

I noticed this while working for a client that had already done this on there website hosting.

So best to rename then files db.inc.php so no text is shown.

I searched in google and found a few on these and warned the owners, much to there suprise
Reply With Quote