<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><meta name="ProgId" content="Word.Document"><meta name="Generator" content="Microsoft Word 12"><meta name="Originator" content="Microsoft Word 12"><link rel="File-List" href="file:///C:%5CDOCUME%7E1%5CHARPAL%7E1.SIN%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml"><link rel="themeData" href="file:///C:%5CDOCUME%7E1%5CHARPAL%7E1.SIN%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx"><link rel="colorSchemeMapping" href="file:///C:%5CDOCUME%7E1%5CHARPAL%7E1.SIN%5CLOCALS%7E1%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml"><style>
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:0 0 0 0 0 0 0 0 0 0;
mso-font-charset:1;
mso-generic-font-family:roman;
mso-font-format:other;
mso-font-pitch:variable;
mso-font-signature:0 0 0 0 0 0;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:-1610611985 1073750139 0 0 159 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-font-family:Calibri;
mso-fareast-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";}
.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:10.0pt;
mso-ansi-font-size:10.0pt;
mso-bidi-font-size:10.0pt;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
<p class="MsoNormal">I am new to map servers… I have written my first program
…..and I am having problem ……I have written a simple hello world programon
windows and it is showing problems……</p>
<p class="MsoNormal">Error is ------------------<br>
<b>Warning</b>: [MapServer Error]: msLoadMap(): First token must be MAP, this
doesn't look like a mapfile. in <b>C:\OSGeo4W\apache\htdocs\hello.php</b> on
line <b>6</b><br>
<br>
<b>Warning</b>: Failed to open map file C:\OSGeo4W\apache\htdocs/hello.map in <b>C:\OSGeo4W\apache\htdocs\hello.php</b>
on line <b>6</b><br>
<br>
<b>Fatal error</b>: Call to a member function draw() on a non-object in <b>C:\OSGeo4W\apache\htdocs\hello.php</b>
on line <b>8</b> </p>
<p class="MsoNormal">I have tried so much but it is not sorted out ….. plz help
me in doing so …….. thanx in advance …</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">The code is </p>
<p class="MsoNormal"><?php</p>
<p class="MsoNormal"> dl("php_mapscript.dll");</p>
<p class="MsoNormal"> $map_path="C:\OSGeo4W\apache\htdocs/";</p>
<p class="MsoNormal">$map = ms_newMapObj($map_path."hello.map");</p>
<p class="MsoNormal">$image=$map->draw();</p>
<p class="MsoNormal"> $image_url=$image->saveWebImage();</p>
<p class="MsoNormal"> ?></p>
<p class="MsoNormal"><HTML></p>
<p class="MsoNormal"><HEAD></p>
<p class="MsoNormal"><TITLE>MAPSERVER HELLO WORLD</TITLE></p>
<p class="MsoNormal"></HEAD></p>
<p class="MsoNormal"><BODY></p>
<p class="MsoNormal"><IMG SRC=<?php echo $image_url;?>></p>
<p class="MsoNormal"></BODY></p>
<p class="MsoNormal"></HTML></p>
<p class="MsoNormal"> The hello.map file is in the C:\OSGeo4W\apache\htdocs
directory ……. And the hello.php file is also in the same directory.</p>
<span style="font-size: 11pt; font-family: "Calibri","sans-serif";">Plz
help me I will be greatful to u</span>