Table of Contents
Chapter 1 Introduction to php 1
1.1. What can php do? 1
1.2. A brief history of php development 2
1.3. Install php 7
1.4. php overview 9
Chapter 2 Language Basics 18
2.1. Lexical Structure 18
2.2. Data type 25
2.3. Variable 32
2.4. Expressions and Operators 36
2.5. Flow control statements 49
2.6. Contains code 57
2.7. Embedding php 59 in web pages
Chapter 3 Functions 63
3.1. Function call 63
3.2. Defining functions 64
3.3. Variable scope 66
3.4. Function parameters 68
.3.5. Return value 71
3.6. Variable functions 72
3.7. Anonymous function 73
Chapter 4 Strings 74
4.1. Quoting string constants 74
4.2. Output string 78
4.3. Accessing a single character 82
4.4. Organize strings 82
4.5. Encoding and escaping 83
4.6. Compare strings 89
4.7. Processing and Finding Strings 91
4.8. Regular Expressions 97
4.9. Styled Regular Expressions 101
4.10. perl compatible regular expressions 106
Chapter 5 Arrays 119
5.1. Indexed Arrays and Associative Arrays 119
5.2. Identify array elements 120
5.3. Storing data in an array 120
5.4. Multidimensional array 123
5.5. Extract multiple values 123
5.6. Converting between arrays and variables 127
5.7. Traverse array 128
5.8. Sort 133
5.9. Acts on the entire array 138
5.10. Using array 140
Chapter 6 Object 143
6.1. Terminology 144
6.2. Create an object 144
6.3. Accessing object properties and methods 145
6.4. Declare a class 146
6.5. Introspection 153
6.6. Serialization 159
Chapter 7 web technology 164
7.1. http basics 164
7.2. Variable 165
7.3. Server information 166
7.4. Form processing 168
7.5. Set response header 182
7.6. Maintain status 185
7.7. ssl 195
Chapter 8 Database 196
8.1. Use php to access the database 196
8.2. Relational databases and 198
8.3. pear db basics 199
8.4. Advanced Database Technology 205
8.5. Sample program 211
Chapter 9 Graphics 225
9.1. Embed images in pages 225
9.2. gd extension 226
9.3. Basic concepts of images 227
9.4. Creating and drawing images 228
9.6. Dynamically create buttons 236
9.7. Zoom image 239
9.8. Color processing 240
Chapter 10 pdf 246
10.1. pdf extension 246
10.2. Documents and Pages 246
10.3. Text 248
xml 261
11.1. Getting Started 261
11.2. Generate xml 263
11.3. Parse xml 264
11.4. Parse xml with dom 277
11.5. Use simplexml to parse xml 277
11.6. Convert xml using xslt 278
11.7. web services 280
Chapter 12 Security 285
12.1. Input filtering 285
12.2. escape output 290
12.3. Cross-site scripting attacks 293
12.4. session forgery 294
12.5. File upload 295
12.6. File access permissions 296
12.7. php code 299
12.8. shell command 300
12.9. More information 301
12.10. Summary of safety points 301
Chapter 13 Application Technology 302
13.1. Codebase 302
13.2. Template system 303
13.3. Output processing 306
13.4. Error handling 308
13.5. Performance Tuning 313
Chapter 14 Extending PHP 321
14.1. Architecture Overview 321
14.2. What it takes to write an extension 322
14.3. Create your first extension 323
14.4. config.m4 file 333
14.5. Memory Management 336
14.6. type pval/zval data type 338
14.7. Parameter handling 342
14.8. Return value 345
14.9. Quote 349
14.10. Global variables 350
14.11. Create variables 354
14.12. Extended ini items 355
14.13. Resources 357
14.14. Next/Aftermention 359
Chapter 15 PHP on Windows 359
15.1. Install and configure php 359 under windows
15.2. Writing portable code for windows and unix platforms 363
15.3. Interacting with com 366
15.4. Data Source Interaction 372
Appendix a Function Reference 377
Statement:
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn