Re[ms4w-users] send- MS4W in IIS

Peter E. penglefi at nrcan.gc.ca
Tue Dec 4 13:52:55 EST 2007


Did you figure this one out? Looking at your script...

   $oImage = $oMap->draw();
   header("Content-type: image/png");
   $oImg->saveImage("/ms4w/tmp/ms_tmp/test.png");

...it looks as though you want to send the PNG image directly, in which case
the file name should be blank, like this:

   $oImg->saveImage("");

According to the documentation on MapTools.org,

   Passing an empty filename sends output to stdout.  In this case,
   the PHP header() function should be used to set the documents's
   content-type prior to calling saveImage().

Not that this is working for me right now, so if it (or anything) worked for
you, please let me know.

Thanks!
Peter

-- 
View this message in context: http://www.nabble.com/Resend--MS4W-in-IIS-tf4628909.html#a14156950
Sent from the ms4w-users mailing list archive at Nabble.com.



More information about the ms4w-users mailing list