472,804 Members | 969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,804 software developers and data experts.

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 2513
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Randell D. | last post by:
Folks, I currently connect to my db with PHP code that uses non-persistent connections. I've read that persistent connections can help performance since a connection to the db will use an...
1
by: Hal Halloway | last post by:
mysql_pconnect("localhost","user","password") Is there a way so that password will not be text? So someone looking at the file would not be able to know the password? Thanks Ps my sysadmin...
0
by: anders thoresson | last post by:
Hi, I have this function I call everytime I need to make a query from within my php-scripts: function db_connect ($user, $pwd, $db, $debug = 0) { $link = @mysql_pconnect("localhost",...
4
by: Angelos | last post by:
I get this error mysql_pconnect Too many connections ... every now and then. Does anyone knows where it comes from ? There are a lot of sites running on the server and all of them use the...
1
by: tom_b | last post by:
I get this error when I try to connect to my database Fatal error: Call to undefined function mysql_pconnect() in c:\program files\apache group\Apache\htdocs\flash.php on line 11 Here's the...
1
by: WhatsPHP | last post by:
Can I use mysql_pconnect on an environment like this? There is just 1 server on which both PHP and MYSQL runs. It is an intranet server. At any point atleast 2 people will be actively using the...
11
by: =?ISO-8859-1?Q?J=F8rn?= Dahl-Stamnes | last post by:
Hello, I have been using mysql_connect in a script that display a lot of thumbnails for an album. Each thumbnail is displayed using the code: <IMG SRC="thm.php?id=some_id" ALT="some title"> ...
2
by: EsahakNoorul | last post by:
hi, I want to know the difference between mysql_connect and mysql_pconnect Regards, Noorullah
9
by: John Murtari | last post by:
Folks, We have a fairly busy web site present using PHP 5 to talk to a MySQL 5.0.45 DB on an Apache 1.3 series server. It's spread out over several physical hosts (one DB server), we use DB...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.