Artikel weiterleiten
Artikel editieren
Print version
FAQ #1315

Which basic settings are available with PHP at STRATO?

php.ini-Kurzbeschreibung

 

The ini file (initialization or configuration file) is a text file that contains certain pairs of values in a special format that is read and processed by a program.
An ini file can be easily created with an editor, for example, Windows Editor.
To do this, open the editor (can be found in Windows under the menu point Accessories - Editor), paste the desired commands and save the file with the extension ".ini".

 

Based on the following tables, you can recognize which basic settings are configured for the different PHP versions at STRATO.

 

 

PHP 5.3.x – config
Parameters
Value
Meaning
display_errors Off Displays script errors in the browser.
file_uploads On Allows you to upload files
max_execution_time 60 seconds CPU time or 120 seconds abs. Runtime Sets the maximum runtime
for script execution
memory_limit

128 MB

Limits the maximum storage consumption of a
script to 128 MB
post_max_size 48 MB Limits the max. quantity of data that can be accepted by PHP through POST to 48 MB.
register_globals Off Allows for access to POST & GET data through arrays.
safe_mode Off Switches off the safe mode of PHP
upload_max_filesize 32 MB Sets the maximum size of
file uploads to 32MB.
zend.ze1_compatibility_mode Off Turns off the compatibility for the
zend1-engine
session.gc_maxlifetime 1440 Sets the timeout of a PHP session to
1440 seconds
session.cache_expire 180 Limits the validity of
the session cache to 3 hours

 

PHP 5.5.x – config
Parameters
Value
Meaning
display_errors Off Displays script errors in the browser.
file_uploads On Allows you to upload files
max_execution_time 60 seconds CPU time or 120 seconds abs. Runtime Sets the maximum runtime
for script execution
memory_limit

128 MB

Limits the maximum storage consumption of a
script to 128 MB
post_max_size 48 MB Limits the max. quantity of data that can be accepted by PHP through POST to 48 MB.
register_globals Off Allows for access to POST & GET data through arrays.
safe_mode Off Switches off the safe mode of PHP
upload_max_filesize 32 MB Sets the maximum size of
file uploads to 32MB
session.gc_maxlifetime 1440 Sets the timeout of a PHP session to
1440 seconds
session.cache_expire 180 Limits the validity of
the session cache to 3 hours

 

PHP 5.6.x – config
Parameters
Value
Meaning
display_errors Off Displays script errors in the browser.
file_uploads On Allows you to upload files
max_execution_time 60 seconds CPU time or 120 seconds abs. Runtime Sets the maximum runtime
for script execution
memory_limit

128 MB

Limits the maximum storage consumption of a
script to 128 MB
post_max_size 48 MB Limits the max. quantity of data that can be accepted by PHP through POST to 48 MB.
register_globals Off Allows for access to POST & GET data through arrays.
safe_mode Off Switches off the safe mode of PHP
upload_max_filesize 32 MB Sets the maximum size of
file uploads to 32MB
session.gc_maxlifetime 1440 Sets the timeout of a PHP session to
1440 seconds
session.cache_expire 180 Limits the validity of
the session cache to 3 hours

 

Parameters: Register Globals off

 

Starting with version 4.4.x, register_globals is turned off in PHP. This means that a PHP script can no longer access information transferred from forms as GET or POST data through global variables.

The transferred data is accessed through arrays. This means that variables that were sent through GET are accessible with $_GET["variablesName"]. POST data corresponding with $_POST["variablesName"].

These updates serve to increase security and structure in PHP scripts, and existing scripts can easily be adapted for these changes as illustrated in the following example.

Before:

$text = $test;
echo $text;
?>
Ausgabe: Nachricht

After:

$test = $_GET["test"];
$text = $test;
echo $text;
?>
Ausgabe: Nachricht

Runtime configuration

 

With the update to the PHP version 5.3.22, there is a new limit for the maximum number of fields with a POST request, which is now 1,000. These values can be manually changed through an individual php.ini file by entering, for example, the value max_input_vars = 2000.

 
 
Note: In order to find out how PHP is configured for your web hosting package, you can simply create a small file with the name info.php.
 
Beachte auch How can I find out the PHP and/or MqSQL version?

 

 
×