<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML XMLNS:O><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18259"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area"><FONT face=Calibri>
<DIV class=MsoNormal><FONT face="Arial Narrow"><SPAN style="FONT-SIZE: 12pt"
class=Apple-style-span><SPAN style="FONT-FAMILY: 'Comic Sans MS'"
class=Apple-style-span><SPAN style="COLOR: rgb(31,73,125)"
class=Apple-style-span>Hello everyone! In ms4w </SPAN></SPAN></SPAN><SPAN
style="mso-spacerun: yes"><SPAN style="FONT-SIZE: 12pt"
class=Apple-style-span><SPAN style="FONT-FAMILY: 'Comic Sans MS'"
class=Apple-style-span><SPAN style="COLOR: rgb(31,73,125)"
class=Apple-style-span> </SPAN></SPAN></SPAN></SPAN><SPAN
style="FONT-SIZE: 12pt" class=Apple-style-span><SPAN
style="FONT-FAMILY: 'Comic Sans MS'" class=Apple-style-span><SPAN
style="COLOR: rgb(31,73,125)"
class=Apple-style-span>5.2.1, </SPAN></SPAN></SPAN><SPAN
style="FONT-SIZE: 12pt" class=Apple-style-span><SPAN
style="FONT-FAMILY: 'Comic Sans MS'" class=Apple-style-span><SPAN
style="COLOR: rgb(31,73,125)" class=Apple-style-span>I created & saved the
following file as phpms_hello.php</SPAN></SPAN></SPAN><SPAN
style="FONT-SIZE: 12pt" class=Apple-style-span><SPAN
style="FONT-FAMILY: 'Comic Sans MS'"
class=Apple-style-span><O:P></O:P></SPAN></SPAN></FONT></DIV>
<DIV class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><?php<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>// Create a unique image name every time
through<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>$image_name =
sprintf("phpms_hello%0.6d",rand(0,999999)).".jpg";<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>// Create a new instance of a map
object<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>$map =
ms_newMapObj("/ms4w/Apache/htdocs/hello.map");<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>// Create an image of the map and save it to
disk<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>$image=$map->draw();<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN style="mso-spacerun: yes">
</SPAN>$image->saveImage("/ms4w/tmp/ms_tmp/".$image_name);<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3>?><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT
size=3><html><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><head><title>PHP Mapscript Hello
World</title></head><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT
size=3><body><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN
style="mso-spacerun: yes"> </SPAN><form
action="phpms_hello.php"<SPAN style="mso-spacerun: yes">
</SPAN>method="POST"><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN
style="mso-spacerun: yes"> </SPAN><SPAN
style="mso-spacerun: yes">
</SPAN><input<SPAN style="mso-spacerun: yes"> </SPAN>type="image"
name="img"<O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN
style="mso-spacerun: yes">
</SPAN>src="/ms_tmp/<?php echo $image_name;
?>"><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT size=3><SPAN
style="mso-spacerun: yes">
</SPAN></form><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT
size=3></body><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV style="mso-layout-grid-align: none" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt"><FONT
face="Arial Narrow"><FONT
size=3></html><O:P></O:P></FONT></FONT></SPAN></DIV>
<DIV class=MsoNormal><FONT face="Arial Narrow"><SPAN style="FONT-SIZE: 12pt"
class=Apple-style-span><SPAN style="FONT-FAMILY: 'Comic Sans MS'"
class=Apple-style-span><SPAN style="COLOR: rgb(31,73,125)"
class=Apple-style-span>When I run this file in the
browser,</SPAN></SPAN></SPAN><SPAN style="mso-spacerun: yes"><SPAN
style="FONT-SIZE: 12pt" class=Apple-style-span><SPAN
style="FONT-FAMILY: 'Comic Sans MS'" class=Apple-style-span><SPAN
style="COLOR: rgb(31,73,125)" class=Apple-style-span>
</SPAN></SPAN></SPAN></SPAN><SPAN style="FONT-SIZE: 12pt"
class=Apple-style-span><SPAN style="FONT-FAMILY: 'Comic Sans MS'"
class=Apple-style-span><SPAN style="COLOR: rgb(31,73,125)"
class=Apple-style-span>I get the following error
message,</SPAN></SPAN></SPAN><O:P> </O:P></FONT></DIV>
<DIV class=MsoNormal><FONT face="Arial Narrow"><SPAN
class=apple-style-span><SPAN style="COLOR: black">Fatal error</SPAN><SPAN
style="COLOR: black">: Call to undefined function ms_newMapObj()
in</SPAN></SPAN><SPAN class=apple-converted-space><SPAN
style="COLOR: black"> </SPAN></SPAN><SPAN class=apple-style-span><SPAN
style="COLOR: black">C:\ms4w\Apache\htdocs\phpms_hello.php</SPAN></SPAN><SPAN
class=apple-converted-space><SPAN style="COLOR: black"> </SPAN></SPAN><SPAN
class=apple-style-span><SPAN style="COLOR: black">on line</SPAN></SPAN><SPAN
class=apple-converted-space><SPAN style="COLOR: black"> </SPAN></SPAN><SPAN
class=apple-style-span><SPAN
style="COLOR: black">5</SPAN><O:P></O:P></SPAN><B></B></FONT></DIV>
<DIV class=MsoNormal><SPAN class=apple-style-span><B><SPAN
style="COLOR: black"><O:P><FONT
face="Arial Narrow"></FONT></O:P></SPAN></B></SPAN> </DIV>
<DIV class=MsoNormal><FONT face="Arial Narrow"><SPAN
class=apple-style-span><SPAN><SPAN style="FONT-SIZE: 12pt"
class=Apple-style-span><SPAN style="FONT-FAMILY: 'Comic Sans MS'"
class=Apple-style-span><SPAN style="COLOR: rgb(31,73,125)"
class=Apple-style-span>N.B: The hello.map file works through an html file.
</SPAN></SPAN></SPAN></SPAN></SPAN><SPAN class=apple-style-span><SPAN><SPAN
style="FONT-SIZE: 12pt" class=Apple-style-span><SPAN
style="FONT-FAMILY: 'Comic Sans MS'" class=Apple-style-span><SPAN
style="COLOR: rgb(31,73,125)" class=Apple-style-span>Can anyone
help?</SPAN></SPAN></SPAN></SPAN></SPAN><O:P></O:P></FONT></DIV></FONT></BODY></HTML>