Hacking Gmail

(Grace) #1

118 Part II — Getting Inside Gmail


PHP — Gmailer


Yin Hung Gan’s Gmailer library is the obvious choice for PHP coders. Gan wrote
it so that he could build a simplified interface for Gmail, and check his mail from
his PDA. It is really two projects: the Gmailer library and Gmail-Lite, which uses
the library to give Gan his simple HTML interface.

Getting and Installing the Library.


Gmailer can be downloaded from http://gmail-lite.sourceforge.net/.At
the time of this writing, Gmailer is at version 0.6.9a. The Gmailer homepage
looks like Figure 7-1.

FIGURE7-1: The Gmailer homepage

Once downloaded, you need only unpack it into the directory your script will run
in. You will also need cURL, from http://curl.haxx.se/, and the OpenSSL
package from http://www.openssl.org/, but it is very likely that you will already have
those installed as a matter of course. If not, follow the instructions on their web-
sites to download and install them properly. To save time, worry about those only
if any error messages tell you to.
Free download pdf