Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Change request: set_time_limit(0)

Questions related to using nuBuilder Forte.
Post Reply
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Change request: set_time_limit(0)

Unread post by kev1n »

Hi Steven,

When using a shared hosting environment where the user has no control of the web server, set_time_limit() might be disabled (in php.ini)

Suggestion: Replace

Code: Select all

set_time_limit(0);
https://github.com/steven-copley/nubuil ... on.php#L11

with

Code: Select all

nuSetTimeLimit(0);
Declaration of nuSetTimeLimit():

Code: Select all

function nuSetTimeLimit(){
	if (function_exists('set_time_limit')) {
		set_time_limit(0);
	}
}
A similar code is used in \nudb\libraries\classes\Util.php
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

Re: Change request: set_time_limit(0)

Unread post by kev1n »

Hi Steven,

Basically, it's just replacing

Code: Select all

set_time_limit(0);
with

Code: Select all

 if (function_exists('set_time_limit')) {
      set_time_limit(0);
 }

Could you add that?
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Change request: set_time_limit(0)

Unread post by admin »

.
Post Reply