mysql_pconnect to remote system

From: Date: Tue, 23 Oct 2001 07:29:31 +0000
Subject: mysql_pconnect to remote system
Groups: php.general 
Request: Send a blank email to php-general+get-71908@lists.php.net to get a copy of this message
Ok, after all the problems trying to get into the flat file and stuff, i decided it will just be easier to use mysql... Only problem is the database is on the machine that is going to host the site when it's done... (Redhat Linux) and is being developed in my office on a windows box... So i need to connect to the database from my win box - and it's giving connection failed messages. This is what i'm doing: <?php $server = "IP of server:3306"; $user = "username"; $pass = "password"; if(!($myLink = mysql_pconnect($server,$user,$pass))) { print("Unable to connect to database<br>\n"); exit(); } ?> and every time it gives me the error. - do i need to change the script? or do i need to contact the ISP that's hosting the database? //Nick Richardson //esoteric.web@gte.net

« previous php.general (#71908) next »