PHP: what happens if required script stops because of timeout -


scenario: php script som pre-code, require xxxx.php; , postcode. wanting , believing because of using require , not include, script stop @ "require" statement if xxxx.php times out - correct?

or asked in way: timeout same script throwing error?

from documentation:

max_execution_time integer

this sets maximum time in seconds script allowed run before terminated parser. helps prevent poorly written scripts tying server. default setting 30. when running php command line default setting 0.

the maximum execution time not affected system calls, stream operations etc. please see set_time_limit() function more details.

you can not change setting ini_set() when running in safe mode. workaround turn off safe mode or changing time limit in php.ini.

your web server can have other timeout configurations may interrupt php execution. apache has timeout directive , iis has cgi timeout function. both default 300 seconds. see web server documentation specific details.

official documentation set_time_limit()


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -