Re: Connect remote DB server
| From: | Laurence Lim | Date: | Tue, 12 Oct 2004 01:45:40 +0000 |
| Subject: | Re: Connect remote DB server | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36742@lists.php.net to get a copy of this message | ||
Hi Shahmat,
The platform im using is EL3, I have asked the engineer to install the
packages (rpms),
php-imap-4.3.2-11.1.ent
php-ldap-4.3.2-11.1.ent
php-4.3.2-11.1.ent
php-mysql-4.3.2-11.1.ent
Is these enough? Thanks for reply!
"Shahmat Dahlan" <shahmatd@sains.com.my> ???
news:416A4CCD.3060906@sains.com.my ???...
> I think the mysql extension was not loaded, that's why you got the
> message, and it was not able to recognize the function mysql_connect.
>
> Fatal error: Call to undefined function: mysql_connect()
>
> how did you install your copy of php? compile it from source?
>
>
> Laurence Lim 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
> >
> >
> >