[ms4w-users] loadWeb(): Unknown identifier. Parsing error . trying to implement examples from Bill Kropla's book in WinXP

Jeff McKenna jeffmckenna at gmail.com
Tue Apr 15 09:31:03 EDT 2008


follow my exact response in that thread, and look at the template file
in that working example, and compare it to your hello.html and how
those variables are declared.

-jeff



On 4/15/08, Craigie Dirk <CraigieD at dwaf.gov.za> wrote:
> I am having a simmilar problem to
> http://lists.maptools.org/pipermail/ms4w-users/2008-February/001011.html
>
>
> >> trying to implement examples from Bill Kropla's book in WinXP : Can
> anyone help ?
>
>
>
> Relevent Listings ...
>
>
>
> 1) ms4w/http.d/Begin_ms.conf
>
>
>
> Alias /begin_ms/ "/ms4w/apps/begin_ms/htdocs/"
>
> Alias /ms_tmp/ "/ms4w/tmp/ms_tmp/"
>
> <Directory "/ms4w/apps/begin_ms/">
>
> AllowOverride None
>
> Options Indexes FollowSymLinks Multiviews
>
> Order allow,deny
>
> Allow from all
>
> </Directory>
>
> -----------------------------------------
>
> 2) ms4w/apps/begin_ms/htdocs/hello.html
>
>
>
> <html>
> <head> <title>MapServer Hello World</title></head>
>
> <body>
>     <form method=POST action="http://localhost/cgi-bin/mapserv.exe">
>         <input type="submit" value="Click Me">
>         <input type="hidden" name="map"
> value="c:/ms4w/apps/begin_ms/mapdata/hello.map">
>         <input type="hidden" name="map_web_imagepath"
>                value="/ms_tmp/">     <! -- << this is the line where the
> error message occurs : loadWeb(): Unknown identifier. Parsing error near
> (/ms_tmp/):(line 1) -->
>     </form>
>     <IMG SRC="[img]" width=400 height=300 border=0>
> </body>
> </html>
>
> -----------------------------------------
>
>
>
> 3) ms4w/apps/begin_ms/mapdata/hello.map
>
> # This is our "Hello World" mapfile
> NAME "Hello World"
> SIZE 400 300
> IMAGECOLOR 249 245 186
> IMAGETYPE png
> EXTENT -1.0 -1.0 1.0 1.0
> WEB
>      TEMPLATE "http://localhost/begin_ms/hello.html"
>      IMAGEPATH "c:/ms4w/tmp/ms_tmp"
>      IMAGEURL "/ms_tmp/"
> END
> LAYER
>      STATUS default
>      TYPE point
>      FEATURE
>           POINTS  0.00 0.00 END
>           TEXT "Hello World"
>      END # end feature
>      CLASS
>           STYLE
>                COLOR 255 0 0
>           END
>           LABEL
>                TYPE bitmap
>           END
>      END
> END
> END
>
>
>
> ----------------------------------------
>
> Regards,
>
>
>
>
>
> Dirk Craigie
>
> Senior GIS Analyst
>
> Directorate : Information Programmes
>
> Emanzini Building : E317
>
> Department of Water Affairs and Forestry
>
>
>
> craigied at dwaf.gov.za <mailto:craigied at dwaf.gov.za>
>
> + 27 12 336 6537 (tel)
>
> + 27 82 859 5624 (cell)
>
> + 27 12 328 6397 (fax)
>
>
>
>
>
> DISCLAIMER:
> This message and any attachments are confidential and intended solely for
> the addressee. If you have received this message in error, please notify the
> system manager/sender.  Any unauthorized use, alteration or dissemination is
> prohibited.  The Department of Water Affairs and Forestry further accepts no
> liability whatsoever for any loss, whether it be direct, indirect or
> consequential, arising from this e-mail, nor for any consequence of its use
> or storage.
>


More information about the ms4w-users mailing list