PHP max_execution_time Show incorrect value

I use the following to display max_execution_timeserver settings PHP:

echo 'max_execution_time = ' . ini_get('max_execution_time') . '';

Returns the value as 0.

However, when I check phpinfo(), it shows the value 30.

Can anyone suggest why it is ini_getnot returning the correct value? All other settings will return the correct value.

Using php 5.3.28.

Many thanks.

+3
source share
1 answer

The function ini_get()returns the value stored in a php.inispecific parameter.

phpinfo() returns the current used values ​​of all available parameters.

max_execution_time, , php.ini, ini_get() 0, php 30 php.ini

: http://www.php.net/manual/en/function.set-time-limit.php

+1

All Articles