vcard

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
surferchick
Forum Newbie
Posts: 4
Joined: Mon Feb 18, 2008 6:11 am

vcard

Post by surferchick »

HI there
Im looking for some code that i can use that allows people to download a vcard from a html page
Same as here:http://www.hcp.com/content3765.html
Does anyone know how to do this??
Thanks
User avatar
Inkyskin
Forum Contributor
Posts: 282
Joined: Mon Nov 19, 2007 10:15 am
Location: UK

Re: vcard

Post by Inkyskin »

Something like this might be what your looking for: http://www.bitfolge.de/phpvcard-en.html
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Re: vcard

Post by Luke »

Did you even try to figure this out on your own? It's a pretty simply task if you just do some research. I wouldn't try to do this with a client-side technology. Do it with PHP. Go read up on the format here:

Just to get your brain jump-started, download the vcard that you linked to (http://www.hcp.com/vcard/get.php/id/3765) and open it in a text editor. Use the output as a template to output the correct information.

Code: Select all

<?php
header("Content-type: text/x-vcard");
 
// now output your template here
 
Post Reply