Hello everybody, <br>I have the following problem and any help is most welcome!<br><br>I have developed a php application using MapServer. php is running as a module, not as cgi.<br>The application was developed and tested on WinXP but when I moved it on openSUSE 
10.2 I run into problems with the drawLabelCache function of mapObj. The problem is that it takes toooooo long to execute so my script blocks till maximum execution time elapses and thus the whole script halts! I have changed maximum execution time to various values without solving my problem. 
<br><br>The execution environment I use is MapServer version 4.8.2; actually it is the current basic FGS package that includes the following components:<br>apache-base    1.3.33<br>curl-lib       7.12.2<br>expat-base     
1.95.8<br>freetype-lib   2.1.9<br>gd-lib         2.0.33<br>gdal-base      1.2.5<br>jpeg-lib       6b<br>libgeotiff-lib 1.2.2<br>libiconv-base  1.9.1<br>libpng-lib     1.2.6<br>mapserver-base 4.4.1<br>mapserver-php  4.4.1<br>
netcdf-lib     3.5.1<br>openssl-lib    0.9.7d<br>php-base       4.3.10<br>postgresql-lib 7.4.6<br>proj-lib       4.4.8<br>proj4_epsg42xxx-support 1.0.0<br>tiff-lib       3.7.1<br>unixODBC-base  2.2.10<br>xerces_c-base  2_6_0
<br><br>The [relevant part of the] script that I use is the following:<br><div style="margin-left: 40px;">$map = ms_newMapObj( $MAPFILE );<br>$image = $map-&gt;prepareImage();<br>enableLayers( $map, $image ); //my custom function that draws layers depending on user input
<br><br>$map-&gt;drawLabelCache($image);&nbsp; // THE PROBLEMATIC LINE !!!!!!!!!!!!<br>
$image_url=$image-&gt;saveWebImage();<br>
<br>$scale = $map-&gt;drawScaleBar();<br>$map-&gt;embedScalebar($scale);<br><br>$legend = $map-&gt;drawLegend();<br>$legend_url=$legend-&gt;saveWebImage();<br><br>$refmap = $map-&gt;drawReferenceMap();<br>$refmap_url=$refmap-&gt;saveWebImage();
<br><br></div><br>If I comment out the line where the problem occurs, the map is created successfully but of course no labels appear!<br>Could anyone help? it would be most welcome!<br><br>Regards,<br>Dimitris Riggas<br>