Set unlimit time for request in server


In server, each request has been limit around time.
So, if you run a function have long time, it will raise to errors only appear in server environment as:
“500 Internal Server Error”
“server timeout”

Set unlimit time for request in server



Both error above will stop process and don’t any response.
To fix for this function, please set below code to first line in that function,
it also can set to files to run functions in file.

From the example:


Set before line in function: ini_set(‘memory_limit’, ‘-1’);
Value: -1 will set unlimit time for process

Thereto, you can set a other value as: 16M, 32M, 64M, 128M,..

About Author

Là một developer rất ham chơi nhưng không ham hố, không ham chơi nhưng rất thích cầm đầu...

Comments are closed.

%d bloggers like this: