473,385 Members | 1,562 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 6352
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
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
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
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
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
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
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
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
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
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
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.