php vcard display as plain text
问题 i have a new feature on my site that allow user to get vcard files. this feature reads data from my database (which this one works) and generate the vcard. the file is: vcard.php and i pass the user id as GET then i get all the information using that id my problem is when i want to get the vcard, it display as text. here's a simplified version of my code: <?php class Vcard { public function __construct() { $this->props = array(); } public function setName($family, $first) { $name = $family .