Hi,<br><br>I&#39;m working on migrating a ten year old mapserver project to the current version of mapserver on a new system.  It involves a lot of changes in scripts and querying parameters to synchronize with mapserver 5.4.2.  I&#39;ve run into an issue where the shapepath is generated dynamically with a perl script.  A call to mapserver (it was version 4.x at the time) passes a parameter called map_shapepath, and map_shapepath is equal to the dynamically generated path.<br>
<br>In the .map file for the project, the SHAPEPATH variable in MAP is commented out.  I read that in the current version, if SHAPEPATH is not defined, the default is the folder that the .map file currently resides in.  Indeed, mapserver is unable to find the .shp file within the same folder as the .map file.  Here is my error:<br>
<br>&quot;msDrawMap(): Image handling error. Failed to draw layer named &#39;theme&#39;.
msShapefileOpen(): Unable to access file. (/var/www/html/mapservr/HUSCO/histcen.shp)
msShapefileOpen(): Unable to access file. (/var/www/html/mapservr/HUSCO/histcen.shp)&quot;<br><br>If I uncomment SHAPEPATH and define path that actually contains a proper shapefile, the script presumably works (because it moves to the next error, which is related to the template.html).<br>
<br>So my question is: how can I define the shapepath dynamically with a parameter passed through the browser?  Has the &quot;map_shapepath&quot; param simply changed names to something else?  I can&#39;t find any documentation on this.  <br>
<br>Thanks!  <br><br>Ethan Gruber<br>University of Virginia Library<br>