PHP allows you to control many aspects of your web site by using directives in php.ini files. Learn about some of these directives here.
You can control whether or not PHP displays error messages to web site visitors by using the display_errors directive in a custom php.ini file. Learn how here.
You can use the log_errors and error_log directives in a custom php.ini file to configure PHP error logging, and this article shows you how.
Learn how to change the PHP time zone setting for your web site by using the date.timezone directive in a php.ini file.
By default, the maximum execution time for PHP scripts is set to 30 seconds, but you can change this interval by using the max_execution_time directive. This article shows you how to modify the maximum execution time by using a text editor.
When the allow_url_fopen directive is enabled, you can write scripts that open remote files as if they are local files. This article covers how to enable and disable the allow_url_fopen directive in a custom php.ini file.
You can enable and disable the register_globals directive in a custom php.ini file. When the register_globals directive is enabled, PHP creates variables automatically from HTML form parameters and cookie data. This article only applies to PHP 5.3 and earlier versions.
You can enable and disable the magic quotes directive in a custom php.ini file. When the magic quotes directive is enabled, PHP automatically escapes data from HTTP GET and POST requests and cookie data. This article only applies to PHP 5.3 and earlier versions.
By default, the maximum upload file size for PHP scripts is set to 128 megabytes, but you can change this amount by using the upload_max_filesize and post_max_size directives. This article shows you how to change the maximum upload file size and how to set the directives.
By default, the memory limit for PHP scripts is set to 128 megabytes, but you can change this value by using the memory_limit directive.
By default, the maximum number of input variables for PHP scripts is set to 1000, but you can change this amount by using the max_input_vars directive. Learn how in this article.
You can use the expose_php directive in a custom php.ini file to control whether or not PHP sends version information in the HTTP headers. Learn more here.
Learn how the output_buffering directive works, and how to set it in a custom php.ini file.
You can disable specific PHP functions by using the disable_functions directive in a custom php.ini file. This article shows you how.
We use cookies to personalize the website for you and to analyze the use of our website. You consent to this by clicking on "I consent" or by continuing your use of this website. Further information about cookies can be found in our Privacy Policy.