Export selected data to a text file

From: Date: Fri, 03 May 2002 11:20:58 +0000
Subject: Export selected data to a text file
Groups: php.general 
Request: Send a blank email to php-general+get-95865@lists.php.net to get a copy of this message
I'm brand new to PHP, but very familiar with how to do this in another language. I'm want to read a member's record and export the selected data to a downloadable vCard. The vCard is simply a text file with a .vcf extension. Once I've read all the data for that user, I need to create the file line by line with a \r\n at the end of each. Example: BEGIN:VCARD VERSION:2.1 N:List;PHP;Mailing FN:PHP Mailing List EMAIL;PREF;INTERNET:php-general@lists.php.net REV:20020503T111208Z END:VCARD How do I export each line to a text file then move that newly created file to a web root subdirectory? Thanks! Mark

« previous php.general (#95865) next »