[mapserver-users] php mapscript problem
Sven Schroeter
schroeter at netgis.de
Fri Nov 24 06:58:01 PST 2017
Hi,
I write many mapfiles from an application to the file system under Windows
and IIS.
Another script loads this mapfiles and checks if it is the right syntax.
If there is an syntax error in the mapfile I'll get an exeption:
try {
$oMap = ms_newMapobj($mymapfile);
} catch (Exception $e) {
echo '<strong>Exception:</strong> ', $e->getMessage(), "\n";
exit;
}
But after I opened the mapfile with newMapobj I can't delete (with unlink)
or update the file because of a permission denied warnings.
How can I unset the loaded mapfile? Everything I tried did not work.
Or is there another way to check the syntax of a mapfile (with includes)?
Thanks Sven
More information about the MapServer-users
mailing list