Warning: include(C:/ms4w/apps/phpmapscriptng-swig/include/mapscript.php): Failed to open stream: No such file or directory in C:\ms4w\apps\ms-ogc-workshop\context\OGC_WMC_mapfile2context.php on line 19

Warning: include(): Failed opening 'C:/ms4w/apps/phpmapscriptng-swig/include/mapscript.php' for inclusion (include_path='.;\ms4w\Apache\php') in C:\ms4w\apps\ms-ogc-workshop\context\OGC_WMC_mapfile2context.php on line 19
MapServer OGC:WMC Example
MapServer OGC:WMC Example

Input Mapfile
Mapscript code:
// load mapscript
dl("php_mapscript.dll");

// required SWIG include (contains constants for PHP7)
include("C:/ms4w/apps/phpmapscriptng-swig/include/mapscript.php");

// instantiate a new Map Object
// with the mapfile as an argument
$oMap = new mapObj("C:/ms4w/apps/ms-ogc-workshop/context/demo.map");

// output an OGC:WMC document to disk
$oMap->saveMapContext("ogc_wmc_output.cml");
					
Output OGC:WMC Document

[ Valid XHTML 1.0! ] [ Valid CSS! ]