Re: [PHP] Totally weird behavior trying to download a Mac DMG file

[email protected] (Tom Worster)
Newsgroups php.general
Message-ID <C65EA5A1.D719%[email protected]>
On 6/16/09 1:40 PM, "Brian Dunning" <[email protected]> wrote:

> However, when I complete a test purchase and download using the above
> code, the DMG file downloads, but then it mounts; the contents are
> copied into the Downloads folder; the image unmounts; and then
> deletes. All the contents are delivered, but not in a desirable way.

what headers are sent by the server when you don't use your php script? try
sending those headers instead.

perhaps try application/force-download as the content type instead. for
several user agents this seems to prevent then from doing something useful
with the file and just save it instead.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.