Revisiting this problem, Richard's suggestion didn't work. This is
what I know.

Code sample.

<?php
ob_start();
include('gzip_encode.php');
?>
<?php
header("Content-type: image/svg+xml");
echo ('<?xml version="1.0" encoding="iso-8859-1"?>')."\n";
?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN'
'http://www.w3.org/TR/SVG/DTD/svg10.dtd'>
<svg>
.....
</svg>
<?php
new gzip_encode();
?>

-I have to place gzip.exe and gzip_encode.php in the same directory to
compress my output.

-If they are not there, it will display, if so, IE tries to download
the file. What kills me, is that on my work computer and home desktop,
no problem. 

-On my laptop and some friends computers, but not all, IE tries to
download.

-I recently reformatted my laptop.

-Appears to be a problem on computers that have not recently viewed my
site.  Not sure what time frame, but computers that visited my site
say 6 months ago are fine, maybe even only 3.

-It has to do with gzip_encode.php.

-No problem running off my localhost on same laptop.

Examples

Good:
http://www.seanmontague.com/test2/map2.php

No Good:
http://www.seanmontague.com/test/map2.php

But this is OK.
http://localhost/test/map2.php


--- In [email protected], <[EMAIL PROTECTED]> wrote:
>
> I had this problem similar to this and it was down to the
declaration in the 
> ..aspx page
> 
> 
> <svg xmlns="http://www.w3.org/2000/svg"; 
> xmlns:xlink="http://www.w3.org/1999/xlink"; 
> xmlns:ev="http://www.w3.org/2001/xml-events"; viewBox="0 0 740 610">
> ....
> ....
> ....
> 
> >From: Sean <[EMAIL PROTECTED]>
> >Reply-To: [email protected]
> >To: [email protected]
> >Subject: Re: [svg-developers] Re: IE tries to download, not display
svg 
> >file
> >Date: Tue, 22 Aug 2006 12:19:28 -0600
> >
> >I haven't had much opportunity to work on the problem since my work and
> >home pc both are fine. Last night I was able to reproduce the
problem on
> >a laptop I recently reformatted, which was quite annoying, but at least
> >I now have a computer with the problem. I tried the .htaccess file and
> >doesn't help. I haven't had time to explore much with my laptop, but it
> >prompts to either save or open the SVG file. When I try to open it, IE
> >crashes. I tried lowering the security, but that doesn't seem to work
> >either. The SVG is dynamically generated with PHP, and the mime
type and
> >header are set accordingly. Like I said, it is only a problem on some
> >computers.
> >
> >Thanks!
> >Sean
> >
> >Sherm wrote:
> >
> > > Sean,
> > >
> > > Have you set the SVG MIME type on your server? I've run into this
> > > issue twice before, and neither server had SVG/SVGZ set as a MIME
> > > type.
> > >
> > > I always send server admins to this page to get info on setting the
> > > MIME type:
> > > http://www.svgfaq.com/ServerGen.asp 
> ><http://www.svgfaq.com/ServerGen.asp>
> > >
> > > HTH.
> > >
> > > Sherm
> > >
> > > -----------------------------------------
> > > On 16/08/2006, at 2:42 AM, Sean wrote:
> > >
> > > I had put this off to the side thinking it might have been an error
> > > in my file, but it apparently is not. This is not an Adobe viewer vs
> > > native issue. It seems to me to be a security issue. But I can't
> > > reproduce it on my computer. I've tried increasing the security, but
> > > my computer works fine. My friends are unable to view my SVG. It is
> > > database driven, php, svg maps. When they try to open them, it wants
> > > to save them or open them, but trying to press the open button does
> > > nothing. Any insight would be most appreciated.
> > >
> > >
> >
> >
> >
> >[Non-text portions of this message have been removed]
> >
> 
> _________________________________________________________________
> Windows LiveĀ™ Messenger has arrived. Click here to download it for
free! 
> http://imagine-msn.com/messenger/launch80/?locale=en-gb
>





-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to