Seegatesite.com – If you use mysql_connect command at your PHP application, in advance you should delay your desire to upgrade your Ubuntu OS to 16.04 xenial xerus. It happened to me when upgrading my Ubuntu 14.04 LTS to 16.04 LTS, what happened? Ubuntu 16.04 LTS will upgrade php version 5 to newest php version, php7. PHP7 no longer supports mysql extention like mysql_connect().
From php.net official site , written that :
This extension was deprecated in PHP 5.5.0 and it was removed in PHP 7.0.0
This causes the application get an error Call to undefined function mysql_connect().., and one solution is switch to PDO or re-install your Ubuntu version to 14.04. This is the best solution I get up today. If you have a better solution, please let me know or send me comment . My advice, it’s time we switched to PDO, if you need to learn PDO, Please read on my tutorial on Connect Bootstrap Login Form and Mysql with PDO.
Thus article about Ubuntu 16.04 Xenial Xerus Does Not Support PHP5, hope useful 🙂
Latest posts by Sigit Prasetya Nugroho (see all)
- Senior java tech lead – the critic and applause-giver! - January 6, 2017
- Tutorial Create Dynamic Sidebar Menu on MySQL, Node.js, Express, AdminLTE For Beginner - December 20, 2016