Thursday, August 4, 2016

Use Old MySQL functions (mysql_ .... ) back into PHP 7

1. clone old mysql library
git clone https://github.com/php/pecl-database-mysql     mysql   --recursive
2. install it
phpize
./configure
make
make install
3. edit php.ini, add:
extension = /usr/local/lib/php/extensions/mysql.so
4. restart apache.

No comments: