| Index
» Projects
» phpMyEdit
» Forum
» include file for database login info |
 |
echo
Joined: 28 Dec 2003
Posts: 3
Posted: 2004-02-11 00:55
Back to top
Reply with quote
|
In the docs, why does it recommend that the first four database connection options (login info for the database) be moved to an include file, since the php code from your calling program can't be accessed from a browser?
|
michal
Joined: 17 Jun 2003
Posts: 537
Location: Slovakia
Posted: 2004-02-12 12:26
Back to top
Reply with quote
|
imagine you have 54 pme scripts and you want to change your password or move to another webhosting ....
|
slarsen
Joined: 17 Feb 2004
Posts: 4
Posted: 2004-02-17 16:55
Back to top
Reply with quote
|
| michal wrote: |
| imagine you have 54 pme scripts and you want to change your password or move to another webhosting .... |
why can't you just rename the files with a common ext like .rn for rename and then cat the files and replace a string?
|
hbernard
Joined: 23 Mar 2003
Posts: 159
Location: FRANCE
Posted: 2004-02-22 22:20
Back to top
Reply with quote
|
| echo wrote: |
| In the docs, why does it recommend that the first four database connection options (login info for the database) be moved to an include file, since the php code from your calling program can't be accessed from a browser? |
Because if there is a misconfiguration of your server, php code may became avalaible (or if calling php preprocessor failed, for another example).
If your login/password are put in an include folder that is not exposed by the Web Server, your confidentials infos can't be accessed.
|
|
Post new topic
Reply to topic
|
|
|
|