Home > Store

Sams Teach Yourself PHP in 24 Hours, 2nd Edition

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself PHP in 24 Hours, 2nd Edition


  • Sorry, this book is no longer in print.
Not for Sale


  • Copyright 2002
  • Dimensions: 7-3/8" x 9-1/8"
  • Pages: 528
  • Edition: 2nd
  • Book
  • ISBN-10: 0-672-32311-7
  • ISBN-13: 978-0-672-32311-9

Consisting of 24 one-hour lessons, Sams Teach Yourself PHP in 24 Hours is divided into five sections that guide the reader through the language from the basics to the advanced functions.

The first section of the book teaches the fundamentals of PHP. And then, building upon what has been taught in the first section, sections two through four shows the reader how to apply that knowledge in order to interact with the user by creating and managing forms, cookies and authentication. It also teaches how to access databases and how to integrate system components, e-mail, LDAP, network sockets and much more.



Source code for the examples developed in the book - 74 kb -- code.zip

Sample Content

Online Sample Chapters

PHP Database Integration—SQL

Working with Files in PHP

Working with Forms in PHP

Working with PHP's DBA Functions

Table of Contents



Hour 1. PHP: From Homepage to Portal.
Hour 2. Installing PHP.
Hour 3. A First Script.


Hour 4. The Building Blocks.
Hour 5. Going with the Flow.
Hour 6. Functions.
Hour 7. Arrays.
Hour 8. Objects.


Hour 9. Working with Forms.
Hour 10. Working with Files.
Hour 11. Working with DBM Functions.
Hour 12. Database Integration[md]SQL.
Hour 13. Beyond the Box.
Hour 14. Images On-the-Fly.
Hour 15. Working with Dates and Times.
Hour 16. Working with Data.
Hour 17. Working with Strings.
Hour 18. Working with Regular Expressions.
Hour 19. Saving State with Cookies and Query Strings.
Hour 20. Saving State with Session Functions.
Hour 21. Working with the Server Environment.
Hour 22. PHP4 and XML.


Hour 23. Smarty: A Template Engine.
Hour 24. An Example: Page.inc.php.


Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership