navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Connections folder outside of public_html

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Dreamweaver Help >> Connections folder outside of public_html
Page: [1]
 
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

(in reply to SimonCleaver)
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.


(in reply to coreybryant)
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

(in reply to SimonCleaver)
mar0364

 

Posts: 3026
Joined: 4/5/2002
From: Florida, US
Status: offline

 
RE: Connections folder outside of public_html - 3/5/2007 8:47:02   
I was a little confused with your descritpion. So I'm including an image that I hope helps you. This is how a local version of a properly set up site should look.



Thumbnail Image
:)

Attachment (1)

_____________________________

Easy Web

“Stay committed to your decisions, but stay flexible in your approach.”


(in reply to SimonCleaver)
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 9:05:47   
Thanks, you have confirmed I have incorrectly setup mine. I must have set the "root" of my website too far up. Below is screenshot of how my dreamweaver is at the moment. As you can see, the connection folder is above the public folder. I think maybe I need to start again, as I think having 2 copies of the mmServerScript is wrong as well. Many thanks for the help.


Thumbnail Image
:)

Attachment (1)

(in reply to mar0364)
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.”


(in reply to SimonCleaver)
Page:   [1]

All Forums >> Web Development >> Dreamweaver Help >> Connections folder outside of public_html
Page: [1]
Jump to: 1





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