PHP Programming (Second Edition) Sample Chapter
Classify:php e-bookViews:2868245Download:310
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

Latest courses

See more
  • [Web front-end] Node.js quick start
    [Web front-end] Node.js quick start
    This course is specially designed for beginners and aims to help students quickly master the basic knowledge and core technologies of Node.js. The course starts with the installation and environment configuration of Node.js, and gradually analyzes its asynchronous programming model, module system and event-driven mechanism in depth. Through a wealth of practical cases, students will learn how to use Node.js to build an efficient and stable web server, process HTTP requests and responses, and perform file operations and database interactions. In addition, the course will also introduce typical application scenarios of Node.js in front-end development, helping students quickly improve their practical capabilities and easily cope with the challenges of front-end development.
  • Complete collection of foreign web development full-stack courses
    Complete collection of foreign web development full-stack courses
    This course is a comprehensive tutorial covering HTML, CSS, JavaScript, Vue.js, React, Flutter and mobile APP development. From basic web page production to complex front-end and back-end interactions, to practical development of mobile applications, the courses are rich in content and highly practical. Through a series of practical projects, students will gain an in-depth understanding of and master various development skills and quickly grow into full-stack development engineers. Both beginners and experienced developers can benefit from it. Through the study of this course, you will have the ability to independently develop web applications and mobile applications, laying a solid foundation for future career development.
  • Go language practical GraphQL
    Go language practical GraphQL
    This course is designed to help learners master how to use Go language to implement GraphQL services. The course starts with the basic knowledge of GraphQL, and deeply analyzes the characteristics and advantages of its data query language. Then, combined with the characteristics of the Go language, it explains in detail how to build a GraphQL server, process requests, define data patterns, etc. Through rich practical cases, learners will learn how to integrate GraphQL in actual projects to improve the flexibility and efficiency of data interaction. The course is suitable for developers with a certain foundation in Go language and is a must-have for building efficient and modern APIs.
  • 550W fan master learns JavaScript from scratch step by step
    550W fan master learns JavaScript from scratch step by step
    This course is specially designed for beginners and is taught by Google bosses. The course starts with the basic knowledge of JavaScript and gradually deepens it, covering syntax, functions, objects, event processing, etc. Through vivid cases and practical exercises, students can quickly master the core skills of JavaScript. The boss will personally answer students' questions and share programming experience, allowing students to grow into JavaScript masters in a relaxed and pleasant atmosphere. Whether you are a novice at programming or a developer looking to improve your skills, this course will be your best choice for learning JavaScript.
  • Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours
    Python master Mosh, a beginner with zero basic knowledge can get started in 6 hours
    This course takes you on a programming journey. Starting from scratch, this 6-hour course will guide you through the fundamentals and advanced concepts of Python. Whether you're a beginner or an experienced programmer looking to improve your skills, Mosh's in-depth explanations and clear teaching methods will get you up to speed with Python quickly. Learn more about variables, data types, conditionals, loops, functions, objects, and modules and solidify your understanding with hands-on exercises. This course is ideal for learning Python and preparing you for a variety of career fields. Mosh's expertise and passion for education will give you the confidence to start on your path to becoming a proficient Python developer.