| Index
» Projekty
» phpMyEdit
» Fórum
» include file for database login info |
 |
echo
Založený: 28.12.2003
Príspevky: 3
Zaslal: 2004-02-11 00:55
Návrat hore
Odpovedať s citátom
|
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
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2004-02-12 12:26
Návrat hore
Odpovedať s citátom
|
imagine you have 54 pme scripts and you want to change your password or move to another webhosting ....
|
slarsen
Založený: 17.02.2004
Príspevky: 4
Zaslal: 2004-02-17 16:55
Návrat hore
Odpovedať s citátom
|
| michal Napísal: |
| 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
Založený: 23.03.2003
Príspevky: 159
Bydlisko: FRANCE
Zaslal: 2004-02-22 22:20
Návrat hore
Odpovedať s citátom
|
| echo Napísal: |
| 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.
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|