PDA

View Full Version : LAMP allowing deprecated PHP functions



Mike_Hanchet
February 27th, 2015, 03:26 PM
Hello,

I recently set up a laptop with LAMP and have noticed that LAMP is allowing deprecated PHP functions to run; for instance, mysql_query. Since I'm learning PHP (e.g., on-line tutorials, YouTube), I rely on the pop up notices such that I get on my Windows box. How might I go about fixing this?

Thank you in advance,
MH

spjackson
February 27th, 2015, 04:28 PM
This behaviour is controlled by the configuration setting error_reporting. This is set in /etc/php5/apache2/php.ini. You probably want to set it to E_ALL | E_STRICT (or whatever value you are using on your Windows box). See http://php.net/manual/en/errorfunc.configuration.php#ini.error-reporting

Mike_Hanchet
February 27th, 2015, 05:17 PM
Thanks, I'll give that look.