HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
Are you one of those people who think there isn't anything substantial that you can do in only 10 minutes? Think again. Sams Teach Yourself PHP in 10 Minutes is a no-fluff, just-the-answers guide to building dynamic websites using PHP. Broken into 10 minute lessons, you will gain a rapid working knowledge of PHP 5 and be able to immediately put that knowledge to use in practical applications. Who ever would have thought there was so much you could do in just 10 minutes!
Introduction.
I. PHP FOUNDATIONS.
1. Getting to Know PHP.
PHP Basics.
Your First Script.
2. Variables.
Understanding Variables.
Data Types.
3. Flow Control.
Conditional Statements.
Loops.
4. Functions.
Using Functions.
Arguments and Return Values.
Using Library Files.
II. WORKING WITH DATA.
5. Working with Numbers.
Arithmetic.
Numeric Data Types.
Numeric Functions.
6. Working with Strings.
Anatomy of a String.
Formatting Strings.
String Functions.
7. Working with Arrays.
What Is an Array?
Array Functions.
Multidimensional Arrays.
8. Regular Expressions.
Introducing Regular Expressions.
Using ereg.
9. Working with Dates and Times.
Date Formats.
Working with Timestamps.
10. Using Classes.
Object-Oriented PHP.
What Is a Class?
Creating and Using Objects.
III. THE WEB ENVIRONMENT.
11. Processing HTML Forms.
Submitting a Form to PHP.
Processing a Form with PHP.
Creating a Form Mail Script.
12. Generating Dynamic HTML.
Setting Default Values.
Creating Form Elements.
13. Form Validation.
Enforcing Required Fields.
Displaying Validation Warnings.
Enforcing Data Rules.
Highlighting Fields That Require Attention.
14. Cookies and Sessions.
Cookies.
Sessions.
15. User Authentication.
Types of Authentication.
Building an Authentication System.
16. Communicating with the Web Server.
HTTP Headers.
Server Environment Variables.
IV. USING OTHER SERVICES FROM PHP.
17. Filesystem Access.
Managing Files.
Reading and Writing Files.
18. Host Program Execution.
Executing Host Programs.
The Host Environment.
Security Considerations.
19. Using a MySQL Database.
Using MySQL.
Executing SQL Statements.
Debugging SQL.
20. Database Abstraction.
The PEAR DB Class.
Database Portability Issues.
21. Running PHP on the Command Line.
The Command-Line Environment.
Writing Scripts for the Command Line.
22. Error Handling .
Error Reporting.
V. CONFIGURING AND EXTENDING PHP.
23. PHP Configuration.
Configuration Settings.
Configuration Directives.
Loadable Modules.
24. PHP Security.
Safe Mode.
Other Security Features.
25. Using PEAR.
Introducing PEAR.
Using PEAR.
VI. APPENDIX.
Appendix A: Installing PHP.
Linux/Unix Installation.
Windows Installation.
Troubleshooting.