My bad, didn't read your message closely enough, sorry. That said, I don't know why you're seeing what you're seeing. If you print out the values of those parameters before you save the image what do you see?
Steve >>> On 4/23/2009 at 3:53 PM, in message <[email protected]>, "P.Romero" <[email protected]> wrote: > The parameters I was referring to *are*, in fact, those in my mapfile. > My mapfile contains this: > WEB > LOG "/data/www/html/dev/mslog" > IMAGEPATH "/data/www/html/images/mapserver/tmp/" > IMAGEURL "/images/mapserver/tmp/" > END > (I made sure that permissions for these directories are writable by apache). > > But my 'map.php' file is here: > /data/www/html/dev > > So, calling '$image->saveWebImage()' causes the resulting .gif file to be > placed in '/data/www/html/dev' instead of the path listed in my mapfile. > > Any idea why this could be happening? > > P.R. > > -----Original Message----- > From: Steve Lime [mailto:[email protected]] > Sent: 2009-04-23 3:39 PM > To: P.Romero; [email protected] > Subject: Re: [mapserver-users] WEB parameters in mapfile being ignored > > They're ignored for security reasons. It's simply not a good idea to allow > an outside user to change where files are being written. They were only ever > changeable for the sake of convenience when configuring a demo- not a good > reason. > > Fix is easy, just edit your mapfile and set IMAGEPATH and IMAGEURL > appropriately in the WEB section. > > Steve > >>>> On 4/23/2009 at 3:18 PM, in message > <[email protected]>, "P.Romero" > <[email protected]> wrote: >> I just compiled/installed the 5.4.0 versions of mapserver & mapscript. >> >> Im loading a mapfile from php, drawing & saving the image using >> '$image->saveWebImage()'. >> >> However, the WEB parameters for IMAGEPATH & IMAGEURL in my mapfile are >> being ignored. >> The file is being saved in the same directory as the php file that has >> the mapscript being called to draw the map. >> Even the LOG parameter is being ignored. >> >> How can I debug & find out why my WEB parameters are being ignored? >> >> Please help, >> Thanks, >> P.Romero >> >> _______________________________________________ >> mapserver-users mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/mapserver-users > > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users _______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
