"set_time_limit()" disabled on virtual host

r4y-fx

Joined: 2006-02-25
Posts: 1
Posted: Sat, 2006-02-25 16:39

Hi There

I am experiencing some problems with the gallery package here. I found out that the vitrual hosting provider has disabled "set_time_limit()" to restrict the zombie loads which is happening on their servers. As far I can grasp from their e-mail anyways.

Obviously with this being disabled it is now throwing up an error on the gallery.
http://www.networkteamracing.co.uk/gallery/main.php?g2_view=core.ShowItem&g2_itemId=18

Error:
Warning: set_time_limit() has been disabled for security reasons in /home/nas02l/n/networkteamracing.co.uk/user/htdocs/gallery/modules/core/classes/Gallery.class on line 584

Is there anyway of getting round this so that it stops this error showing up?

Many thanks in advance.

Gallery Version 2.0
Linux Platform (sorry unsure of the version)

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sat, 2006-02-25 17:29

G2 routes all calls to set_time_limit through that function in Gallery.class
so, i think you can just comment out that line.
this means that you should avoid any operations in G2 that may take a long time, as G2 is unable to extend its available processing time and so it may get killed in the middle of its work.