Connections folder outside of public_html (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


SimonCleaver -> 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 -> 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




SimonCleaver -> 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 -> 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




mar0364 -> 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.


[image]local://upfiles/5085/BACF527DDC844C0BBBC0C84845B8508A.jpg[/image]




SimonCleaver -> 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.

[image]local://upfiles/10483/03C7F750248F4D9DB4433AA0F2A8ADF9.jpg[/image]




mar0364 -> 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




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.078125