How to mine in desert
wood pick digs stone to make stone pick.
stone pick digs iron ore, iron ingot to make iron pick.
iron pick digs gold ore, gold ingot to make Golden Apple,
iron pick digs diamond
in the early stage, make a bed quickly, sleep in the dark, and when you die, you will be resurrected by the bed
make a hoe to hoe wheat or other food by the water
this is basically stable
it will develop slowly in the future
1. Stone PICK: as iron ore needs at least stone pick to dig (DIAMOND ORE needs iron pick), so more stone pick should be prepared when going down the mine. If there are only wooden pickaxes at the beginning, it is recommended to carry a workbench with you, so that you can synthesize stone pickaxes after digging round stones
Torch: torch is composed of coal mine and stick. In the beginning, no coal mining partner could get coal by burning logs in a furnace3. Food: players in peace mode don't take it. Players in difficult mode, if they don't want to be scared by zombies, Xiao and coolie who jump out every minute, bring some food. It's enough to bring some wheat in the early stage
4. Water: in case of magma excavation, it can be immediately watered out to ensure survival
Other: furnace, worktable, furnace can melt iron ingot and other ores, iron ingot can make pickaxe; The worktable can make us better survive in the underground, and even place a small home in the mineHow can a novice mine without getting lost:
1. First, dig a 2x2 square, with Steve (you) facing the torch
The next torches are all inserted on the left side (or on the right side), and then the main mine is excavated to dig out the three square blocks in front (that is, the three square blocks circled by yellow triangle in the figure)Typical PHP moles and project practice
Chapter 1 essential foundation of PHP development
Chapter 1 Fundamentals of web development 2
teaching video: 26 minutes
1.1 introction to PHP 2
1.1.1 what are the characteristics of PHP 2
1.1.2 what can PHP do 3
1.1.3 what technology should be used to build PHP environment 4
1.2 HTML basis 6
1.2.1 HTML document basic structure 6
1.2.2 simple HTML Example 6
1.2.3 creating list on Web page 7
1.2.4 creating image and link 9
1.2.5 creating form 10
1.3 JavaScript foundation 11
1.3.1 embedding method of JavaScript in HTML 11
1.3.2 controlling pop-up page of cookie 12
1.3.3 client data storage mechanism cookie 15
1.3.4 client event driver 17
1.4 summary 19
. Chapter 2 development Environment installation and configuration 21
teaching video: 63 minutes
2.1 installation and configuration of Linux system 21
2.1.1 basic configuration installation 21
2.1.2 disk partition setting 22
2.1.3 boot loading system setting 24
2.1.4 development package installation and modification of login configuration 25
2.2 installation and configuration of Apache server 26
2.2.1 installation of web server Apache 26
2.2.2 Move and configure web server Apache 27
2.2.3 test web server Apache 28
2.3 install and configure MySQL database 28
2.3.1 install MySQL database 28
2.3.2 configure MySQL database 29
2.3.3 test MySQL database 30
2.4 install and configure PHP 31
2.4.1 download PHP related components 31
2.4.2 install PHP related package 32
2.4.3 install and edit Translate PHP 34
2.4.4 modify Apache configuration file 35
2.4.5 test PHP 35
2.5 summary 36
Chapter 3 PHP language reference 37
teaching video: 29 minutes
3.1 type 37
3.1.1 type classification 37
3.1.2 type function 38
3.2 variable 39
3.2.1 variable basis 39
3.2.2 variable 40
3.3 operator and expression 42
3.3.1 Arithmetic expression 42
3.3.2 string expression 43
3.3.3 logical operation expression 44
3.3.4 other operator expression 44
3.4 process control 46
3.4.1 if... Else judgment 46
3.4.2 for loop 47
3.4.3 switch judgment 48
3.4.4 other process control 49
3.5 function Class and object 50
3.5.1 PHP function 50
3.5.2 function and variable scope 51
3.5.3 class and object 52
3.6 summary 54
Chapter 4 PHP simple example 55
teaching video: 24 minutes
4.1.1 the origin of Hello World 55
4.1.2 PHP script embedded in HTML document 55
4.1.3 preparation knowledge 56
4.1.4 Hello wo Rld program implementation 57
4.2 visitor counter 58
4.2.1 visitor counter system architecture 58
4.2.2 creating counter function 59
4.2.3 counter complete implementation 60
4.3 combined condition query example 61
4.3.1 combined condition query system architecture 61
4.3.2 database design 62
4.3.3 functional planning of condition query instance 63
4.3.4 condition search page Face 63
4.3.5 result processing and display file 65
4.4 summary 67
Chapter 2 development and application of PHP typical mole
Chapter 5 message board mole (form + session + verification + pagination) 70
teaching video: 33 minutes
5.1 basic design 70
5.1.1 function description 70
5.1.2 process description 71
5.2 database design 72
5.2.1 visitor message information table 73
5.2.2 administrator reply message form 73
5.3 message browsing 73
5.3.1 message browsing page design 73
5.3.2 message browsing program design 76
5.3.3 paging technology 77
5.4 message submission 79
5.4.1 message submission page design 79
5.4.2 message validity verification 81
5.4.3 message content processing 82
5.5 message management 83
5.5.1 message management Manager login 83
5.5.2 message reply 84
5.5.3 message deletion 86
5.6 summary 86
Chapter 6 Registration and login verification mole (verification + regular expression + SQL injection) 87
teaching video: 32 minutes
6.1 user information table design 87
6.2 interface design 88
6.2.1 user registration interface design 88
6.2.2 login verification interface design 90
6.3 User data validation 91
6.3.1 JavaScript general filter function 92
6.3.2 form data validation 93
6.4 server data validation 94
6.4.1 regular expression judgment 95
6.4.2 user name plication detection 97
6.4.3 SQL injection verification 99
6.5 registered user login 101
6.5.1 client user login verification 101
6.5.1 5.2 server user login status verification 102
6.5.3 mark login status 104
6.6 summary 106
Chapter 7 upload and download mole (PHP anti-theft chain + ActiveX object control) 107
teaching video: 31 minutes
7.1 upload and download principle 107
7.1.1 PHP file upload principle and implementation 107
7.1.2 PHP file download principle and implementation 109
7.1.2/ >7.2 file size limit and exception handling 111
7.2.1 JavaScript file size verification 111
7.2.2 parameters involved in PHP upload file 113
7.3 database design 114
7.4 file upload program 114
7.4.1 client type detection of upload file 115
7.4.2 server-side processing of upload file 115
7.4.3 file information to database 117
7.5 file download program 118
7.5.1 file download list 119
7.5.2 file download program implementation 122
7.6 summary 123
Chapter 8 automatic content collector mole (crawler + FCKeditor editor + task relay) 124
teaching video: 30 minutes
8.1 automatic content collector function and collection principle 124
8.1.1 URL address list analysis 125
8.1.2 Get content page information 125
8.1.3 delay function 126
8.1.4 get all listing forms 126
8.1.5 paging analysis 127
8.2 database design 127
8.2.1 rule storage table design 128
8.2.2 collection content table design 128
8.3 collector mole interface design 129
8.3.1 collector management interface 129
8.3.2 collection content list interface 131
8.3.2 />8.4 program implementation of automatic content collector 131
8.4.1 collection rule management program 132
8.4.2 crawler program 135
8.4.3 getting the list of content to be collected 137
8.4.4 content editor 139
8.5 collection exception and handling 141
8.5.1 solution to capture timeout 141
8.5.2 task relay mode 142
8.6 summary 143
Chapter 9 schele mole (PHP) +Ajax + XML) 144
teaching video: 30 minutes
9.1 Ajax foundation 144
9.1.1 HTTP request and response foundation 144
9.1.2 XMLHttpRequest object 146
9.1.3 send request to server 147
9.2 Ajax server script 148
9.2.1 Ajax communicate with XML file 148
9.2.2 PHP generate XML 151
9.2.3 database driven Ajax 152
9.2.3/ >9.3 calendar database design 154
9.4 calendar program design 155
9.4.1 PHP generated calendar 155
9.4.2 calendar XML document 158
9.4.3 perfect realization of calendar 159
9.5 calendar management program 163
9.5.1 add event interface 163
9.5.2 add event program 165
9.5.3 manage event interface 166
9.5.4 manage event program 166
9.5.4 6 Summary 169
Chapter 10 chat room mole (frameset page frame + session) 170
teaching video: 21 minutes
10.1 chat room basic design 170
10.1.1 main function description 170
10.1.2 business process description 171
10.1.3 logical structure design 171
10.2 chat room database design 172
10.3 visitor guide 173
10.3.1 guide page Face design 173
10.3.2 guide page program 174
10.4 chat room program 175
10.4.1 edit and send information 175
10.4.2 display all information 178
10.4.3 chat topic list 181
10.4.4 chat room structure 181
10.5 optimization and improvement of chat room 183
10.6 summary 183
Chapter 11 billing system mole (atomic operation + data roll back) Back) 184
teaching video: 33 minutes
11.1 billing system overview 184
11.2 database design planning 185
11.2.1 user virtual currency storage table design 185
11.2.2 user transaction details 186
11.2.3 payment platform order table 187
11.3 core function 188
11.3.1 using charge_ Num() function to recharge the specified user 188
11.3.2 use decrease_ Num() function to rece consumption amount 188
11.3.3 use transaction_ Record() function records user transactions 189
11.3.4 use update_ status_ The record() function confirms the user's payment operation 189
11.3.5 using count_ user_ Num() function update recharge times 190
11.4 API 190
11.4.1 recharge interface program 191
11.4.2 dection interface program 192
11.4.3 user balance query program 194
11.5 smart template engine 195
11.6 query recharge record interface 197
11.6.1 query recharge record interface 197
11.6.2 query recharge record program 199
11.7 summary 202
11.7 />Chapter 12 recharge platform mole (MD5 encryption + HTTPS protocol) 203
teaching video: 27 minutes
12.1 overview of recharge platform 203
12.1.1 realization purpose of recharge platform 203
12.1.2 overview of development and debugging process 203
12.2 test interface description 204
12.2.1 signature test mole 204
12.2.2 order test mole 205
12.2.3 payment success delivery test Mole 205
12.2.4 overall test process of payment gateway mole 205
12.3 realization of notification payment result mode 206
12.3.1 submit payment request information to payment gateway 206
12.3.2 payment gateway transmits payment result information to program interface 208
12.3.3 notification mode between servers 209
12.4 recharge guidance 209
12.4.1 design of recharge guidance page 209 < B R / > 12.4.2 recharge bootloader 213
12.5 server recharge interface 214
12.5.1 order confirmation 214
12.5.2 receiving gateway payment notification 217
12.5.3 payment result display 219
12.6 summary 222
Chapter 13 online survey mole (PHP + MySQL + XML) 223
teaching video: 24 minutes
13.1 online survey system requirements analysis 223
13.2 database design Total 224
13.3 investigation management background 225
13.3.1 investigation management background interface 226
13.3.2 investigation management program 228
13.3.3 saving investigation data 230
13.4 online investigation 231
13.4.1 online investigation interface 231
13.4.2 online investigation program 233
13.5 investigation result view 237
13.5.1 investigation result view interface 237
13.5.2 investigation result View program 238
13.6 summary 241
Chapter 14 WAP information mole (PHP + WML + WAP) 242
teaching video: 29 minutes
14.1 WAP application foundation 242
14.1.1 WAP system overview 242
14.1.2 WML foundation 243
14.1.3 WAP browser installation and debugging 246
14.2 database design 247
14.2.1 user data table 247
14.2.2 album data table 248
14.2.2 14.2.3 image database table 249
14.3 core function description 250
14.3.1 init_ Sid() function 250
14.3.2 code conversion function 251
14.3.3 WML format output function 251
14.4 WAP authentication program 252
14.4.1 login authentication program 252
14.4.2 mobile number validation program 253
14.4.3 paid content authentication program 254
14.5 WAP information program
take the subway first, go to chating station (to the ground direction of Fuyi hospital), and then ride the bike sharing, it will be faster! It's not so convenient to transfer buses.
driving route: the whole journey is about 160 meters
starting point: bus Rende station
1. Starting from the starting point, drive along Rende road for 160 meters to reach the terminal point
terminal point: bus Rende station