PHP Common Error Snippets

NB: mysql_connect deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0 Alternative: mysqli_connect()

Warning: mysql_select_db(): No such file or directory - $host = ‘localhost’; instead of localhost, use 127.0.0.1 or if using shared hosting, replace with your mysql server hostname

Google Maps API error: MissingKeyMapError Arises when using the Google Maps API on localhost or your domain was not active prior to June 22nd, 2016,

  1. Get API key
  2. Change <script src="https://maps.googleapis.com/maps/api/js"></script> to <script src="https://maps.googleapis.com/maps/api/js?libraries=places&key=your_api_key_here"></script>

each free API key comes with a 25,000 map loads per project per day limit

https://www.latecnosfera.com/2016/06/google-maps-api-error-missing-keymap-error-solved.html

How do I turn off PHP errors and warnings https://help.dreamhost.com/hc/en-us/articles/214894197-How-do-I-turn-off-PHP-errors-and-warnings-

Suhosin

https://suhosin.org/stories/index.html https://suhosin.org/stories/install.html