468,315 Members | 1,445 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,315 developers. It's quick & easy.

mysql_pconnect() not defined

Hello folks,

In my php scripts, those mysql functions, like mysql_pconnect() and
mysql_connect() are said to be undefined. What do I miss here?

Thanks.

--
Allen Guan
281-489-2314
Jul 17 '05 #1
4 2354
Yun Guan wrote:
Hello folks,

In my php scripts, those mysql functions, like mysql_pconnect() and
mysql_connect() are said to be undefined. What do I miss here?

Thanks.

--
Allen Guan
281-489-2314

Hi,
I think you've compiled php without mysql support.

Greetings,
Jonas
Jul 17 '05 #2
if you put this in a file and save it you can see if php has loaded the
mySQL modules. You should have no probs using mysql_connect()

<?php
phpinfo();
?>
"Veers" <jo*****@gmx.ch> wrote in message
news:cn**********@newshispeed.ch...
Yun Guan wrote:
Hello folks,

In my php scripts, those mysql functions, like mysql_pconnect() and
mysql_connect() are said to be undefined. What do I miss here?

Thanks.

--
Allen Guan
281-489-2314

Hi,
I think you've compiled php without mysql support.

Greetings,
Jonas

Jul 17 '05 #3
I ran phpinfo(). The only thing about Mysql is under item dbx where MYSQL is
listed as one of the supported databases. Does that mean mysql module is
loaded?

Yun Guan
"Tony Clarke" <cl*****@eircom.net> wrote in message
news:8s*******************@news.indigo.ie...
if you put this in a file and save it you can see if php has loaded the
mySQL modules. You should have no probs using mysql_connect()

<?php
phpinfo();
?>
"Veers" <jo*****@gmx.ch> wrote in message
news:cn**********@newshispeed.ch...
Yun Guan wrote:
> Hello folks,
>
> In my php scripts, those mysql functions, like mysql_pconnect() and
> mysql_connect() are said to be undefined. What do I miss here?
>
> Thanks.
>
> --
> Allen Guan
> 281-489-2314
>
>

Hi,
I think you've compiled php without mysql support.

Greetings,
Jonas


Jul 17 '05 #4
My PHP came with the Linux 9. MYSQL was installed after PHP. Should I
reinstall PHP?

Allen Guan

"Allen Guan" <yg***@houston.rr.com> wrote in message
news:ZD****************@fe1.texas.rr.com...
I ran phpinfo(). The only thing about Mysql is under item dbx where MYSQL
is listed as one of the supported databases. Does that mean mysql module is
loaded?

Yun Guan
"Tony Clarke" <cl*****@eircom.net> wrote in message
news:8s*******************@news.indigo.ie...
if you put this in a file and save it you can see if php has loaded the
mySQL modules. You should have no probs using mysql_connect()

<?php
phpinfo();
?>
"Veers" <jo*****@gmx.ch> wrote in message
news:cn**********@newshispeed.ch...
Yun Guan wrote:
> Hello folks,
>
> In my php scripts, those mysql functions, like mysql_pconnect() and
> mysql_connect() are said to be undefined. What do I miss here?
>
> Thanks.
>
> --
> Allen Guan
> 281-489-2314
>
>
Hi,
I think you've compiled php without mysql support.

Greetings,
Jonas



Jul 17 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Randell D. | last post: by
1 post views Thread by Hal Halloway | last post: by
4 posts views Thread by Angelos | last post: by
1 post views Thread by tom_b | last post: by
1 post views Thread by WhatsPHP | last post: by
11 posts views Thread by =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post: by
9 posts views Thread by John Murtari | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.