Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Path syntax for mdb file
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Path syntax for mdb file

 Post Reply Post Reply
Author
mjordan111055 View Drop Down
Newbie
Newbie


Joined: 02 December 2002
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjordan111055 Quote  Post ReplyReply Direct Link To This Post Topic: Path syntax for mdb file
    Posted: 12 February 2003 at 8:40am
Newbie question.  I want to put the mdb files in my cgi-bin directory, which is a vitural web.  What is the correct syntax for locating the path in the two common.asp files?
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2003 at 8:47am

Why would you want to put the databases in the CGI-bin, people can still access this directory from a web browser.

You want to place your database in a folder outside of your web site that can't be accessed through a web browser, you then want to follow the documentation that comes with the forum on moving and renaming your database.

Back to Top
mjordan111055 View Drop Down
Newbie
Newbie


Joined: 02 December 2002
Location: United States
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mjordan111055 Quote  Post ReplyReply Direct Link To This Post Posted: 12 February 2003 at 9:30am

Ok....so I put the the database outside of the webpage.   I guess I am back to my first question.  What is the syntax for the path so the asp scripts can find the data base?  Lets say I put the mdb file in a folder on dirve d called misc. What is the path syntax for this example?  I looked at the example in the renaming/moving section of the documentation.  I could not find an example of moving the mdb file out of the web path. 

Ok I moved my mdb file to a directory outside my website.  What is the proper syntax to use in the common.asp to direct it to the proper folder.  Lets say I put my file in D:\misc  and the file was called test.mdb.  Is it "d:/misc/test.mdb"   ?

Thank you for your help.



Edited by mjordan111055
Back to Top
Duredhel View Drop Down
Newbie
Newbie


Joined: 12 June 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Duredhel Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 3:17pm
Was this question ever answered?  I'm trying to do the same thing (move the db above the websites root into a secure directory) and I'm not sure what syntax to use in the common.asp.
Back to Top
Duredhel View Drop Down
Newbie
Newbie


Joined: 12 June 2003
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote Duredhel Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 4:31pm
Figured it out.  In case anyone else has wondered about changing the location of the DB to something outside the webspace the syntax is not located in the help documentation that comes with the forums.  Instead, look at the common.asp file itself.  There are comments beside the correct syntax for changing the location to something above your web root.
Back to Top
xeerex View Drop Down
Senior Member
Senior Member


Joined: 19 November 2002
Location: United States
Status: Offline
Points: 601
Post Options Post Options   Thanks (0) Thanks(0)   Quote xeerex Quote  Post ReplyReply Direct Link To This Post Posted: 12 June 2003 at 8:27pm

I should imagine there is no "help" in the documentation for that since the comments and an example are in the common.asp which must be edited per the help?

For those who don't know, the correct pathway depends on your webhost and your setup. As a "general rule" when you login to your FTP client, you should notice a directory structure on the server side of the FTP program window that will pretty much tell you. For instance, here is a sample pathway to a database that is above the public portion:

d:/users/database/f12o45r29um.mdb  (above the www root)

whereas the site would be something like

d:/users/www  (this would be where you put all your pages)

Now, depending on your hosting/setup you may need to use a DSN connection. A DSN connection is usually setup by your host or through your control panel. In simple terms a DSN connection is a "virtual name" to connect to your database rather than using a direct pathway. This may cause some slight performance issues on a heavily traffic'ed board as the server must process the DSN connection as well.

If you use Frontpage, then you cannot "see" above the public portion of your site through Frontpage. You will need to still use an FTP client to upload your database above the public side of your web. Contrary to some opinions you CAN use an FTP client on a FP enabled site just don't delete any files that begin with _vti or such as these are required by the FP extensions.

*Note: Using FP is not an issue as some claim. However, DO NOT use FP to edit your asp pages unless you know how to disable the additional FP coding which is an advanced method. If you use FP, then I recommend that you will also need a separate WYSIWYG editor such as Dreamweaver or another one that doesn't place application specific coding in the source code of the pages.

IMPORTANT: As -borg- and the help notes, it is VERY VERY important to get your database above the public the portion of your web. This pretty much prevents the ability of someone to download your database without hacking your FTP user/pass.

At the VERY LEAST rename the database to something very difficult to guess. Don't put it in your cgi-bin since that is an obvious place. Contact your host about setting up a new directory with WRITE permissions and use a somewhat cryptic directory name. Place the database in there.

Password protecting the database is of no use. If someone is smart enough to find the database, they are certainly smart enough to spend 2 mins on the internet and download a password cracking program and spend another 3 seconds (literally) cracking your database password.

10 print "GET THE DATABASE OUT OF THE PUBLIC PORTION OF THE WEB IF AT ALL POSSIBLE."

20 Goto 10

 



Edited by xeerex
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.