<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Léo,</span></div><div><br><span></span></div><div><span>If you server is not a production server, please make sure that you have the <span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">php.ini</span> error handling as follows:<br></span></div><div><br><span></span></div><div><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">error_reporting = E_ALL</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"> </span><br></div><div><br>Remember to restart Apache.<br><br>Also, in the MAP section, add something like this:<br><br><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">DEBUG ON</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier
 New,courier,monaco,monospace,sans-serif;">CONFIG "MS_ERRORFILE" "/var/www/html/errores.txt"</span><br><br>Let's see what happens.<br><br>Cheers from México<br><br></div><div><font style="font-weight:bold;color:rgb(0, 96, 191);font-family:verdana, helvetica, sans-serif;" size="2">IC Carlos Ruiz</font><br><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"><font face="Arial" size="2"><hr size="1"><b><span style="font-weight:bold;">From:</span></b> Léo D. &lt;leo_dumont@yahoo.fr&gt;<br><b><span style="font-weight: bold;">To:</span></b> mapserver-users@lists.osgeo.org<br><b><span style="font-weight: bold;">Sent:</span></b> Tuesday, July 5, 2011 11:19 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [mapserver-users] Re: Installing PHP MapScript with MapServer 6.0.0-3 and PHP 5.3.6 on Mac OS X 10.6.8<br></font><br>Thanks to both
 of you for your answers.<br><br>I've allready edit my php.ini to add "extension=php_mapscript.so" and with a<br>phpinfo() I can see the section about MapScript.<br>Moreover when I run this script to test if the extension is loaded or not<br>and I have a positive result, so I think that PHP MapScript is working:<br><br>if (!extension_loaded('MapScript')) {<br>echo"Not loaded";<br>}<br>else {<br>echo"Loaded!";<br>}<br><br>But when I try to run the example script from the mapserver.org<br>documentation (without the dl() instruction), it doesn't work and I have no<br>error message, just an empty page. Here is my php code:<br><br>&lt;?php<br>$map = ms_newMapObj("~/macbook/Sites/mapeserver/introduction/test.map");<br>$image = $map-&gt;draw();<br>$image_url = $image-&gt;saveWebImage();<br><br>echo'&lt;html&gt;<br>&nbsp;  &lt;head&gt;<br>&nbsp; &nbsp;  &lt;title&gt;Exemple : Afficher un shapefile&lt;/title&gt;<br>&nbsp;  &lt;/head&gt;<br>&nbsp; 
 &lt;body&gt;<br>&nbsp; &nbsp; &nbsp; '.$image_url.' <br>&nbsp;  &lt;/body&gt;<br>&lt;/html&gt;';<br>?&gt;<br><br>And here is my mapfile:<br><br>MAP<br>NAME "Europe en bleu"<br>SIZE 400 400<br>STATUS ON<br>EXTENT -31.2467 27.6065 40.1199 80.762<br>UNITS DD<br>SHAPEPATH "~/macbook/Sites/mapserver/introduction/shape/"<br>&nbsp;&nbsp;&nbsp; <br>WEB<br>&nbsp; IMAGEPATH '~/macbook/Sites/mapeserver/temp/'<br>&nbsp; IMAGEURL&nbsp; '/temp/'<br>END<br><br>LAYER<br>&nbsp; NAME "Europe"<br>&nbsp; TYPE POLYGON<br>&nbsp; STATUS ON<br>&nbsp; DATA "europe"<br>&nbsp; CLASS<br>&nbsp; &nbsp; STYLE<br>&nbsp; &nbsp; &nbsp; COLOR 20 10 110<br>&nbsp; &nbsp; &nbsp; OUTLINECOLOR 200 200 200<br>&nbsp; &nbsp; END<br>&nbsp; END<br>END<br><br>END<br><br>Maybe I've made a mistake in one of these files…<br>Thanks for your help !<br><br>Léo<br><br>--<br>View this message in context: <a
 href="http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6550486.html" target="_blank">http://osgeo-org.1803224.n2.nabble.com/Installing-PHP-MapScript-with-MapServer-6-0-0-3-and-PHP-5-3-6-on-Mac-OS-X-10-6-8-tp6546297p6550486.html</a><br>Sent from the Mapserver - User mailing list archive at Nabble.com.<br>_______________________________________________<br>mapserver-users mailing list<br><a ymailto="mailto:mapserver-users@lists.osgeo.org" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br><br><br></div></div></div></body></html>