FYI: Since this may be a problem for others, I did figure it out sort of.
If my script is called: filereturn.php I pass this in my HREF:
A HREF="filereturn.php/filename.exe?fileID=3333
I don't know if this is a hack or whatever, but Netscape (NIX and Windoze)
and IE on Mac will now save the file as filename.exe vs. filereturn.php
IE 5.5 on Windoze will return it as filename and forget the extension.
> Morning List-
>
> I have a script which gets passed a "fileID" and using that fileID it
> queries a SQL database and grabs an actual filename and then does a
> fopen, fpassthru, etc.... I added the header info
> (application/octet-stream) so it actually downloads the file right
> away, instead of just displaying the binary content :)
>
> Anways, the filename that shows up in the "Save As" box is the script
> name from the calling HREF. Is there anyway to get around this and
> have it display the actual filename?
>
> A) I can't link to the file directly because these files are not
> stored in web accessible space.
>
> B) I am using Apache 1.3.20 (FreeBSD 4.3) and PHP 4.06 . Need any
> other info?
>
>
> Thanks!
>
> Henrik
> rhavenn at rhavenn.net
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]