PHP Cookbook, from O'Reilly | 2 | WebReference

PHP Cookbook, from O'Reilly | 2

PHP Cookbook

PHP Cookbook Book Cover

Chapter 11: Web Automation

The PHP Cookbook is a collection of problems, solutions, and practical examples for PHP programmers. The book contains a unique and extensive collection of best practices for everyday PHP programming dilemmas. For every problem addressed in the book, there's a worked-out solution or "recipe" -- short, focused pieces of code that you can insert directly into your applications. But this book offers more than cut-and-paste code. You also get explanations of how and why the code works, so you can learn to adapt the problem-solving techniques to similar situations. This book contains an impressive collection of useful code for PHP programmers, from novices to advanced practitioners. Instead of poking around mailing lists, online documentation, and other sources, you can rely on the PHP Cookbook to provide quick solutions to common problems, so you can spend your time on those out-of-the-ordinary problems specific to your application.

Excerpt Contents

  • Introduction
  • Fetching a URL with the GET Method
  • Fetching a URL with the POST Method
  • Fetching a URL with Cookies
  • Fetching a URL with Headers
  • Fetching an HTTPS URL
  • Debugging the Raw HTTP Exchange
  • Marking Up a Web Page
  • Extracting Links from an HTML File
  • Converting ASCII to HTML
  • Converting HTML to ASCII
  • Removing HTML and PHP Tags
  • Using Smarty Templates
  • Parsing a Web Server Log File
  • Program: Finding Stale Links
  • Program: Finding Fresh Links

Created: March 27, 2003
Revised: March 27, 2003

URL: https://webreference.com/programming/php/chap11