WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search
Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Poker Tournaments Poker Tournaments
Poker Guide for Developers Poker Guide for Developers
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
Internet Security Software
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder
פרייסז - הכח לקנות עובר לידיים שלך
Texas Holdem Poker Evangelists

Go Back Add a Comment Send this example to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES ADD CODE EXAMPLES PRINT
Title : Grab Gmail Addressbook
Categories : PHP, PHP Classes, CURL Click here to Update Your Picture
MA Razzaque Rupom
Date : Jun 07th 2006
Grade : 4 of 5 (graded 14 times)
Viewed : 13959
File : 4420.zip
Images : No Images for this code example.
Search : More code by MA Razzaque Rupom
Action : Grade This Code Example
Tools : My Examples List

Submit your own code examples  Submit your own code examples 
 

This class grabs contact list from your Gmail addressbook

Here's how it works:

- Takes your gmail login and password
- Connects to gmail using the given login and password
- Retrieves contact list if the connection is successful for valid login information
- Parses the retrieved data
- Filters that data and takes it to an asociative array of "email"=>"name" format as well as to a table


Usage Example
<?php
/**
* Grab Gmail : Gmail Addressbook Grabber Class
*
* @author  :  MA Razzaque Rupom <rupom_315@yahoo.com>, <rupom.bd@gmail.com>
*             Moderator, phpResource (http://groups.yahoo.com/group/phpresource/)
*             URL: http://www.rupom.info 
* @version :  1.0
* @date       06/07/2006
* Purpose  :  Grabbing Your Gmail Addressbook
*/

 
require_once("GrabGmail.class.php");
 
 
$login = 'yourgmailid';//without "@gmail.com"
 
$password = 'yourgmailpassword';
 
 
$obj = new GrabGmail();
 
$obj->setLoginInfo($login, $password);
 
$obj->setCaBundleFile("D:/Rupom/xampp/htdocs/xampp/Test/ca-bundle.crt");//change it according to your info
 
$obj->setProxy("proxy.citech.net:8000");//change it according to your info
 
$obj->prepareContactList();
 
$obj->dBug("========== All Contacts of <b>$login@gmail.com</b> ==============");
 
$obj->dBug('---- Contacts in Table ------');
 
$resultTable = $obj->getResultTable();
 
$obj->dBug($resultTable);
 
$obj->dBug('---- Contacts in Array ------');
 
$resultArray = $obj->getResultArray();
 
$obj->dBug($resultArray);   
?>



Returns Yahoo! Address Book and Messenger List as an Array
Categories : PHP, PHP Classes, CURL
Link Manager for Link Exchangers
Categories : PHP, PHP Classes, Databases, MySQL, CURL
These PHP Classes Check if a host is alive using various methods.
Categories : PHP, PHP Classes, Sockets, CURL
Url To Pdf Report By Remote Application
Categories : PHP, PHP Classes, PDF, CURL
A class for sending email; it has support for To:, Cc:, Bcc: and Reply-To: headers. It requires that you have sendmail installed.
Categories : Email, PHP Classes, PHP
Image Cache
Categories : Graphics, PHP Classes, PHP
Three Cool Classes and One Trick
Categories : PHP, PHP Classes, Graphics, Email
ADODB Database Wrapper Abstraction Library for PHP: MySQL, MSSQL, Oracle, Interbase,ODBC, Microsoft Access and FoxPro.
Categories : PHP Classes, Databases, PHP, General SQL, ODBC
This class splits the results of the query into multiple pages like what the search engine does.
Categories : PHP Classes, PHP, MySQL, Databases
Reflection Examples - Their main goal is show how to use PHP's reflection classes re-implementing some php standard functions using reflection.
Categories : PHP, PHP Classes, Classes and Objects
logger class (PHP5 +)
Categories : PHP, PHP Classes, Log Files, XML
Automatic generation of HTML code for a table. OO interface. Can define colspan, rowspan, table style, cell style, and data style. Simple, but effective.
Categories : PHP, PHP Classes, HTML, HTML and PHP
PHP MIME Decoder. This class decodes Mime Encoded email message. Attachments are stored in a director. Works with Multipart/alternative, multipart/mixed etc. see http://p3mail.com for example.
Categories : PHP, PHP Classes, Email
Mssql database Manager
Categories : PHP, Databases, MS SQL Server, Classes and Objects, PHP Classes
Search and Replace Text : Searches Files for Specified Text and Replaces It by a Given Text
Categories : PHP, PHP Classes, Search, Filesystem