SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: move db above root folder?
Hybrid View
-
Dec 11, 2008, 02:42 #1
- 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?
-
Dec 12, 2008, 15:35 #2
- Join Date
- May 2003
- Location
- Washington, DC
- Posts
- 10,653
- 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.
-
Dec 13, 2008, 05:01 #3
- 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