In my previous code, I am using OpenLayers WMS to load a raster data through MapServer. As you can see, the mapserv.exe calls a local map file to load the raster data. I just heard PHP_MapScript, since it can convert a map file into a map object.
Is that possible to use this converted map object directly in OpenLayers WMS? Since the object can be easily modified such as "styling".
localWMS = new OpenLayers.Layer.WMS( "Local WMS layers",
"http://127.0.0.1/cgi-bin/mapserv.exe?MAP=C:/Users/mapserver.map",
{layers: 'polygon',transparent: true}, {isBaseLayer: false} );
map.addLayer(localWMS);
Someone who is familiar with PHP_MapScript, I am willing to hear from you.