[PHP] Stuck on undefined function mysql_connect()
I have been stuck on this, and have no idea what is causing it. I have compiled PHP with mysqli support: ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-config-file-path=/usr/local/php --with-mcrypt=/usr/local/bin/mcrypt --with-mysqli --with-gettext=./ext/gettext --with-pear --with-libxml-dir=/usr/include/libxml2 --with-zlib --with-gd --enable-pcntl mysqli MysqlI Supportenabled Client API library version 5.1.49 Active Persistent Links 0 Inactive Persistent Links 0 Active Links 0 Client API header version 5.1.49 MYSQLI_SOCKET /var/run/mysqld/mysqld.sock DirectiveLocal ValueMaster Value mysqli.allow_local_infileOnOn mysqli.allow_persistentOnOn mysqli.default_host*no value**no value* mysqli.default_port33063306 mysqli.default_pw*no value**no value* mysqli.default_socket*no value**no value* mysqli.default_user*no value**no value* mysqli.max_linksUnlimitedUnlimited mysqli.max_persistentUnlimited Unlimited mysqli.reconnectOffOff However, there is no mysqli.so or mysql.so found anywhere? Please help, I have fallen behind because of this. Nick.
Re: [PHP] Stuck on undefined function mysql_connect()
On Thu, Oct 13, 2011 at 14:19, Nick Khamis sym...@gmail.com wrote: I have been stuck on this, and have no idea what is causing it. I have compiled PHP with mysqli support: Right which will use mysqli_connect(), et al. If you didn't compile it with straight MySQL support, then the mysql_*() functions won't be there. However, there is no mysqli.so or mysql.so found anywhere? Please help, I have fallen behind because of this. It's compiled into the core, not as an extension. -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Stuck on undefined function mysql_connect()
On Thu, Oct 13, 2011 at 14:33, Nick Khamis sym...@gmail.com wrote: I was just going to try recompilign with mysql instead of mysqli... I hope this fixes it. In terms of mysql being compiled into the core, does this mean I do not have to add extension=mysqli.so extension_dir=/usr/local/php/include/php/ext/ (Please don't top-post, and be sure to click reply-all so that the discussion remains on the list for the benefit of others as well.) Correct. Extensions, such as those found in the PECL repository, are added in that manner. Things compiled into the core, such as what you're doing with MySQLi, are automatically loaded regardless, because they're statically-built into the PHP binary itself. -- /Daniel P. Brown Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Stuck on undefined function mysql_connect()
I was just going to try recompilign with mysql instead of mysqli... I hope this fixes it. In terms of mysql being compiled into the core, does this mean I do not have to add extension=mysqli.so extension_dir=/usr/local/php/ include/php/ext/ Thanks in Advance,
Re: [PHP] Stuck on undefined function mysql_connect()
Correct. Extensions, such as those found in the PECL repository, are added in that manner. Things compiled into the core, such as what you're doing with MySQLi, are automatically loaded regardless, because they're statically-built into the PHP binary itself.