User Tools

Site Tools


phpsqlet:configuring_php

Configuring PHP

à configurer

  • error reporting
  • output buffering
  • timezone

→ sur la page php info, noter la partie “loaded configuration files” et “Scan this dir for additionnal .ini files”

sudo nano /usr/local/php5/lib/php.ini

// chercher le paramètre display_error On/Off, par défaut sur On pour développement
// chercher le paramètre error_reporting, defaut E_ALL, si PHP inférieur à v5.4 changer à E_ALL | E_STRICT 
// chercher html_errors (formattage html des erreurs)
// chercher output_buffering : en dev possible de turn Off pour voir ce que çà fait, peut être instructif
//chercher timezone, le décommenter et renseigner la timezone -> php.net/manual/en/timezones.php -> "Europe/Paris"
phpsqlet/configuring_php.txt · Last modified: 2016/04/13 12:53 by leo