Hello Keith,
On Mon, 17 Apr 2006 20:06:56 -0600 "Keith Boyle" <kboylealt at gmail.com>
wrote:
> Armin and list,
> I've just found a solution to a problem I've been having while trying
> to stand up a new pmapper derivative application. The problem was
> that after using pmapper for a short time, the map would suddenly
> revert back to the first map image of my session, and when I tried
> another action on that map, I would get the second image (from when I
> had originally started). This is similar to a thread back in March,
> though maybe not exactly the same.
>
> In the end the problem is not with pmapper at all, so I'm afraid this
> message might not belong on this list; however, it may be a problem
> that others find while setting up pmapper, so please forgive me if
> this only a little relevant. I though erring on the side of sharing
> information/solutions would be better.
>
> Quickly, my new server was a risk: Debian Linux on an AMD64, Apache
> 2.2, Mapserver 4.8 (PhpMapScript 4.6 I believe), PHP 5.1.2 with an
> application built on an old version of pmapper(1.9.3). I may yet run
> into problems later, but for now after the fix it looks pretty good.
>
> The problem ended up being the temporary name put out by
> imgObj->saveImage() imgObj->saveWebImage() was being duplicated after
> the current connection to the web server timed out (i.e. when the
> 'keepalive' time expired). So if you keep making a series of
> requests, the connection stays; however, if you pause long enough for
> that timer to expire, then the duplicate images started. The time
> stamp part of the temporary name was not changing, I fixed this in
> the source file php_mapscript.c by using the time() function
> explicitly each time a file is saved.
>
> There may be a way to fix this without recompiling, but I was not
> able to find any. I'm sorry this post is so long, I hope this may be
> useful to someone on the list (someday if not now :) Please let me
> know if you want details, or if this is relevant enough for me to put
> in the Wiki.
I had similar problems, but was not able to resolve this. As it is a
"problem" in mapserver, you should consider to contact the
Mapserver-guys to correct it in php_mapscript.c. Idealy you could
provide your patch to them.
Thanks for giving us your solution of this (annoying) problem (I also
ran into...).
Best
Stephan
--
GDF Hannover - Solutions for spatial data analysis and remote sensing
Hannover Office - Mengendamm 16d - D-30177 Hannover
Internet: www.gdf-hannover.de - Email: holl at gdf-hannover.de
Phone : ++49-(0)511.39088507 - Fax: ++49-(0)511.39088508