Jump to content

PHP install HELP!!!


rob62

Recommended Posts

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

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

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

$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 :D :D

 

 

Link to comment
https://forums.phpfreaks.com/topic/54663-php-install-help/#findComment-272804
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.