Re[ms4w-users] send- MS4W in IIS

Peter E. penglefi at
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"); looks as though you want to send the PNG image directly, in which case
the file name should be blank, like this:


According to the documentation on,

   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.


View this message in context:
Sent from the ms4w-users mailing list archive at

More information about the ms4w-users mailing list