The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition – Free 207 Page eBook

The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition - Free 207 Page eBook

Preview “Free eBook: The PHP Anthology: 101 Essential Tips, Tricks & Hacks, 2nd Edition” from SitePoint. If you’ve already gotten your feet wet with PHP and completed your first project or two with PHP, then this is the book for you.

Description
If you have the drive to progress your skills or improve your web application through concepts such as reusable components, caching performance, or web services, then you will find this book to be an excellent primer.

Contents
Using Databases with PDO (PHP Data Objects)

  • What is PDO?
  • How do I access a database?
  • How do I fetch data from a table?
  • How do I resolve errors in my SQL queries?
  • How do I add data to, or modify data in, my database?
  • How do I protect my web site from an SQL injection attack?
  • How do I create flexible SQL statements?
  • How do I find out how many rows I’ve touched?
  • How do I find out a new INSERT’s row number in an autoincrementing field?
  • How do I search my table?
  • How do I work with transactions?
  • How do I use stored procedures with PDO?
  • How do I back up my database?

Access Control

  • How do I use HTTP authentication?
  • How do I use sessions?
  • How do I create a session class?
  • How do I create a class to control access to a section of the site?
  • How do I build a registration system?
  • How do I deal with members who forget their passwords?
  • How do I let users change their passwords?
  • How to do I build a permissions system?
  • How do I store sessions in a database?

Caching

  • How do I prevent web browsers from caching a page?
  • How do I control client-side caching?
  • How do I examine HTTP headers in my browser?
  • How do I cache file downloads with Internet Explorer?
  • How do I use output buffering for server-side caching?
  • How do I cache just the parts of a page that change infrequently?
  • How do I use PEAR::Cache_Lite for server-side caching?
  • What configuration options does Cache_Lite support?
  • How do I purge the Cache_Lite cache?
  • How do I cache function calls?

Book Details

Author(s): Davey Shafik, Matthew Weier O’Phinney, Ligaya Turmelle, Harry Fuecks, and Ben Balbo
Format(s): PDF
File size: 1.84 MB
Number of pages: 207
Link: Download.

Leave a Reply