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)
- Tutorial Simple CRUD Angular 5 And Lumen 5.6 For Beginners - April 4, 2018
- Tutorial CRUD Firebase Real Time Database In Web Apps For Beginners - March 1, 2018
- The Point Responsive WordPress Theme For Blogging - February 28, 2018