Assumptions

These hacks do assume a little more than an adventurous spirit and a researcher’s tenacity. We assume that you already have some programming background or are willing to learn the basics as you go along. In fact, we’ve been happy to hear about so many readers picking up and learning a little programming through the hacks in the previous edition of this book; learning to program is so much easier if you have a particular task in mind.

You’ll need to type in (or download) programs or scripts and run them from the command line (that’s Terminal in Mac OS X or the DOS command window in Windows). Some are run as CGI scripts, bits of dynamic content running on your web site and talked to through your web browser. For more information on running hacks on the command line and as CGI scripts in your browser, see “How to Run the Hacks” in the Preface.

Almost all of the hacks are written in Perl (http://www.perl.com), with a few Python (http://www.python.org), PHP (http://www.php.net), Java (http://java.sun.com), and .NET (http://www.microsoft.com/net) programs sprinkled throughout. To run a particular hack, you’ll need the appropriate language to be available on your computer. Since instruction on installing and using these languages is beyond the scope of this book, you should start with a visit to the language’s home page and might consider picking up a copy of one of O’Reilly’s fine selection of books (http://www.oreilly.com). Learning Perl by Randal L. Schwartz and Tom Phoenix ...

Get Google Hacks, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.