I. PROGRAMMING WITH PHP.1. An Introduction to PHP.
The Origins of PHP. What Makes PHP Better than Its Alternatives. Interfaces to External Systems. How PHP Works with the Web Server. Hardware and Software Requirements. Installation on Apache for UNIX. Installation on IIS for Windows NT. Editing Scripts. Algorithms. What a PHP Script Looks Like. Saving Data for Later. Receiving User Input. Choosing between Alternatives. Repeating Code. Conclusion.2. Variables, Operators, and Expressions.
Identifiers. Data Types. Variable Creation and Scope. Assigning Values to Variables. Retrieving Values. Freeing Memory. Constants. Operators. Logical and Relational Operators. Bitwise Operators. Miscellaneous Operators. Assignment Operators. Expressions.3. Control Statements.
True and False. The if Statement. The ? Operator. The switch Statement. Loops. The while Statement. The break Statement. The continue Statement. The do while Statement. The for Statement. The foreach Statement. exit, die, and return. Evaluation of Boolean Expressions.4. Functions.
Declaring a Function. The return Statement. Scope and the global Statement. Arguments. Recursion. Dynamic Function Calls.5. Arrays.
Single-Dimensional Arrays. Indexing Arrays. Initializing Arrays. Multidimensional Arrays. Casting Arrays. Referencing Arrays Inside Strings.6. Classes and Objects.
Defining a Class. Creating an Object. Accessing Properties and Methods.7. I/O and Disk Access.
HTTP Connections. Writing to the Browser. Output Buffering. Environment Variables. Getting Input from Forms. Cookies. File Uploads. PUT Method Requests. Reading and Writing to Files. Sessions. The include and require Functions.
II. FUNCTIONAL REFERENCE.8. I/O Functions.
Sending Text to the Browser. Output Buffering. Files. Compressed File Functions. POSIX. Debugging. Session Handling. Shell Commands. HTTP Headers. Network I/O. FTP.9. Data Functions.
Data Types, Constants, and Variables. Arrays. Hashing. Strings. Encoding and Decoding. Encryption. Regular Expressions. Perl-Compatible Regular Expressions.10. Mathematical Functions.
Common Math. Random Numbers. Arbitrary-Precision Numbers.11. Time, Date, and Configuration Functions.
Time and Date. Alternative Calendars. Configuration.12. Image Functions.
Analyzing Images. Creating JPEG, PNG, and WBMP Images.13. Database Functions.
dBase. DBM-style Database Abstraction. filePro. Informix. InterBase. mSQL. MySQL. ODBC. Oracle. Postgres. Sybase.14. Miscellaneous Functions.
Apache. Aspell. COM. Gettext. IMAP. Java. LDAP. Semaphores. Shared Memory. SNMP. WDDX. XML.
III. ALGORITHMS.15. Sorting, Searching, and Random Numbers.
Sorting. Bubble Sort. Quicksort. Built-In Sorting Functions. Sorting with a Comparison Function. Searching. Indexing. Random Numbers. Random Identifiers. Choosing Banner Ads.16. Parsing and String Evaluation.
Tokenizing. Regular Expressions. Defining Regular Expressions. Using Regular Expressions in PHP Scripts.17. Database Integration.
Building HTML Tables from SQL Queries. Tracking Visitors with Session Identifiers. Storing Content in a Database. Database Abstraction Layers.18. Network.
HTTP Authentication. Controlling Browser Cache. Setting Document Type. Email with Attachments. Verifying an Email Address.19. Generating Graphics.
Dynamic Buttons. Generating Graphs on the Fly. Bar Graphs. Pie Charts. Stretching Single-Pixel Images.
IV. SOFTWARE ENGINEERING.20. Integration with HTML.
Sprinkling PHP within an HTML Document. Using PHP to Output All HTML. Separating HTML from PHP. Creating <W9S> Fields. Passing Arrays in Forms.21. Design.
Writing Requirements Specifications. Writing Design Documents. Using CVS. Modularization Using include. FreeEnergy. FastTemplate. Midgard. Ariadne. Preserving State and Providing Security. Cloaking. URLs Friendly to Search Engines. Running a Script Regularly.22. Efficiency and Debugging.
Measuring Performance. Fetching Database Query Results. When to Store Content in a Database. In-Line Debugging. Remote Debugging. Simulating HTTP Connections.Appendix A.