Forum Moderators: coopster

Message Too Old, No Replies

PhP Mysql Contacts database - Vcard Upload?

Allowing users to upload vcards and automatically converting to mysql

         

alexander101

10:26 am on Aug 17, 2007 (gmt 0)

10+ Year Member



Hi,

I am currently writing a contacts database using php and mysql. I know there are many already out there but I've been looking around and can't find one that exactly matches my criteria. There is one feature I would like to add and then the little project is finished! :) I would like users to be able to import Vcards to the database and I was wondering how I would go about this. Would I need the users to upload the file and then have the php engine convert the file to another type and then add the records to the mysql database? If so, I am unsure of the code that would deal with the vcard to mysql bit.

Any help on this would be much appreciated...

Habtom

5:49 am on Aug 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Would I need the users to upload the file and then have the php engine convert the file to another type and then add the records to the mysql database?

A little more detail would have been fine, but:

How about just reading the file using file_get_contents, and see if you can get them into an array or a string where you can use them easily?

Habtom