PHP

PHP

This interface displays a set of the most commonly-referenced configuration options for PHP. This is useful, for example, to help you diagnose problems with how your web site handles PHP packages.

Note:

You cannot change your server's PHP configuration with the PHP Configuration interface. To change your server's PHP configuration, contact your hosting provider.

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.

Select a PHP version

If your hosting provider allows you to select the version of PHP that your website uses, use this section of the interface to make your selection.

To select a PHP version, perform the following steps:

  1. From the menu, select the version of PHP that you wish to use. Select System Default to use the version that your hosting provider selected.

  2. Click Update.


 
  • 0 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?

Gerelateerde artikelen

PHP PEAR Packages

PHP PEAR Packages PHP PEAR packages are software components that are written in the PHP...

Perl Modules

Perl Modules Perl modules are software components in the Perl language. This interface...

RubyGems

RubyGems RubyGems is a package manager for the Ruby programming language. It...

Ruby on Rails

Ruby on Rails This interface allows you to create and deploy a Ruby on Rails®...

Site Software

Site Software The Site Software interface allows you to add, manage, upgrade, and remove...