php5 & mysql_* functions

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

php5 & mysql_* functions

Post by nigma »

Hey, I just upgraded to php5 and since when I try to use the mysql_* functions it says the function doesn't exist.

What could cause php to not see certain functions?
redmonkey
Forum Regular
Posts: 836
Joined: Thu Dec 18, 2003 3:58 pm

Re: php5 & mysql_* functions

Post by redmonkey »

nigma wrote:Hey, I just upgraded to php5 and since when I try to use the mysql_* functions it says the function doesn't exist.

What could cause php to not see certain functions?
I can see this becomming a common question.

The most likely cause for this problem is that you have not read any documentation regarding the chages in PHP5 from PHP4.
PHP5 Change log wrote: Removed the bundled MySQL client library.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

AFAIK you have to enable it. Are you using windows? i supose you have to activate the dll it in the php.ini in windows, or compile it with mysql in linux.
Now PHP 5 has SQLite native.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Re: php5 & mysql_* functions

Post by AVATAr »

redmonkey wrote:
PHP5 Change log wrote: Removed the bundled MySQL client library.
Yep that.... 1 minute later
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

thanks avatar
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Should maybe put this sort of stuff in a php 5 FAQ.
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

You making fun of me ? :)
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Oh no. Sorry if it sounded like that. But it would be good to get a php 5 FAQ up since it would be of great use to a lot of people - saying whats been added, whats changed, guide to OO, look at new functions, how to install it side-by-side with 4.3.8 etc etc. Just general questions that i think A LOT of people will be asking about in the next few weeks/months.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

nigma, i think you should whip on kettle

:twisted:

i'll help!
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

lol.

*goes to hide*
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

cof cof
User avatar
nigma
DevNet Resident
Posts: 1094
Joined: Sat Jan 25, 2003 1:49 am

Post by nigma »

me whip on kettle_drum? master kettle_drum? i wouldn't dare
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

tim wrote:nigma, i think you should whip on kettle

:twisted:

i'll help!
didnt know you were in the kinky stuff tim :lol:
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

hahaha I guess a sickly statement deserves one back

point for qads.

:evil:
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

:lol:
Post Reply