[GLLUG] [OT]PHP Coding Question
Benjamin Minshall
minshal1@msu.edu
Sat, 05 Oct 2002 02:29:11 EDT
In PHP, give this a shot:
<?php
header( "Content-type: text/x-vcard" );
print "...vcard contents...\n";
?>
David Lee Lambert <lamber45@egr.msu.edu> said:
> 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...
--
----
Benjamin Minshall <minshal1@pilot.msu.edu>