[mapserver-users] $map->draw() timeout
Dave Vieglais
vieglais at ukans.edu
Thu Dec 27 08:19:28 PST 2001
void set_time_limit (int seconds)
Set the number of seconds a script is allowed to run. If this is
reached, the script returns a fatal error. The default limit is 30
seconds or, if it exists, the max_execution_time value defined in the
configuration file. If seconds is set to zero, no time limit is imposed.
When called, set_time_limit() restarts the timeout counter from zero. In
other words, if the timeout is the default 30 seconds, and 25 seconds
into script execution a call such as set_time_limit(20) is made, the
script will run for a total of 45 seconds before timing out.
set_time_limit() has no effect when PHP is running in safe mode. There
is no workaround other than turning off safe mode or changing the time
limit in the configuration file.
> -----Original Message-----
> From: owner-mapserver-users at lists.gis.umn.edu [mailto:owner-mapserver-
> users at lists.gis.umn.edu] On Behalf Of Nicolau Werneck
> Sent: Thursday, December 27, 2001 09:48
> To: mapserver-users at lists.gis.umn.edu
> Subject: [mapserver-users] $map->draw() timeout
>
> Hello...
>
> I've found a workaround to my problem on defining new
> classes with mapscript, editting a single class on the
> layer (but this isn't still what I wanted to)... OK
> it's working but now I got another problem!
>
> When I try to draw the map with a class that has A LOT
> of point, wich I query from a database, the draw()
> mathod complains that:
>
> Fatal error: Maximum execution time of 30 seconds
> exceeded in
> F:\hospedagem\licht\mapa\cgi\mapabrasil.php on line
> 129
>
>
> Where can I set this timeout??
>
> thanks...
>
> ++nicolau
>
>
>
>
________________________________________________________________________
__
> _____________________
> Yahoo! GeoCities
> Tenha seu lugar na Web. Construa hoje mesmo sua home page no Yahoo!
> GeoCities. É fácil e grátis!
> http://br.geocities.yahoo.com/
More information about the MapServer-users
mailing list