Introduction
Description
Here are some quick instructions for the impatient. :-)
Download and un-compress Contact_Vcard_Parse from the PEAR archive.
Include Contact_Vcard_Parse.php in your PHP script.
Instantiate a new Contact_Vcard_Parse object.
Use the fromFile() method to parse any file which may have one or more vCards in it; try the sample.vcf file for a start. Contact_Vcard_Parse should work with both 2.1 and 3.0 vCard files.
Use print_r() to view the resulting array of data from the parsed file.
Do what you want with the data, such as insert into a table.
Пример 39-1. Example code
|
Пред. | Начало | След. |
Contact_Vcard_Parse | Уровень выше | How Data Is Returned |