Login   Register  
PHP Classes
elePHPant
Icontem

File: VCard-PHP4-Example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Behrouz Pooladrag  >  vCard Creator Full  >  VCard-PHP4-Example.php  >  Download  
File: VCard-PHP4-Example.php
Role: Example script
Content type: text/plain
Description: Example for PHP4
Class: vCard Creator Full
Generate user contact files in vCard format
Author: By
Last change:
Date: 2008-05-01 14:30
Size: 3,778 bytes
 

Contents

Class file image Download
<?php
/**
 +-------------------------------------------------------------------------
 +---------------------->> In The Name Of Allah <<-------------------------
 +-------------------------------------------------------------------------
 | Class VCardIFL version 0.0.1 (for php 5)
 | Script For Create VCard  IFLashLord varsion 0.0.1
 | Vcard Create Online [VCard Creator Full] Example
 | Author  Behrouz Pooladrag  (IFLashLord) <Me [at] IFLashLord [dot] Com>
 | Email bugs/suggestions to  Me [at] iflashlord.com
 | Copyright (c) 2008 By Behrouz Pooladrag ,IFLashLord Co.
 +-------------------------------------------------------------------------
 | This script has been created and released under
 | the GNU GPL and is free to use and redistribute
 | only if this copyright statement is not removed
 +-------------------------------------------------------------------------
 +--------------| Contact 2 Behrouz Pooladrag |----------------------------
 | Email : Me [ at ] IFLashLord [dot] Com
 | WebSite : http://www.IFLashLord.Com
 | Yahoo : BehrouzPC [at] yahoo.Com
 | G-Mail : FLashLordX [at] gmail.Com
 | Mobile : +98 913 12 777 14
 +-------------------------------------------------------------------------
 | (Zakate Elame Nasher Aan Ast )
 +-------------------------------------------------------------------------
**/





             ///
          //****//
      //************//
  //*******************//
//***** FULL EXAMPLE *****//
  //*******************//
     //************//
         //****//
           ///


// setup array Data
$dataArray=array(                                          
"fileName"=>"vcardx",                                       //Vcard Name
"saveTo"=>"upload",                                          // Upload Folder Address

"vcard_birtda"=>"1367-05-05",                                 
"vcard_f_name"=>"Behrouz",                                
"vcard_s_name"=>"IFLashLord",                                
"vcard_uri"=>"http://wp.iflashlord.com",               
"vcard_nickna"=>"IranFLashLord",                      
"vcard_note"=>"this is a vcard note!",                      
"vcard_cellul"=>"0913121277714",                            
"vcard_compan"=>"IFLashLord Studio Web Design Company.",     
"vcard_p_pager"=>"09pagerNumber",                        

"vcard_h_addr"=>"Address of Live Position",                 
"vcard_h_city"=>"ShahinShahr",                           
"vcard_h_coun"=>"Iran",                                   
"vcard_h_fax"=>"09Faxnumber",                               
"vcard_h_mail"=>"HomeMail <me@iflashlord.com>",           
"vcard_h_phon"=>"Home Phone 0312 000000",                  
"vcard_h_zip"=>"ZipCode1234567890",                         
"vcard_h_uri"=>"Home URi http://www.iflashlord.com",       

"vcard_w_addr"=>"Address of Work Position",                 
"vcard_w_city"=>"Esfahan",                                  
"vcard_w_coun"=>"Iran",                                     
"vcard_w_fax"=>"09WorkFax",                                 
"vcard_w_mail"=>"Work Mail <info@iflashlord.com>",          
"vcard_w_phon"=>"0311 000000",                              
"vcard_w_role"=>"Web Designer & Programer",                 
"vcard_w_titl"=>"IFLashLord [TITLE]",                        
"vcard_w_zip"=>"WorkZipCode1234567890",                      
"vcard_w_uri"=>"Work URi http://about.iflashlord.com"       
);                                                           

include_once(
"VCardIFL-PHP4.php");

$vcard=new VCardIFL($dataArray);

$vcard->createVcard(); //Create Vcart By Your Setup or array

//$vcard->DownloadVcard(); // Download force your vcard

//$vcard->SaveVcard(); //parameter Random name Upload is false
?>