php.ini: Some changes (with Hardened PHP patch)
 
Some important php.ini changes after a fresh installation of php.

POST and GET data
POST and GET size: The default is somewhere between 2MB and 8MB. I always turn them up to 32MB, to be able to upload big files (for example database dumps using phpMyAdmin):
upload_max_filesize = 32M
post_max_size = 32M


Resource Limits
As soon as you begin to develop big php scripts, you realise that the standard memory limit of 8 MB is not enough. If the gd image library is used, to convert high resolution images (coming from a digital camera), you need about 16 MB memory.
I have also set the maximum execution time from 30 seconds to one minute, to give the logner scripts some time...
max_execution_time = 60
memory_limit = 16M


Error Handling
Normally, PHP should display all Errors and no notices. Use this syntax:
error_reporting = E_ALL & ~E_NOTICE


register globals
If you like "register_globals" (lets you get POST and GET vars without the $HTTP_GET_VARS[]/$HTTP_GET_VARS[]-arrays), use:
register_globals On


If your server has the Hardened PHP-Filter installed, you can specify the length of variables in forms on html pages. This is the default configuartion:
[varfilter]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Hardened-PHP's variable filter
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Maximum number of input variables per request
varfilter.max_request_variables = 200
; Maximum characters in input variable names
varfilter.max_varname_length = 64
; Maximum length of input variable values
varfilter.max_value_length = 1000
; Maximum depth of input variable arrays
varfilter.max_array_depth = 100


This is my version (you can add it to your php.ini):
[varfilter]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Hardened-PHP's variable filter
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
varfilter.max_request_variables = 500
varfilter.max_varname_length = 100
varfilter.max_value_length = 32000
varfilter.max_array_depth = 200
 
admin / Dec 04, 2005
   
 
 
Login: 
Pass: 
 
 
     
     
2004 - 2019 / lookass.ch
makememad@lookass.ch