Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] undefined mysql functions in PHP, phpmyadmin works
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jiokah
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2006
Posts: 90
Location: Toronto

PostPosted: Mon Oct 22, 2007 3:34 am    Post subject: [SOLVED] undefined mysql functions in PHP, phpmyadmin works Reply with quote

Hi all,

I'm running a webserver which runs, among other things, lighttpd, php, and mysql. It's not quite production ready, but I'm almost there. Just about everything is working. Here's my problem:

I've compiled PHP with the mysqli extension (and without the mysql extension) and it seems to be running fine as phpmyadmin works like a charm. Problem is though, when I use mysql functions in PHP on other websites (on the same server), php acts as if mysqli wasn't compiled. An example:

Code:
Fatal error: Call to undefined function mysql_connect() in /var/www/www.example.com/code.php on line 71


I have the line "extension=php_mysqli.so" in my php.ini file, but it doesn't help. Here's my phpinfo(): http://www.sidusmedia.com/scripts/phpinfo.php

Any ideas?

Thanks!

-Matthew


Last edited by Jiokah on Mon Oct 22, 2007 4:30 am; edited 1 time in total
Back to top
View user's profile Send private message
Jiokah
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2006
Posts: 90
Location: Toronto

PostPosted: Mon Oct 22, 2007 4:30 am    Post subject: Reply with quote

Wow, am I ever stupid. I figured it out...

Turns out that if you're running the mysqli extention, you have to use mysqli functions like "mysqli_connect". Who knew?

Yeah...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum