Fatal error: Call to undefined function MYSQL_CONNECT()

This is a discussion on Fatal error: Call to undefined function MYSQL_CONNECT() within the PHP Language forums, part of the PHP Programming Forums category; I know this is a common error, and that there are lots of posts all over the place as to ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-27-2008
MrsBean
 
Posts: n/a
Default 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
Reply With Quote
  #2 (permalink)  
Old 02-27-2008
ZeldorBlat
 
Posts: n/a
Default Re: Fatal error: Call to undefined function MYSQL_CONNECT()

On Feb 27, 11:29 am, MrsBean <li...@phoenixpromotions.com> wrote:
> 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.
Reply With Quote
  #3 (permalink)  
Old 02-27-2008
Rik Wasmus
 
Posts: n/a
Default Re: Fatal error: Call to undefined function MYSQL_CONNECT()

On Wed, 27 Feb 2008 17:31:09 +0100, ZeldorBlat <zeldorblat@gmail.com>
wrote:

> On Feb 27, 11:29 am, MrsBean <li...@phoenixpromotions.com> wrote:
>> 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
Reply With Quote
  #4 (permalink)  
Old 02-27-2008
MrsBean
 
Posts: n/a
Default Re: Fatal error: Call to undefined function MYSQL_CONNECT()

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.com> wrote:
> On Feb 27, 11:29 am, MrsBean <li...@phoenixpromotions.com> wrote:
>
>
>
>
>
> > 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 -


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:36 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0