Practical PHP Programming

Free online php book by Paul Hudson. This book assumes no PHP programming skill at all – you’ll be taught from scratch in that respect. However, I will be using terms like “variable”, “function”, and “loop” freely, so any prior programming experience you have will help enormously.


If you’re coming from the world of HTML, PHP is a great step forward to make. HTML by itself, as you may have discovered, is a very simple language, which as a result leaves you with very simple pages. Think of using HTML like owning a car with no engine – the car might look great, but it will never actually do very much. PHP can take your sites into the fast lane by allowing you to turn your static pages into exciting, ever-changing pages with only a little thinking. In essence, it’s like putting a V6 engine into your car shell.

Programmers coming from the world of Perl, you should prepare yourself for a surprise: Perl isn’t the only good language out there! PHP is much easier on the eye than Perl, and often faster both in terms of development time and execution time. However, you have to make one big sacrifice: the major difference between PHP and Perl is that PHP has much less “one-line magic” than Perl. Regular contributors to the Obfuscated Perl Contest may find that PHP is probably not for them!

Those of you already programming in PHP and looking to extend your knowledge, then this book is ideal – you will find information on how to use the more advanced features (IMAP, XML, and Sockets), tips and tricks on how to program better PHP, and a great reference too.

If you’re not a HTML programmer and not a Perl programmer, then relax – all the HTML and CGI information you need to know to use PHP is covered here.

Table of Contents

  • Introducing PHP
  • Simple variables and operators
  • Functions
  • Arrays
  • Objects
  • HTML Forms
  • Files
  • Databases
  • Cookies and Sessions
  • Multimedia
  • XML & XSLT
  • Output Buffering
  • Java and COM
  • Networks
  • Miscellaneous topics
  • Security concerns
  • Performance
  • Writing PHP
  • Writing extensions
  • Alternative PHP uses
  • Practical PHP
  • Bringing it to a close
  • Answers to Exercises
  • The future of PHP

Book Details

Author(s): –
Format(s): HTML
Link: Read online.

One Response to “Practical PHP Programming”

  1. Lasse says:

    would be a very good read on my phone :=)
    any chance of ever getting a pdf or epub format?

    free knowledge ftw :=)

Leave a Reply