PHP/MapScript doesn't show the map

Camden Daily cdaily at GMAIL.COM
Fri Apr 22 07:26:01 PDT 2005


Try using mapscript's error reporting to find out what's going wrong.

At the beginning of your script, put:
 ms_ResetErrorList();

Then, at the end of the script, put this code:
 $error = ms_GetErrorObj();
 while($error AND $error->code != MS_NOERR) {
   printf("Error in %s: %s<br>\n", $error->routine, $error->message);
   $error = $error->next();
 }

That may get you started with debugging.



More information about the MapServer-users mailing list