Eine Liste der wichtigsten Variablen, die man in der php.ini Datei verwenden kann.
Die meist benutzten php.ini Einträge
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# MySQL default Socket mysql.default_socket = /tmp/mysql5.sock # gzip compression (variante 1) zlib.output_compression = on # gzip compression (variante 2) zlib.output_compression = 16386 zlib.output_compression_level = 7 zlib.output_handler = zlib.output_compression # gzip compression (variante 3) output_handler = ob_gzhandler; # Upload Limit post_max_size = 100M upload_max_filesize = 100M # Execution Time max_execution_time = 1200 max_input_time = 240 # Memory Limit memory_limit = 20M allow_url_fopen = 1 magic_quotes_gpc=off |
PHP.ini Einträge in PHP mit ini_set() setzen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
ini_set('memory_limit', '600M'); ini_set('max_execution_time', '240'); // ini_set('date.timezone', 'Europe/Berlin'); // ini_set('output_buffering', 'off'); ini_set('zlib.output_compression', 0); // veraltet ini_set('magic_quotes_gpc', 'off'); ini_set('register_globals', 'off'); // ini_set('session.use_cookies', 0); |