<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Jay,<br><br>This type of request is really, really, really bad practice:<br>1) It shows the full path to the storage of all of your images.<br>2) That path is relative to the computer you are USING not the computer where you have the images stored.<br><br>You should really have a PHP script like the following (put it in the htdocs/php folder and name it "getSketch.php" or something intuitive):<br><br>&lt;?php<br><br>$sketchName = $_REQUEST['sketch_name'];<br><br>header('Content-type: application/pdf');<br>readfile('c:/ms4w/apps/GeoMOOSE/htdocs/pdf/Assessing_Sketches/'.sketchName);<br>?&gt;<br><br>And the hyperlink should look like this... (assuming [SKETCHNAME] is the field containing the unique ID in a mapserver template file of some sort).<br><br>&lt;a href="php/getSketch.php?sketch_name=[SKETCHNAME]"
 target="photowindow"&gt;View Sketch PDF&lt;/a&gt; <br><br>Or if you must use the javascript windows...<br><br>&lt;a href="javascript:window.open('php/getSketch.php?sketch_name=[SKETCHNAME]', 'photowindow', 'width=450,height=350')"&gt; View Sketch PDF&lt;/a&gt;<br></div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Jay Kapalczynski &lt;jkapalczynski@ci.maple-grove.mn.us&gt;<br><b><span style="font-weight: bold;">To:</span></b> "geomoose-developers@lists.sourceforge.net" &lt;geomoose-developers@lists.sourceforge.net&gt;; "geomoose-users@lists.sourceforge.net" &lt;geomoose-users@lists.sourceforge.net&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Monday, December 29, 2008 9:27:09 AM<br><b><span style="font-weight: bold;">Subject:</span></b>
 [Geomoose-users] Open an Image<br></font><br>



 
 
<style>
<!--
 
 _filtered {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;margin-bottom:.0001pt;font-size:11.0pt;font-family:"Calibri", "sans-serif";}
a:link, span.MsoHyperlink
        {color:blue;text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
span.EmailStyle17
        {font-family:"Calibri", "sans-serif";color:windowtext;}
.MsoChpDefault
        {}
 _filtered {margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {}
-->
</style>



<div class="Section1">

<p class="MsoNormal">I am having a problem here…</p> 

<p class="MsoNormal">I have two different locations where I am storing my
imagery. As seen below with the two different paths.</p> 

<p class="MsoNormal">I verified that the image is present in both locations, and
that the path names are correct….but for some reason I cannot get the
image in the C drive to open.&nbsp; The image located in the S drive opens fine.</p> 

<p class="MsoNormal">Can anyone see why that may be….is there some sort of
syntax issue with storing the files within the ms4w folder?</p> 

<p class="MsoNormal"> &nbsp;</p> 

<p class="MsoNormal">Not working</p> 

<p class="MsoNormal">$p_hype2 =
"javascript:window.open('file://C:/ms4w/apps/GeoMOOSE/htdocs/pdf/Assessing_Sketches/".$p_name2."','photowindow','width=450,height=350')";</p> 

<p class="MsoNormal"> &nbsp;</p> 

<p class="MsoNormal">Working</p> 

<p class="MsoNormal">$p_hype2 =
"javascript:window.open('file://S:/GeoImag/Assessing/Sketches/".$p_name2."','photowindow','width=450,height=350')";</p> 

<p class="MsoNormal"> &nbsp;</p> 

<p class="MsoNormal"> &nbsp;</p> 

<p class="MsoNormal"> &nbsp;</p> 

</div>

</div></div></div><br>

      </body></html>