Sie sind auf Seite 1von 3

Table of Contents

I. Introduction 1. About this book 2. Downloading, installing, configuring PHP 3. Programming in a Web environment II. The Language 4. Variables and data types 5. Operators 6. Expressions and Statements
Loops Condition

63-88

7. Functions How They Work Passing Arguments Variable Scope and Lifetime Nested Functions and Recursion Assigning Functions to Variables 8. Arrays Starting Simply Looping Through an Array A Sequentially Indexed Array Non-sequentially Indexed Arrays A Few Words About next() and prev()
array_walk()

Associative Arrays Multi-Dimensional Arrays Sorting Functions Using Arrays with Form Elements 9. Objects and OOP Object-Oriented Programming Defining a Class Instantiating the Class Constructors Inheritance 10. String manipulation and regular expressions III. Applying PHP 11. Non-relational databases What is a database? Databases and CSV dbm - a fast, record-based, flat-file database Another interface to dbm - DBA Our telephone book interface Error! Bookmark not defined. 12. SQL DBMS engines 13. Using LDAP 14. Serving XML documents 15. Graphic content creation 16. PHP connectivity Utilizing TCP The whois function The Frontend Extending the Frontend

Is my domain still available? A web client 17. Sending E-mail 18. Cookies What are cookies? Cookies in PHP Getting started Deleting a cookie Common pitfalls What is your name? 19. Error handling and debugging 20. Security issues 21. Magic with quotes What are magic quotes? Defining the scope Magic quotes explained Sybase extension Applying magic_quotes Two helper functions An alternative approach Summary 22. Templates IV. Sample Applications 23. A shopping cart application 24. An OO site V. Advanced Topics 25. Version migration 26. When should I avoid regular expression functions VI. Appendix A. Reference B. Open Source Software C. PHP in non-UNIX environments D. Notes on PHP4/Zend Basic concept The binary compiler The optimizer New features in PHP4 PHP4 and overall portability E. Other Resource

List of Examples
11-1. edit_form() function 16-1. Initiating a TCP connection 16-2. Exchanging messages with a SMTP server 16-3. whois_request() function 16-4. Simple whois frontend (HTML code) 16-5. Simple whois frontend (PHP code) 16-6. Source code of the simple whois front-end 16-7. Allowing server choice 16-8. Changed PHP code 16-9. a function to tell the TLD 16-10. using an array to store information about whois server 16-11. is_domain_available 16-12. http class framework 16-13. Full http class 16-14. Using the http class 18-1. counting the hits per visitor

18-2. setcookie fails due to sent data before it 18-3. specifying the expire time 18-4. Deleting the cookie username 18-5. deleting and setting a new cookie 18-6. Identifying a visitor 21-1. addslashes() 21-2. output 21-3. output with enabled magic_quotes_sybase 21-4. The ugly way 21-5. automating the conversion process 21-6. using get_magic_quotes_gpc 21-7. using magic_quotes_runtime effectively 21-8. applying stripslashes() 21-9. two helper function 21-10. using sprintf()

Das könnte Ihnen auch gefallen