Store database password outside of public_html folder



Hi All,

I've been reading on the internet that is most secure to store your database details outside of the public accessible folder.

I am a bit stuck on how to do this.

I've got a folder "db_details" that contains the file "dbdetails" which contains the database login info. I normally include this file in any page requiring database connectivity e.g. include_once("db_details/dbdetails.php")

How can I now set this up so that the folder/files for the database are stored outside of the public_html folder ?

thanks



.



Relevant Pages

  • Re: Spooler Service on XP workstation uses 100% CPU all the time
    ... jobs are occasionally getting stuck. ... See if there are any print jobs stuck in the queue. ... go back to the Printers folder and click on ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Cant delete a defective e-mail message
    ... you want to keep into another folder and then delete the folder the "stuck" ... Wrote that way back when I first tried the Vista "upgrade" that I received ... with Windows Mail not running: ...
    (microsoft.public.windows.vista.mail)
  • Re: Stubborn email wont delete
    ... you want to keep into another folder and then delete the folder the "stuck" ... Wrote that way back when I first tried the Vista "upgrade" that I received ... with Windows Mail not running: ...
    (microsoft.public.windows.vista.mail)
  • Re: Messages Stuck in Temp Tables
    ... Did you also exclude this folder from Symantec scanning: ... > stuck there and I don't know why. ... Our antivirus (Symantec Antivirus ...
    (microsoft.public.exchange2000.win2000)
  • Messages stuck in Queue
    ... Following on from the earlier 'DHCP problem on restored SBS 2003 system' ... On the DHCP side stuck everything on fixed IPs and all working fine. ... Incoming folder to the c:\inetpub\mailroot\queue folder where it remains ...
    (microsoft.public.windows.server.sbs)