<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello.<br>
I try to use pamscript with php by running the following file but i
receive the following error message:<br>
<b>Fatal error</b>: Call to undefined function ms_newMapObj() in <b>C:\ms4w\Apache\htdocs\phpms_hello.php</b>
on line <b>5.</b><br>
<br>
<br>
File name : phpms_hello.php in C:\ms4w\Apache\htdocs<br>
<br>
&lt;?php<br>
  // Create a unique image name every time through<br>
  $image_name = sprintf("phpms-hello%0.6d",rand(0,999999)).".png";<br>
  // Create a new instance of a map object<br>
  $map=ms_newMapObj("/ms4w/Apache/htdocs/hello.map");<br>
  // Create an image of the map and save it to disk<br>
  $image=$map-&gt;draw();<br>
  $image-&gt;saveImage("/ms4w/Apache/htdocs/tmp/".$image_name);<br>
?&gt;<br>
&lt;html&gt;<br>
&lt;head&gt;&lt;title&gt;PHP MapScript Hello
World&lt;/title&gt;&lt;/head&gt;<br>
&lt;body&gt;<br>
  &lt;form action="phpms_hello.php" method="POST"&gt;<br>
    &lt;input type="image" name="img" <br>
          src="/tmp/&lt;?php echo $image_name; ?&gt;"&gt;<br>
  &lt;/form&gt;<br>
&lt;/body&gt;<br>
&lt;/html&gt;<br>
<br>
<br>
I run mapserver version 2.2.7 on Windows xp and when i call
<a class="moz-txt-link-freetext" href="http://localhost">http://localhost</a> i can verify that mapscript is installed correctly.<br>
I suppose i have done something wrong with my configuration..<br>
<br>
<br>
<br>
<br>
</body>
</html>