Newbie Help Please - Website will not work after upload
Posted: Sat Aug 08, 2009 5:04 pm
Hi:
Here is the situation: the website and database work properly on the local computer. However, I am getting strange errors trying to use my website. When I attempt the login on the main page, I get these errors:
Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/36/d288897568/htdocs/htdocs/member.php
A link to the server could not be established in /homepages/36/d288897568/htdocs/htdocs/member.php on line 9
Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/36/d288897568/htdocs/htdocs/member.php on line 10
A link to the server could not be established in /homepages/36/d288897568/htdocs/htdocs/member.php on line 10
See how htdocs is listed twice? That does not look right. The database is perfectly accessible through the PHPMyAdmin portion of my Web Host.
I have the file structure set up so the index.php file is on the root folder, and the rest of the php files are in the htdocs folder. Here are the contents of the index.php file:
<?php
require_once('htdocs/ref_fns.php');
do_html_header('');
display_site_info();
display_login_form();
display_admin();
do_html_footer();
?>
Can you please help with this problem? Thank you in advance.
Dave
Here is the situation: the website and database work properly on the local computer. However, I am getting strange errors trying to use my website. When I attempt the login on the main page, I get these errors:
Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/36/d288897568/htdocs/htdocs/member.php
A link to the server could not be established in /homepages/36/d288897568/htdocs/htdocs/member.php on line 9
Can't connect to local MySQL server through socket '/tmp/mysqld.sock' (2) in /homepages/36/d288897568/htdocs/htdocs/member.php on line 10
A link to the server could not be established in /homepages/36/d288897568/htdocs/htdocs/member.php on line 10
See how htdocs is listed twice? That does not look right. The database is perfectly accessible through the PHPMyAdmin portion of my Web Host.
I have the file structure set up so the index.php file is on the root folder, and the rest of the php files are in the htdocs folder. Here are the contents of the index.php file:
<?php
require_once('htdocs/ref_fns.php');
do_html_header('');
display_site_info();
display_login_form();
display_admin();
do_html_footer();
?>
Can you please help with this problem? Thank you in advance.
Dave