Bool set_time_limit ( int $seconds )


When I try to use this function I get the error:
Warning: set_time_limit() has been disabled for security reasons in …

How to use it?


I am afraid that your only choice is a VPS, what are you trying to accomplish though?


Hi @ichhabsdrauf

You can’t turn on it here. It’s disabled because of shared hosting. VPS hosting is the only solution.

Can you tell us why you need that function?


@ckhawand @Supun

I wanted to use a lib from github, and was wondering why it would give me the error.


Find that code and just remove it.

code: set_time_limit()


how does it affect the code, when it is added to a php file?