can anyone tell me what is my localhost or where can i get the name of my localhost. Plz, reply urgently.
can anyone tell me what is my localhost or where can i get the name of my localhost. Plz, reply urgently.
localhost is your own box and has usually the ip 127.0.0.1
(loopback address)
I need the mysql localhost.
This is example of another site:
<?php
/*This page is solely for the database conection.*/
DEFINE('DB_DETAILS', true);
DEFINE('DB_HOST', "sql213.0fees.net");
DEFINE('DB_USER', "fees0_4950895");
DEFINE('DB_PASS', "*******");
DEFINE('DB_NAME', "fees0_4950895_myptc");
?>
Last edited by amplec; 01-24-2010 at 06:49 AM.
if you want to connect to an sql database you have to use an FQDN
( http://en.wikipedia.org/wiki/Fully_q...ed_domain_name ) or IP address, which should appear in cpanel
( http://en.wikipedia.org/wiki/Localhost )
sql213.0fees.net would be the fqdn of the sql serverPHP Code:<?php
/*This page is solely for the database conection.*/
DEFINE('DB_DETAILS', true);
DEFINE('DB_HOST', "sql213.0fees.net");
DEFINE('DB_USER', "fees0_4950895");
DEFINE('DB_PASS', "*******");
DEFINE('DB_NAME', "fees0_4950895_myptc");
?>
(ping sql213.0fees.net to get it's ip address)
Last edited by slacker3; 01-24-2010 at 07:06 AM.