Changing the imagepath in PHP?

Bart van den Eijnden bartvde at XS4ALL.NL
Sun May 8 11:48:07 EDT 2005


Bob,

you need to use the set function to change attributes:

$map->web->set("imagepath", "C:/Apache/htdocs/Mpages/MuralMaps/");
$map->web->set("imageurl", "/Mpages/MuralMaps/");

Best regards,
Bart

On Sun, 08 May 2005 17:41:59 +0200, Bob Bruce <covariance at SHAW.CA> wrote:

> Is is possible to have the map images redirected by changing the
> imagepath
> and imageurl ? And is it possible to do this in Windows?
>
> In my web page I have the following lines:
>
>         $map->web->imagepath = "C:/Apache/htdocs/Mpages/MuralMaps/";
>         $map->web->imageurl = "/Mpages/MuralMaps/";
>
> In my .map file I have the following lines:
>
>   WEB
>     IMAGEPATH "c:/Apache/htdocs/temp/"
>     IMAGEURL "/temp/"
>     MAXSCALE 228000
>     MINSCALE 200
>   END
>
> after running the php code the image stays in the location named in the
> .map
> file and doesn't get redirected to the location set in the php code.
>
> I am running PHP 4.3.11 and PHP MapScript version 4.5 on Windows 2000
> PRO.
>
> Am I doing something wrong?
>
> thanks,
>         Bob Bruce, Winnipeg, Manitoba
>



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/



More information about the mapserver-users mailing list