PHP allows you to control many aspects of your web site by using directives in .htaccess 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 .htaccess file. This article shows you how to enable and disable PHP error messages by using the display_errors directive in a .htaccess file.
You can use the log_errors and error_log directives in a custom .htaccess file to configure PHP error logging, and this article shows you both how to enable and disable error logging.
By default, A2 Hosting's servers are set to use US Eastern Standard Time. Learn how to change the PHP time zone setting by using the date.timezone directive in a .htaccess file for your website here.
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 set the maximum execution for PHP scripts.
You can enable and disable the register_globals directive in a custom .htaccess file. This article only applies to PHP 5.3 and earlier versions.
You can enable and disable the magic quotes directive in a custom .htaccess file. This article only applies to PHP 5.3 and earlier versions.
You can change the maximum upload file size for PHP scripts by using the upload_max_filesize and post_max_size directives in an .htaccess file.
You can set most PHP directives in an .htaccess file. However, the allow_url_fopen directive is a special case. This article shows how to configure the allow_url_fopen PHP directive. Please note that this article only applies to managed VPS and Dedicated Server accounts.
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 in a custom .htaccess file.
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 in an .htaccess file. Learn how in this article.
By default, PHP does not buffer output during script processing. However, you can modify this behavior by using the output_buffering directive in an .htaccess file. This article includes .htaccess snippets you can use in your own sites.
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.