473,503 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fatal error: Call to undefined function MYSQL_CONNECT()

I know this is a common error, and that there are lots of posts all
over the place as to why it happens, but I cannot for the life of me
figure out what I'm doing wrong. Here's the scoop:

My path includes: c:\program files\php\; c:\program files\php
\extensions;

php.ini includes:

extension=php_mysql.dll
extension=php_mysqli.dll

I'm using Windows XP Professional with SP2, php 5.2.5 and mysql
5.0.51a

The libmySQL.dll was copied from the C:\Program Files\MySQL\MySQL
Server 5.0\bin folder into the c:\program files\php\ folder.

I have disabled Norton internet worm protection, rebooted,
systematically examined all of the above, and nothing has worked.
Mysql is not found in the phpinfo()

Can anybody point me in the right direction?

MrsBean
Feb 27 '08 #1
3 6353
On Feb 27, 11:29 am, MrsBean <li...@phoenixpromotions.comwrote:
I know this is a common error, and that there are lots of posts all
over the place as to why it happens, but I cannot for the life of me
figure out what I'm doing wrong. Here's the scoop:

My path includes: c:\program files\php\; c:\program files\php
\extensions;

php.ini includes:

extension=php_mysql.dll
extension=php_mysqli.dll

I'm using Windows XP Professional with SP2, php 5.2.5 and mysql
5.0.51a

The libmySQL.dll was copied from the C:\Program Files\MySQL\MySQL
Server 5.0\bin folder into the c:\program files\php\ folder.

I have disabled Norton internet worm protection, rebooted,
systematically examined all of the above, and nothing has worked.
Mysql is not found in the phpinfo()

Can anybody point me in the right direction?

MrsBean
Are you sure you've edited the correct php.ini? phpinfo() will tell
you which one is actually being used.
Feb 27 '08 #2
On Wed, 27 Feb 2008 17:31:09 +0100, ZeldorBlat <ze********@gmail.com
wrote:
On Feb 27, 11:29 am, MrsBean <li...@phoenixpromotions.comwrote:
>I know this is a common error, and that there are lots of posts all
over the place as to why it happens, but I cannot for the life of me
figure out what I'm doing wrong. Here's the scoop:

My path includes: c:\program files\php\; c:\program files\php
\extensions;

php.ini includes:

extension=php_mysql.dll
extension=php_mysqli.dll

I'm using Windows XP Professional with SP2, php 5.2.5 and mysql
5.0.51a

The libmySQL.dll was copied from the C:\Program Files\MySQL\MySQL
Server 5.0\bin folder into the c:\program files\php\ folder.
Is c:\program files\php\ in your path?
--
Rik Wasmus
Feb 27 '08 #3
Yes. The php.ini file that is displayed in phpinfo() is c:\program
files\php\php.ini, and that is the one I have edited.

MrsBean

On Feb 27, 11:31*am, ZeldorBlat <zeldorb...@gmail.comwrote:
On Feb 27, 11:29 am, MrsBean <li...@phoenixpromotions.comwrote:


I know this is a common error, and that there are lots of posts all
over the place as to why it happens, but I cannot for the life of me
figure out what I'm doing wrong. *Here's the scoop:
My path includes: c:\program files\php\; c:\program files\php
\extensions;
php.ini includes:
extension=php_mysql.dll
extension=php_mysqli.dll
I'm using Windows XP Professional with SP2, php 5.2.5 and mysql
5.0.51a
The libmySQL.dll was copied from the C:\Program Files\MySQL\MySQL
Server 5.0\bin folder into the c:\program files\php\ folder.
I have disabled Norton internet worm protection, rebooted,
systematically examined all of the above, and nothing has worked.
Mysql is not found in the phpinfo()
Can anybody point me in the right direction?
MrsBean

Are you sure you've edited the correct php.ini? *phpinfo() will tell
you which one is actually being used.- Hide quoted text -

- Show quoted text -
Feb 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9957
by: BT | last post by:
Hi .. a newbie question. I get the following error: Fatal error: Call to undefined function: mysql_connect() in /var/www/html/index.php on line 3. I have the following RPMS installed on RH7.2...
4
15330
by: gc | last post by:
I'm a PHP and MySQL newbie. I have a feeling a lot of you may have seen this before. I'm teaching myself PHP/MySQL and trying to setup a guestbook. I'm running latest versions of Apache, PHP and...
8
9979
by: Tim Tyler | last post by:
I'm getting fatal errors when executing code - and my error handler is failing to trap them - so I get no stack backtrace :-( The error I am getting is: "Fatal error: Call to a member function...
1
13649
by: Mike | last post by:
Last weekend I decided to install Apache 2.0.53-win32-x86-no_ssl PHP 5.0.3 Smarty 2.6.7 MySQL essential-4.1.10-win32 I have Apache up (Port 80 blocked at the router and firewall!) and I have...
2
2363
by: inonzuk | last post by:
why strange you ask? here goes: I have been working with Php and Mysql for a week without any problems. Today I tried executing a php page that connects to mysql and creates a new database, I...
2
1990
by: Frobinrobin | last post by:
I am running Win2k3 Server and when I try to use the mysql_connect function I am getting an error: Fatal error: Call to undefined function mysql_connect() in...
5
4137
by: Grant Nosbush | last post by:
I have searched the newsgroups and the web trying to solve this problem and just can't get it. Maybe someone will be able to help. I am getting the following error when I try to view a test page...
5
2769
by: awdsites | last post by:
Hi, I'm a noob with a server so keep that in mind :) Been trying to connect with php to mysql and all I get is: "Fatal error: Call to undefined function: mysql_connect()" I've read and read...
9
5241
by: java | last post by:
Hey there, I just removed an elderly PHP4-Installation from my Windows-Box and installed PHP 5.2.1. I used the PHP4-Module as local batchfile- interpreter by E:\ersDHCP>php ./extractLog.php ...
49
16252
by: Julian Bowler | last post by:
Please can some one help with my problem; I am running Apache web server on my lap top, plus a mysql server and php. The version of php currently installed is 5.2.5. when i write some php to connect...
0
7201
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7328
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6988
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7456
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5011
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.