Support Center

PHP FAQ

Complete Guide

For a complete guide please visit: http://php.net/manual/en/ini.php.
 

PHP Settings List

You can find your PHP.INI file in your 'cgi-bin' directory in your hosting account. Below are some of the PHP settings that you can change, including some descriptions on the options that you will see in the file, and what effect changing them might have, or what reasonable limits may be on the ones you may wish to change:

 
short_open_tag = On

Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
NOTE: Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are not under your control. For portable, redistributable code, be sure not to use short tags.

Back To Top
asp_tags = Off

Allow ASP-style <% %> tags.

Back To Top
y2k_compliance = On

Enforce year 2000 compliance (will cause problems with non-compliant browsers). It it recommended to leave this setting on.

Back To Top
ignore_user_abort = On

If enabled, the request will be allowed to complete even if the user aborts the request. Consider enabling it if executing long request, which may end up being interrupted by the user or a browser timing out.

Back To Top
max_execution_time = 30

Maximum execution time of each script, in seconds. The larger the number the more time will be allowed before the script times out.

Back To Top
max_input_time = 60

Maximum amount of time each script may spend parsing request data. If your script has many functions which requires more time to process, consider increasing this number.

Back To Top
display_errors = Off

Print out errors (as a part of the output). For production web sites, you're strongly encouraged to turn this feature off. Keeping display_errors enabled on a production web site may reveal security information to end users, such as file paths on your Web server, your database schema or other information.

Back To Top
log_errors = On

Log errors into a log file, you're strongly advised to use error logging in place of error displaying on production web sites.

Back To Top
error_log = /hsphere/local/home/<YOUR_HSPHERE_USERNAME>/logs/php_log

Log errors to specified file. This will only work if log_errors = on.

Back To Top
register_globals = Off

You should do your best to write your scripts so that they do not require register_globals to be on. Using form variables as globals can easily lead to possible security problems, if the code is not very well thought of. If you require register globals, change this setting to on.

Back To Top
post_max_size = 8M

Maximum size of POST data that PHP will accept. If you have an upload form and it is timing out, consider increasing this value.

Back To Top
file_uploads = On

Whether to allow HTTP file uploads. If you do not allow anyone upload files from your website, it is highly recommended to disable this feature for increased security.

Back To Top
upload_max_filesize = 8M

Maximum allowed size for uploaded files. If you have an upload form and it is timing out, consider increasing this value.

Back To Top
date.timezone = America/Chicago

Defines the default timezone used by the date functions. For a list of valid timezones please review this website:

http://php.net/manual/en/timezones.php

Back To Top
sendmail_path = "/usr/sbin/sendmail -t -i"

If your scripts are sending any emails, this is the default path which should not require any changes.

  • zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3
  • zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3
  • zend_optimizer.version=3.3.3
  • zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so
  • zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so
If you have encoded your files with ZendEncoder and want to use those on your website, these 5 lines must be here.

Back To Top
Think you have what it takes? We would love to give you the opportunity to prove it. We are looking for ultra talented and motivated individuals that share our passion for delivering awesome web hosting solutions and the best customer service in the industry. Please contact us today.

We're Always There When You Need Us The Most!

Your Dedicated Support

At IX, we take care of our customers. And dedicated support is one of the ways we prove to you again and again that we are here to help you every step of the way, regardless of your skill level. With IX dedicated support, you get a support technician personally assigned to assist you. You get their name, number, email, social media connections, and work schedule! It's just one more facet of our service which proves our deeply rooted belief that being a great hosting provider requires more than just cutting-edge technologies, but the best in support and service.