PHP directives

The following table contains a brief description of each directive in the PHP Configuration interface.
Directive
Description
asp_tags Specifies whether your web server allows PHP code to use the  <% and %> tags in addition to the standard <?php and ?> tags. If you turn this option off, a PHP script with ASP tags will not work properly.
file_uploads Specifies whether your web server allows PHP scripts to receive files via HTTP.
include_path Lists directories in which the requireincludefopen()file()readfile(), and file_get_contents() functions look for files.
max_execution_time The number of seconds that your web server allows a PHP script to run before it terminates the script. This limit ensures that poorly-written scripts do slow down your web server.
max_input_time The number of seconds that your web server allows a PHP script to process information that you submit to it, such as file uploads. This limit ensures that overloaded scripts do not slow down your web server.
memory_limit The maximum number of bytes of memory that a PHP script can use. This limit ensures that poorly-written scripts do not overwhelm your web server's memory. A value of -1 indicates that no memory limit exists.
register_globals

Registers the $REQUEST array's elements as variables. If a PHP script requires that you set this value to On, your site could become insecure.

Warnings

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

safe_mode

This feature ensures that execute permissions exist for the user who runs a PHP script. For example, if the script changes a file, the user needs the correct permissions to modify the file. 

Warning:

This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

upload_max_filesize The maximum number of bytes that an uploaded file can contain.
session.save_path

When a visitor accesses your website, the web server issues a unique user ID. The web server uses this ID to store information about the user's session, or time spent on your website. The session.save_path directive describes where the system stores that information. PHP allows you to make web content specific to a given visitor and session.

Notes:

  • If the Value column contains a number, it refers to the number of directories in which the web server stores the information. If your site experiences a lot of traffic, it is easier for the server to save and retrieve the information if the web server distributes the session data among several folders. 
  • The Value column also includes the name of the directory that contains subdirectories of session information.
  • 87 Users Found This Useful
Was this answer helpful?