rob62 Posted June 7, 2007 Share Posted June 7, 2007 Being with GoDaddy is a pain! I can not use localhost or mydomain.com for $dbhost For $hostname I need p41mysql9.secureserver.net/home/content/l/i/b/libby86/html"; Below is a install script which I need to add a path statement. Can a path statement be added for /home/content/l/i/b/libby86/html ?????? ??? <php? '/usr/local/mysql-4.0/data/mysql.sock' $hostname="p41mysql9.secureserver.net"; $username="PHP_script"; $password="******"; $dbname="PHP_mailsript"; mysql_connect($hostname,$username, $password); mysql_select_db($dbname); # Check If Record Exists $query = "SELECT * FROM $usertable"; $result = mysql_query($query); if($result) { while($row = mysql_fetch_array($result)) { $name = $row["$yourfield"]; echo "Name: ".$name." "; } } ?> Thanks for all who help. Link to comment https://forums.phpfreaks.com/topic/54663-php-install-help/ Share on other sites More sharing options...
trq Posted June 7, 2007 Share Posted June 7, 2007 Your question makes little sense... what exactly is it you want to do? PS: In future, I wouldn't go posting your database passwords in public forums. Link to comment https://forums.phpfreaks.com/topic/54663-php-install-help/#findComment-270364 Share on other sites More sharing options...
rob62 Posted June 8, 2007 Author Share Posted June 8, 2007 Thanks for responding. That is not my password!! Normal web servers use "localhost" or "mydomain.com" for $dbhost. GoDaddy's is $dbhost="p41mysql9.secureserver.net"; and requires a path attached to it "/home/content/l/i/b/libby86/html" Can a line of script be written in the line after $dbhost" " showing the path "/home/content/l/i/b/libby86/html" ??? ??? ??? "/home/content/l/i/b/libby86/html" is where my databases are rob Link to comment https://forums.phpfreaks.com/topic/54663-php-install-help/#findComment-270447 Share on other sites More sharing options...
trq Posted June 8, 2007 Share Posted June 8, 2007 ? $dbhost="p41mysql9.secureserver.net/home/content/l/i/b/libby86/html"; Link to comment https://forums.phpfreaks.com/topic/54663-php-install-help/#findComment-270451 Share on other sites More sharing options...
rob62 Posted June 8, 2007 Author Share Posted June 8, 2007 Thanks for responding $dbhost does not accept anything beyond the domain "p41mysql9.secureserver.net" It faults out. That is why I need to add a line of script for the path, if possible. ??? ??? Try running the script with $dbhost="p41mysql9.secureserver.net/home/content/l/i/b/libby86/html"; It should fault out before getting to the password. rob Link to comment https://forums.phpfreaks.com/topic/54663-php-install-help/#findComment-270670 Share on other sites More sharing options...
rob62 Posted June 12, 2007 Author Share Posted June 12, 2007 $dbhost="p41mysql9.secureserver.net/home/content/l/i/b/libby86/html"; Adding the path onto dbhost does not work. Any program I want to install must allow me to add a path: /home/content/l/i/b/libby86/html :( I have asked on another board if there is a line of script I could add indicating the path. No luck! I think with Godaddy the path indicated is my root on shared hosting. Don't know for sure as I am a NEWBIE I thank everyone for offering help. Godaddy neglected to tell me that geeklog is on their site for installation. It is up and running. :D Link to comment https://forums.phpfreaks.com/topic/54663-php-install-help/#findComment-272804 Share on other sites More sharing options...
trq Posted June 12, 2007 Share Posted June 12, 2007 As I said in my initial reply, your question is not at all clear. server can be the path to a local socket, so, if thats what your looking to do, where is this socket located? Link to comment https://forums.phpfreaks.com/topic/54663-php-install-help/#findComment-272828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.