Re: [PHP] Content-Disposition IE bug

2002-10-15 Thread Aaron Gould

I remember reading on this a long while back.  Try searching the archives of
this list.  The solution pointed to a Microsoft Knowledge Base article.

If I recall correctly, it involved simply adding %20 to the end of your
filename string...

Something like this:

Header(Content-Disposition: attachment; filename=$filename%20);

Give it a try.  I might be way off, but you've got nothing to lose.  :)

--
Aaron Gould
Web Developer
Parts Canada


Francis [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 ok i know this has popped up a couple of times before but i'm still having
 problems. What I need is the download popup to popup and ask the user if
 they wish to save or open the file they want to download. If you click
open
 IE saves the file in your temp cache and then opens up the associated
proggy
 and for some bizare reason adds [1] at the end of the filename and cant
 find the file in cache. At the moment i'm using the following:

 Header(Content-Type: application/octet-stream);
 Header(Content-Transfer-Encoding: binary);
 Header(File-Length: $fileSize);
 Header(Content-Disposition: attachment; filename=$filename);
 Header(Content-Description: File from DMS);
 fpassthru($fh);




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Content-Disposition IE bug (ADDENDUM)

2002-10-15 Thread Aaron Gould

I just read the part about caching...  Here's the download code that works
perfectly for me.  Note the first line that deals with caching.  The last
line also has the filename in quotes.  That might make a difference.  If you
still get [1], try the %20 trick in my last post.

header(Cache-control: private);
header(Content-type: application/octet-stream);
header(Content-length: $filesize);
header(Content-Disposition: attachment; filename=\$filename\);

--
Aaron Gould
[EMAIL PROTECTED]
Web Developer
Parts Canada


- Original Message -
From: Francis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 15, 2002 5:45 AM
Subject: [PHP] Content-Disposition IE bug


 ok i know this has popped up a couple of times before but i'm still having
 problems. What I need is the download popup to popup and ask the user if
 they wish to save or open the file they want to download. If you click
open
 IE saves the file in your temp cache and then opens up the associated
proggy
 and for some bizare reason adds [1] at the end of the filename and cant
 find the file in cache. At the moment i'm using the following:

 Header(Content-Type: application/octet-stream);
 Header(Content-Transfer-Encoding: binary);
 Header(File-Length: $fileSize);
 Header(Content-Disposition: attachment; filename=$filename);
 Header(Content-Description: File from DMS);
 fpassthru($fh);




 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Content-Disposition IE bug (ADDENDUM)

2002-10-15 Thread Francis

nope still dont work :( oh well back to bashing my head against a wall and
talking to microsoft :)

Aaron Gould [EMAIL PROTECTED] wrote in message
012c01c27447$69e831c0$3f63a8c0@pcagould">news:012c01c27447$69e831c0$3f63a8c0@pcagould...
 I just read the part about caching...  Here's the download code that works
 perfectly for me.  Note the first line that deals with caching.  The last
 line also has the filename in quotes.  That might make a difference.  If
you
 still get [1], try the %20 trick in my last post.

 header(Cache-control: private);
 header(Content-type: application/octet-stream);
 header(Content-length: $filesize);
 header(Content-Disposition: attachment; filename=\$filename\);

 --
 Aaron Gould
 [EMAIL PROTECTED]
 Web Developer
 Parts Canada


 - Original Message -
 From: Francis [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 15, 2002 5:45 AM
 Subject: [PHP] Content-Disposition IE bug


  ok i know this has popped up a couple of times before but i'm still
having
  problems. What I need is the download popup to popup and ask the user if
  they wish to save or open the file they want to download. If you click
 open
  IE saves the file in your temp cache and then opens up the associated
 proggy
  and for some bizare reason adds [1] at the end of the filename and
cant
  find the file in cache. At the moment i'm using the following:
 
  Header(Content-Type: application/octet-stream);
  Header(Content-Transfer-Encoding: binary);
  Header(File-Length: $fileSize);
  Header(Content-Disposition: attachment; filename=$filename);
  Header(Content-Description: File from DMS);
  fpassthru($fh);
 
 
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php