Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, November 11, 2026
About Us
Magazine
Open Source
CVS
Services
Index  »  Projects  »  phpMyEdit  »  Forum  »  include file for database login info

phpMyEdit General     include file for database login info
Post new topic   Reply to topic    
 
echo     Joined: 28 Dec 2003   Posts: 3  
Post 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
Post 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  
Post 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
Post 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    

Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top · Feedback form · Application form
Report bug on PLATON.SK website · Terms of use · Privacy policy