SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    move db above root folder?

    Im building an ecommerce website. The hosting company said that its insecure because Im using an Access database. They said I could place it above the root directory so its not accessible by people. How would I do this? They also said I was using non-compliant code because of the way I was referencing the database. My line is:

    connectToDB.ActiveConnection = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.MapPath("database/mydb.mdb")

    What would it be if I place the db above the root folder? And how would I make this line into compliant code?

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,576
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Please tell me you are not storing credit card information in an unencrypted access database sitting in a http accessible folder on a shared web server. If so, managing connection strings is the least of your problems.

  3. #3
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Posts
    43
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No, Im certainly not storing cc details there! However, there will be names and addresses.


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
  •