<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&#39;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">&lt;?php</p>

<p class="MsoNormal"> dl(&quot;php_mapscript.dll&quot;);</p>

<p class="MsoNormal"> $map_path=&quot;C:\OSGeo4W\apache\htdocs/&quot;;</p>

<p class="MsoNormal">$map = ms_newMapObj($map_path.&quot;hello.map&quot;);</p>

<p class="MsoNormal">$image=$map-&gt;draw();</p>

<p class="MsoNormal"> $image_url=$image-&gt;saveWebImage();</p>

<p class="MsoNormal"> ?&gt;</p>

<p class="MsoNormal">&lt;HTML&gt;</p>

<p class="MsoNormal">&lt;HEAD&gt;</p>

<p class="MsoNormal">&lt;TITLE&gt;MAPSERVER HELLO WORLD&lt;/TITLE&gt;</p>

<p class="MsoNormal">&lt;/HEAD&gt;</p>

<p class="MsoNormal">&lt;BODY&gt;</p>

<p class="MsoNormal">&lt;IMG SRC=&lt;?php echo $image_url;?&gt;&gt;</p>

<p class="MsoNormal">&lt;/BODY&gt;</p>

<p class="MsoNormal">&lt;/HTML&gt;</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: &quot;Calibri&quot;,&quot;sans-serif&quot;;">Plz
help me I will be greatful to u</span>