"there may be some funk in the headers coming back
from the server."

This was more or less the case, I am using Joomla as a wrapper for the
extension and it was sending back some headers that safari was taking
notice of, adding in another two lines to the end of the script worked
good:

header('Content-type: application/zip');
header('Content-Disposition: attachment; filename="zipfile.zip"');
readfile('home/matts_server/downloads/zipfile.zip');
flush();
exit();

Luckily because the headers do not redirect to a different page, so
the form (with many downloads on it) just sits there while the user
downloads, instead of exit(); making a blank page, and the user having
to hit back.

Thanks,

Matt.


On Nov 19, 4:52 pm, Chris Burgess <[EMAIL PROTECTED]> wrote:
> Is the download URL visible?
>
> If you're actually getting a .html appended (and your download code has
> a .php extension), there may be some funk in the headers coming back
> from the server - or extra text being prepended / appended to your file.
> A space before or after the PHP code might do it too.
>
> You could take a look with LiveHTTP (or a Safari version of the same),
> or Wireshark.
> .
--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[EMAIL PROTECTED]
-~----------~----~----~----~------~----~------~--~---

Reply via email to