S Seth Verified User Joined Oct 26, 2003 Messages 261 Location USA Sep 23, 2006 #1 Hello, I am unable to connect to a mysql DB from private_html Is there a trick to this?
W woober Verified User Joined Sep 21, 2005 Messages 16 Location Norway Oct 11, 2006 #2 Uhm. Did you make a script that calls up the db you wanna use? Normally you should have a configfile, saying something like: // Database Config Variables $_DBHOST = 'localhost'; $_DBUSER = 'user'; $_DBPASS = 'pass'; $_DBNAME = 'dbname';
Uhm. Did you make a script that calls up the db you wanna use? Normally you should have a configfile, saying something like: // Database Config Variables $_DBHOST = 'localhost'; $_DBUSER = 'user'; $_DBPASS = 'pass'; $_DBNAME = 'dbname';
S Seth Verified User Joined Oct 26, 2003 Messages 261 Location USA Oct 11, 2006 #3 Yes What I had to do is upload the files into public_html as well as private_html
W woober Verified User Joined Sep 21, 2005 Messages 16 Location Norway Oct 11, 2006 #4 Do you run SSL? Private_html, is only for secure pages.. If you want your page to be https:// While public_html is the webroot directory, which everyone see So you dont need to upload in both, if you dont use SSL.
Do you run SSL? Private_html, is only for secure pages.. If you want your page to be https:// While public_html is the webroot directory, which everyone see So you dont need to upload in both, if you dont use SSL.
S Seth Verified User Joined Oct 26, 2003 Messages 261 Location USA Oct 11, 2006 #5 for me to get my files to connect to mysql through my private_html (https) directory I had to upload my files in both private_html and public_html
for me to get my files to connect to mysql through my private_html (https) directory I had to upload my files in both private_html and public_html