problem in php and mysql

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
olifile
Forum Newbie
Posts: 6
Joined: Fri Aug 11, 2006 11:00 am

problem in php and mysql

Post by olifile »

Hi..

I have a big problem in my server.

Code: Select all

Fatal error: Call to undefined function: mysql_connect()
what it can be?
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

I bet you upgraded from PHP 4 to PHP 5. Am I right?

P.S This isn't the right forum for this question by the way.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

Moved to Apache, IIS, and Webservers.

In your PHP.ini, you have the remove the ; from the line (it may be slightly different)

Code: Select all

;extension=php_mysql.dll
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

You might need to copy the php_mysql.dll file to the system32/ folder if you are on windows XP. If you are on a *nix system I have no idea :roll:

P.S All said above is true only in case you upgraded from PHP 4 to PHP 5.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Since when have we had to have the extension dll's in system32 or any other Windows controlled folder? PHP wants to find them where ever your extension_dir (and only there) is pointing.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Read my post again feyd... I said "might", not "have" - small difference :wink:
olifile
Forum Newbie
Posts: 6
Joined: Fri Aug 11, 2006 11:00 am

Post by olifile »

tanks!!

the php4-mysql are not installed :? 8O :?

Solved..
Post Reply