<?php
dl("php_mapscript.dll");
//$map_file="./hello.map";
$map = ms_newMapObj("hello.map");
$image=$map->draw();
$image_url=$image->saveWebImage();
?>
<HTML>
<HEAD>
<TITLE>Mapserver "hello world"</TITLE>
</HEAD>
<BODY>
<img SRC="<?php echo $image_url?>">
<p>This is the simplest example I could come up with. It doesn't even use any data files, just draws some text. Use this to test your new installation of Mapserver and PHP/Mapscript.</p>
<h3>Source for all recipes: <a href="http://www.mobilegeographics.com/mapserver/MSrecipes.tar.gz">http://www.mobilegeographics.com/mapserver/MSrecipes.tar.gz</a></h3>
<iframe src="hello.txt" width=450 height=400><a href="hello.txt">hello.txt</a></iframe>
<h2><a href="http://www.mobilegeographics.com/mapserver/">return to Mapserver Recipes</a></h2>
</BODY>
</html>