I know it is possible to set the maximum execution time in a script using either:
ini_set(\'max_execution_time\', 30);
or
set_t
you can try
$max_time = ini_get("max_execution_time"); echo $max_time;
and you can use this variable the way you want to :)