[mapserver-users] Mapscript Sample
Daniel Morissette
dmorissette at mapgears.com
Wed Nov 16 20:58:50 PST 2011
On 11-11-16 11:51 PM, boesiii wrote:
> I am trying to learn PHP MapScript and was starting with this webpage
> http://mapserver.org/mapscript/php/by_example.html but when I try to load
> the first example with my modifications I get an "undefined function dl()"
> error, so I commented that line out because I think php is already
> initialized but when I reload the file I get a broken image symbol on the
> screen, but when I check the tmp folder I find the image file. Why is the
> image not being displayed on my screen? Thanks for your help.
>
[...]
>
> Below is my MAP file:
>
[...]
>
> WEB
> IMAGEPATH "/ms4w/tmp/ms_tmp/"
> IMAGEURL "/tmp/"
> END
>
"IMAGEURL "/tmp/" means that the saveWebImage() method will create image
paths starting with this value. If you get a broken image that must be
because the http://your.host.name/tmp/... URL path does not point to the
location of your images as it should.
To fix this, make sure your Apache (or Web Server, whatever it is), has
an alias (or symbolic link) pointing the http://your.host.name/tmp/ URL
to the /ms4w/tmp/ms_tmp/ directory.
--
Daniel Morissette
http://www.mapgears.com/
Provider of Professional MapServer Support since 2000
More information about the MapServer-users
mailing list