I'm trying to learn mapscript by converting a .map file into php mapscript that does not use the file. <br>It's going well except for not being able to duplicate a very simple piece of mapfile to mapscript. <br><br>The main problem is FEATURE I think. 
<br><br>I have also manipulating the layer with php and have success except for changing the text or the point, again the features. <br><br>Anyone got a spare minute to set me straight <br><br>&nbsp;&nbsp; &nbsp;LAYER<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;NAME &quot;credits&quot;
<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;STATUS DEFAULT<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;TRANSFORM FALSE<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;TYPE ANNOTATION<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;FEATURE<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;POINTS<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;200 150<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;END<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;TEXT 'Hello world.&nbsp; Mapserver rocks.'<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;END<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;CLASS<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;LABEL<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;TYPE BITMAP<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;COLOR 0 0 0<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;END<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;END<br>&nbsp;&nbsp; &nbsp;END <br><br>This is my attempt: <br>//credits<br><br>//add layer to map
<br>$layerCredits = ms_newLayerObj($map); <br>$layerCredits-&gt;set(&quot;name&quot;, &quot;writeSomething&quot;); <br>$layerCredits-&gt;set(&quot;type&quot;, MS_LAYER_ANNOTATION);<br>$layerCredits-&gt;set(&quot;transform&quot;, MS_FALSE);
<br>$layerCredits-&gt;set(&quot;status&quot;, MS_DEFAULT);<br><br><br>//make shape <br>$shapeCredits =&nbsp; ms_newShapeObj(MS_SHAPE_POINT); <br>$shapeCredits-&gt;text =&quot;This should be on the map but is not&quot;; <br><br>
//make line <br>$lineCredits = ms_newLineObj(); <br><br>//make point<br>$pointCredits = ms_newPointObj(); <br>$pointCredits-&gt;setXY(50,20); <br><br>//add point to line <br>$lineCredits-&gt;add($pointCredits); <br><br><br>
//add line to shape <br>$shapeCredits-&gt;add($lineCredits); <br><br>//add shape to layer <br>$layerCredits-&gt;addFeature($shapeCredits); <br><br>//set up&nbsp; class<br>$classCredits&nbsp; = ms_newClassObj($layerCredits); <br><br>
//set up label <br>$classCredits-&gt;label-&gt;set(&quot;position&quot;, MS_CR); <br>$classCredits-&gt;label-&gt;set(&quot;type&quot;, MS_BITMAP); <br>$classCredits-&gt;label-&gt;color-&gt;setRGB(255,0,125); <br><br>