|
| |
|
|
SimonCleaver
Posts: 85 Joined: 2/26/2004 From: UK - now living in Spain Status: offline
|
Connections folder outside of public_html - 3/5/2007 6:35:35
Hi all, wonder if anyone can help a newbie. I have created Mysql database on webserver. Using Dreamweaver 8 and made a connection to the db, created php connection file which is in Connections folder. But the folder is located one level up (outside) from my public_html folder - is this correct? I was wondering if all folders and files should be inside my public_html folder, in which case I must have made a mistake when in Site Manager. I found the settings in Site Manager quite confusing so have probably made a mistake somewhere with the "host directory". If it is incorrect, how should I move the connection folder and file - is it ok just to drag it inside public_html folder. Also because I was changing site manager settings to get the connection working I now have 2 mmServerScript folders on my web server; one inside public_html and one outside! Would I be best to delete both folders and start again! How should I go about repairing this? Anyone know a link to simple tutorial for setting up Site Manager correctly? Many thanks for any advice.
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Connections folder outside of public_html - 3/5/2007 7:21:13
The connection folder might just be there for security. This way, that file cannot easily be called in a browser and your site hacked. For example. usually most MS Access databases are also placed in a folder not easily accessed by the browser. At least that is my opinion :) - I have not really used DW before but someone else might have another idea if I am incorrect
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
SimonCleaver
Posts: 85 Joined: 2/26/2004 From: UK - now living in Spain Status: offline
|
RE: Connections folder outside of public_html - 3/5/2007 7:40:32
Thanks Corey, I'm not quite sure myself, but I think it should be visible to site vistors, as it contains the php file with the MySQL connection information. Googling gives lots of hits on Dreamweaver Site Manager, so I think it can cause a bit of confusion when first used. I just wanted to be sure I was starting out correct.
|
|
|
|
coreybryant
Posts: 2422 Joined: 3/17/2002 From: Castle Rock CO USA Status: offline
|
RE: Connections folder outside of public_html - 3/5/2007 8:29:35
We usually put the connection string sometimes in another folder- this helps to prevent the people from typing in the connection file and then viewing the source and getting the user name / password / database name to your database. This is something that you do not want people to have
_____________________________
Corey R. Bryant Merchant Accounts | Toll Free Numbers | My Blog | Expression Web Blog
|
|
|
|
mar0364
Posts: 3026 Joined: 4/5/2002 From: Florida, US Status: offline
|
RE: Connections folder outside of public_html - 3/5/2007 9:24:19
Setting up a site correctly in DW is everything. Once you get over that hurdle you can do just about anything in it. Good Luck! Rich
_____________________________
Easy Web “Stay committed to your decisions, but stay flexible in your approach.”
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|