A brief tutorial on PHP programming
Table of contents
Preface . 4
Chapter 1 Introduction to PHP .... 6
Section 1 Introduction to PHP .. 6
1. How Web programs work... 6
2. Introduction to PHP .... 9
Section 2 Setting up the PHP development environment... 9
1. Programming, selection of software development tools .. 9
2. Installation and configuration of server software 10
Section 3 Experiment 1 Construction of PHP development environment . 11
0. Experiment purpose... 11
1. Experiment preparation... 12
2. PHP installation and configuration . 12
3.Apache installation and configuration. 12
4. Test Apache’s support for PHP.... 13
5. Installation of MySQL software and startup of services. 14
Chapter 2 Web Client Technology 16
Section 1 Working Principle of Web Client 16
1. How the browser works . 16
2.How HTML works . 16
3. How JavaScript works... 20
Section 2 Basic Technology of Web Client 21
Section 3 Experiment 2 Web Client Technology .... 34
Chapter 3 PHP Syntax .. 36
Section 1 Basic Grammar 36
1. The simplest PHP program 36
2. Analyze the simplest PHP program .. 37
3. Commonly used variable processing functions .. 37
4. Methods to access client variables.... 40
5. Scope of PHP variables . 41
6. Super global variable array . 41
7. Data type... 43
8.Operator .. 47
9. Function . 48
10. Application of session 51
Section 2 PHP Programming Essentials .. 53
1. Process control structure 53
2. PHP embedded in HTML or JavaScript.... 53
3. Use PHP to output HTML or JavaScript 55
4. Self-service program.... 56
Section 3 Experiment 2 PHP syntax experiment... 57
Chapter 4 MySQL Database... 58
Section 1 Basic use of MySQL .. 58
1. Basic knowledge of database . 58
2.Introduction to MySQL .. 58
3.MySQL command operations 58
4.MySQL graphical client tool software . 61
Section 2 Using PHP to control MySQL . 62
1.PHP data type: resource type... 62
2. Functions in PHP used to manipulate MySQL database. 63
3. PHP controls MySQL instance .. 67
4. Common column types in MySQL . 68
5. Operators and functions used in queries . 70
Section 3 Experiment 4 MySQL Experiment 77
1. MySQL basic command exercises . 77
2.Use phpMyAdmin .. 79
Chapter 5 Web Software Development .... 80
Section 1 System Analysis and System Design 80
1. User needs... 80
2. System analysis and design . 81
Section 2 System Implementation and System Testing 89
Section 3 Experiment... 89
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