; sample-php-style.ini: settings in the style of php.ini. ; Free sample from 99helpers.com/file-types/ini ; These are real PHP directive names with example values. Don't copy the ; values into a server without checking what each one does. ; 1. php.ini puts its settings in a [PHP] section [PHP] ; 2. Sizes use K, M or G suffixes memory_limit = 256M upload_max_filesize = 20M post_max_size = 25M max_execution_time = 30 ; 3. PHP reads On/Off, Yes/No and True/False as switches display_errors = Off log_errors = On expose_php = Off ; 4. Quoted strings and paths error_log = "/var/log/php/error.log" date.timezone = "Europe/Amsterdam" ; 5. A value with special characters must be quoted in PHP's dialect error_reporting = "E_ALL & ~E_DEPRECATED" ; 6. Settings for one extension, in their own section [Session] session.cookie_secure = On session.cookie_httponly = On session.cookie_samesite = "Lax"