Jump to content

ketchumdev

New Members
  • Posts

    5
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ketchumdev's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The settings in my connections files don’t mesh with what my online database requires. Godaddy, shared Linux. This is the page: http://bocce.tongie.me/add_user.php Here is first of the two warnings my page generates: Warning: mysql_connect() : Can’t connect to local MySQL server through socket ‘/var/lib/mysql/mysql.sock’ (2) in /home/content/86/7345486/html/bocce/connections/ketchumdevwrite.php on line 9 Here is one of my connection files: <?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_ketchumdevwrite = "localhost"; $database_ketchumdevwrite = "bocce"; $username_ketchumdevwrite = "ketchumdevwrite"; $password_ketchumdevwrite = "****"; $ketchumdevwrite = mysql_pconnect($hostname_ketchumdevwrite, $username_ketchumdevwrite, $password_ketchumdevwrite) or trigger_error(mysql_error(),E_USER_ERROR); ?> Line 9 is the last one, just before the close. These are the settings for my local test server. I have no trouble accessing the online database using the Starfield Technologies interface, so this seems like it should be easy, but I am having no luck. Where can I find the correct settings to connect to my online database? Thanks to everyone.
  2. DavidAM, The connections folder is in the bocce folder, removing the slash at the beginning leads me to another error. I think I might have an issue in my connections file. I'm gonna try to work this out. I seem to learn more if I work things on my own. Thanks to everyone for the responses, I appreciate the help.
  3. PHP-Real, thank you for your response. But I don't get your meaning. In the online directory there aren't any files called localhost, and nothing in the pages attempts to point to localhost. The page will load, it just throws the warning "failed to open stream: No such file or directory in ..." It fails to make the link to my connection file. The files are there, my path is just wrong somehow. I'm overlooking something obvious. Thanks again Did I mention this is my first crack at PHP?
  4. My PHP page: http://bocce.tongie.me/add_user.php Throws the error message: Warning: include(/connections/ketchumdevread.php) [function.include]: failed to open stream: No such file or directory in /home/content/86/7345486/html/bocce/login.php on line 1 This functions flawlessly in my local testing environment (XAMPP). Somehow, the code I have refuses to locate my “connections” folder on the remote server. I have confirmed spelling, capitalization, folder location, and attempted every conceivable combination of ../../. Also, due to the fact that this is located under a subdomain, I have attempted to use the path /bocce/connections/ketchumdevread.php This really feels like an elementary problem, I just can’t find the solution. I’m stumped. Any suggestions? Here are the first few lines of the add user page (copied from the remote server): <?php include('/connections/ketchumdevwrite.php'); ?> <?php if (isset($_POST['password'])) { $_POST['password'] = sha1($_POST['password']); } Thank you all very much.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.