Page 1 of 1
HOW: Connecting to remote server - SOLVED
Posted: Mon Jul 24, 2006 2:59 am
by khaki_monster
hello pepz,
how do i connect to my remote server? im using PostgreSQL.
please help..
tanx...
Posted: Mon Jul 24, 2006 7:14 am
by Chris Corbyn
Code: Select all
$host = 'yourserver.tld';
$db = 'foo';
$user = 'username';
$pass = 'password';
$conn = pg_connect("host=$host dbname=$db user=$user password=$pass")or die(pg_last_error());
Posted: Wed Jul 26, 2006 3:33 am
by khaki_monster
hi
sorry, i forgot to mention with the use of CURL. so the question here again is, how would i connect to my remote server with the use of CURL.
tanx!
Posted: Wed Jul 26, 2006 8:47 am
by feyd
cURL isn't intended as a database transport. Are you sure you want to use it as such?