SitePoint Sponsor |
|
User Tag List
Results 1 to 3 of 3
Thread: move db above root folder?
Threaded 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?
Bookmarks