SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Nov 2007
    Location
    Canada
    Posts
    180
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Question secure database method

    I am using include 'include/dbinc.php'; for my database name/password.
    is this secure?where can I put this file to make it secure from hackers?thank you

  2. #2
    Use The Cloud
    Join Date
    Jan 2006
    Location
    Boise, ID
    Posts
    556
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    "Secure" can be a relative term.

    Your solution is OK if the information is stored as PHP as opposed to text which would be visible to anyone. This is "secure" as long as your PHP interpreter never fails.

    The best solution is to store all files except for what is absolutely necessary outside of your public document root.

    In most cases using a front controller pattern, the only file that has to be stored in the public root is a single index.php file.
    Brad Hanson, Web Applications & Scalability Specialist
    ► Is your website outgrowing its current hosting solution?
    ► PM me for a FREE scalability consult!
    ► USA Based: Available by Phone, Skype, AIM, and E-mail.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •