View previous topic :: View next topic |
Author |
Message |
Jiokah Tux's lil' helper
Joined: 28 Nov 2006 Posts: 90 Location: Toronto
|
Posted: Mon Oct 22, 2007 3:34 am Post subject: [SOLVED] undefined mysql functions in PHP, phpmyadmin works |
|
|
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 |
|
|
Jiokah Tux's lil' helper
Joined: 28 Nov 2006 Posts: 90 Location: Toronto
|
Posted: Mon Oct 22, 2007 4:30 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|