SKIP THE SHIPPING
Use code NOSHIP during checkout to save 40% on eligible eBooks, now through January 5. Shop now.
Register your product to gain access to bonus material or receive a coupon.
PHP By Example will provide web-publishing oriented individuals the opportunity to learn a new, flexible Internet scripting language, PHP. This book will take the reader through step-by-step examples that will help them gain an understanding of PHP. PHP By Example will:
Introduction.
I. GETTING STARTED WITH PROGRAMMING IN HP.
1. Welcome to PHP.Why PHP? If You're New to Programming…. Writing a Basic PHP Program. Server-Side Versus Client-Side Scripting. Running Your New Program.
2. Variables and Constants.Introduction to Variables and Constants. Declaration and Assignment. Variable Types. Scope. Type Casting. Variable References.
3. Program Input and Output.Revisiting Output. Program Input.
4. Arithmetic.Basic Arithmetic. Order of Operations. Compound Operators. Patterns and Arithmetic.
5. String Manipulation.Before We Begin. The String Concatenation Operator. String Functions. Pattern Matching with Regular Expressions.
II. CONTROL STRUCTURES.
6. The if, elseif, and else Statements.Basic Conditionals. Expressing Multiple Conditions. Short Circuit Evaluation.
7. The switch Statement.Introducing the switch Statement. Multifunction Pages.
8. Using while and do-while.The while Statement. The do-while Statement. The break and exit Statements. What's Next.
9. Using for and foreach.The for Statement. Syntax. Comparing for and while. The foreach Statement.
III. ORGANIZATION AND OPTIMIZATION OF YOUR PROGRAM.
10. Functions.Understanding Functions. Passing Values to and from Functions. Referenced Parameters. Recursive Functions.
11. Classes and Objects.What Are Classes and Objects? Object-Oriented Programming Concepts. serialize() and unserialize(). Subclasses and Inheritance. What's Next.
12. Using Include Files.Understanding include. Why Use includes? What's Next.
IV. ADVANCED PHP FEATURES.
13. Creating Dynamic Content with PHP and a MySQL Database.A Word about Databases. The Idea Behind Database-Driven Content. Designing and Creating a Table in MySQL. Using MySQL to Make Your Web Site Come Alive.
14. Using PHP for Password ProtectionGoals of Authentication with PHP. Setting Up the Basics. Verifying the Username and Password. Practical Techniques. Using HTTP Header Authentication. What's Next.
15. Allowing Visitors to Upload Files.File Upload Process Overview. Creating a File Upload Form. Handling the File Upload Request. What's Next.
16. Cookies.Cookie Overview. Setting Cookies. What's Next.
17. Putting It All Together.Writing a Full Program. Setting Up the Database. The Guestbook Program. What's Next.
V. APPENDIXES.
Appendix A. Debugging and Error Handling.Understanding Error Messages. Variable Tracking.
Glossary.