[GLLUG] [OT]PHP Coding Question

C. Ulrich dincht@securenym.net
Mon, 07 Oct 2002 07:02:08 -0600


David Lee Lambert wrote:
> On Fri, 4 Oct 2002, Mike Szumlinski wrote:
> 
> 
>>I can't quite figure out how to do this...but right now I have a script
>>that generates a vCard file, which is basically just a text file with a
>>.vcf extension.  I've unfortunately found that trying to link to this
>>generated file makes the lines of text from the file appear in the
>>browser rather than prompt for a download location or whatever (open
>>with, save as...etc).
> 
> 
> Try setting up your HTTP server to give such files the
> 'application/x-vcard' type,  or something like that...
> 

On my browser (Mozilla), the server tried to send it with MIME type
"binary/octet-stream", if that helps.

--C. Ulrich