Re: Connect remote DB server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



It sounds like you haven't compiled php with mysql support.

recompile php with --with-mysql or using "apt-get install php-mysql"
if you're running debian

Regards,
Sune Rievers

On Mon, 11 Oct 2004 16:24:49 +0800, Laurence Lim
<webmaster@xxxxxxxxxxxxxxxx> wrote:
> Hi all, im new to PHP.net.
> 
> Im developing a program to retrieve data from a remote DB server running
> MySQL. The code written as
> 
> if (!($dbLink = mysql_connect("some.remote.host", $dbUser, $dbPass))) {
>  print ("mysql_connect failed!");
>  exit;
> }
> 
> But, it doesn't work... and return me the error msg,
> 
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/philately/hkpo-eng/request_information/test.php on line 6
> 
> I have granted permission for access, no firewall blocking... Anyone know
> why it happens? Thanks for reply!
> 
> Regards, Laurence
> 
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux