Muutke küpsiste eelistusi

E-raamat: PHP: 20 Lessons to Successful Web Development: 20 Lessons to Successful Web Development [ ENHANCED EBOOK]

  • Formaat: 272 pages
  • Ilmumisaeg: 30-Jan-2015
  • Kirjastus: McGraw-Hill Professional
  • Keel: eng
  • ISBN-13: 9780071849869
Teised raamatud teemal:
  • Formaat - EPUB+DRM
  • Hind: 37,44 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.
  • Formaat: 272 pages
  • Ilmumisaeg: 30-Jan-2015
  • Kirjastus: McGraw-Hill Professional
  • Keel: eng
  • ISBN-13: 9780071849869
Teised raamatud teemal:

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

Publisher's Note: Products purchased from Third Party sellers are not guaranteed by the publisher for quality, authenticity, or access to any online entitlements included with the product.

Master PHP in 20 lessons--online video tutorials included!Based on the author's successful online courses, this complete, integrated learning tool provides easy-to-follow lessons that feature clear explanations, sample code and exercises, and video tutorials.

Each lesson is designed to take you less than an hour to complete.

PHP: 20 Lessons to Successful Web Developmentcovers the basics, including constants, superglobals,operators, and arrays. Next, you'l learn ow to work with multidimensional arrays, write unctions, manipulate objects, build web forms, anage security, use Ajax, and much more. ogether, the book and almost five hours of videotraining make learning PHP easier than ever!

Ready-to-use code at www.mhprofessional.com
Acknowledgments xvii
Introduction xix
PART I PHP Basics
Lesson 1 Introduction to PHP
3(8)
A Little History
3(1)
Info for Programmers
4(1)
Why Is PHP so Popular?
5(1)
Downloading and Installing Web Browsers
5(1)
Choosing a Program Editor
6(1)
Installing a PHP Server
7(2)
Summary
9(1)
Self-Test Questions
9(2)
Lesson 2 Incorporating PHP into a Web Page
11(6)
Where to Place the PHP Code
11(1)
In the Document Head
12(1)
In the Document Body
12(1)
Including PHP Files
12(3)
Using Comments
15(1)
Using Semicolons
15(1)
Summary
16(1)
Self-Test Questions
16(1)
Lesson 3 Learning PHP Language Syntax
17(8)
Case Sensitivity
17(1)
Whitespace
18(1)
Variables
18(1)
Variable Naming
19(1)
String Variables
19(1)
Using Quotation Marks in Strings
20(1)
Using Heredoc Strings
21(1)
Escaping Characters
22(1)
Embedding Variables within a String
22(1)
Variable Typing and Casting
23(1)
Summary
24(1)
Self-Test Questions
24(1)
Lesson 4 Using Constants and Superglobals
25(8)
Using Constants
25(1)
Predefined Constants
26(1)
The echo and print Commands
27(1)
Superglobal Variables
27(1)
Superglobals and Security
28(1)
Other PHP Variables
29(1)
Summary
30(1)
Self-Test Questions
30(3)
Lesson 5 Working with Arithmetic Operators
33(8)
Arithmetic Operators
33(2)
Modulus
35(1)
Exponentiation
35(1)
Incrementing and Decrementing Variables
35(1)
Pre-Incrementing
36(1)
Post-Incrementing
36(1)
Pre- and Post-Decrementing
37(1)
Arithmetic Functions
38(1)
Assignment Operators
39(1)
Summary
40(1)
Self-Test Questions
40(1)
Lesson 6 Applying Comparison and Logical Operators
41(10)
Comparison Operators
41(2)
Logical Operators
43(2)
Exclusive Or
45(1)
Boolean Negation
45(1)
The Ternary Operator
46(1)
Bitwise Operators
46(1)
Operator Precedence
46(2)
Operator Associativity
48(1)
Summary
49(1)
Self-Test Questions
49(2)
Lesson 7 Creating Arrays
51(8)
Array Names
52(1)
Creating an Array
52(1)
Assigning Values to an Array Element
52(1)
Using Indexes
53(1)
Retrieving Values
53(1)
Using Array Elements as Indexes
54(1)
Other Ways of Creating Arrays
55(1)
Using Associative Arrays
55(1)
Keys, Values, and Hash Tables
56(1)
Other Ways of Creating an Associative Array
56(1)
Summary
57(1)
Self-Test Questions
58(1)
Lesson 8 Managing Multidimensional Arrays
59(12)
Creating a Two-Dimensional Array
60(2)
Accessing a Two-Dimensional Array
62(2)
A More Practical Example
64(2)
Multidimensional Associative Arrays
66(1)
Creating the Multidimensional Array
67(2)
Accessing the Arrays
69(1)
Summary
69(1)
Self-Test Questions
70(1)
Lesson 9 Calling Array Functions
71(12)
Using foreach ()
71(2)
Using array_merge ()
73(1)
Using implode ()
74(1)
The array_walk () Function
75(1)
Using array_push ()
76(1)
Using array_pop ()
77(1)
Using array_push () and array_pop () Together
78(2)
Using array_reverse ()
80(1)
The array_flip () Function
81(1)
Summary
82(1)
Self-Test Questions
82(1)
Lesson 10 Advanced Array Manipulation
83(10)
Using FILO and FIFO Arrays
83(1)
Buffering Using an Array
84(1)
Using array_unshift () and array_shift ()
85(1)
Using sort ()
85(1)
Reversing a Sort
86(1)
Using array_splice ()
87(1)
Removing Elements from an Array
87(1)
Inserting Elements into an Array
88(1)
Advanced Array Splicing
89(1)
Summary
90(1)
Self-Test Questions
91(2)
Lesson 11 Controlling Program Flow
93(12)
The if () Construct
93(1)
Omitting the Braces
94(1)
Positioning of Braces
95(1)
The else Statement
95(2)
The elseif () Construct
97(1)
The switch () Statement
98(2)
Using the break Keyword
100(1)
Using the default Keyword
100(1)
Allowing Fall-Through
101(1)
Summary
102(1)
Self-Test Questions
102(3)
Lesson 12 Looping Sections of Code
105(14)
Using while () Loops
105(1)
The Example in Detail
106(1)
Using do ... while () Loops
107(1)
The Example in Detail
108(1)
Using for () Loops
109(1)
The Example in Detail
109(2)
Breaking Out of a Loop
111(1)
Breaking Out of Multiple Loops
112(1)
The continue Statement
112(1)
Continuing within Multiple Loops
113(1)
Summary
114(1)
Self-Test Questions
115(4)
Part II Advanced PHP
Lesson 13 Writing Functions
119(12)
Using Functions
119(1)
The return Statement
120(1)
Passing Arguments
120(1)
Accessing Arguments
121(1)
Handling Unknown Numbers of Arguments
122(2)
Global and Local Variable Scope
124(1)
Using Local Variables
124(3)
The GLOBALS [ ] Superglobal Array
127(2)
Global Naming Convention
129(1)
Summary
129(1)
Self-Test Questions
129(2)
Lesson 14 Manipulating Objects
131(14)
OOP Terminology
132(1)
Declaring a Class
132(1)
Creating an Object
133(1)
Accessing Properties and Objects
133(1)
Using a Constructor
134(1)
Destructors
135(1)
Object Cloning
135(1)
Static Methods and Properties
136(1)
Predefined Properties
137(1)
OOP Constants
137(1)
Property and Method Scope
137(2)
Applying Inheritance
139(1)
Using the parent Keyword
140(1)
Writing Subclass Constructors
141(1)
Using the final Keyword
142(1)
Summary
142(1)
Self-Test Questions
143(2)
Lesson 15 Handling Errors and Expressions
145(12)
Error Trapping
145(2)
Regular Expressions
147(1)
Using preg_match ()
147(2)
Using preg_match_all ()
149(1)
Using preg_replace ()
150(2)
Fuzzy Matching
152(1)
Matching Any Character
152(1)
Not Matching a Character
153(2)
Summary
155(1)
Self-Test Questions
155(2)
Lesson 16 Building Web Forms
157(12)
Creating a Form
157(2)
The Difference Between Post and Get Requests
159(1)
Security Issues with Get Requests
159(1)
Accessing Form Data from PHP
160(1)
About register_globals
161(1)
Redisplaying a Form
162(1)
The checkbox and select multiple Input Types
163(3)
Using Hidden Fields
166(1)
Summary
166(1)
Self-Test Questions
166(3)
Lesson 17 Maintaining Security
169(8)
Sanitizing Input
169(2)
Uploading Files to a Server
171(1)
The $_FILES [ ] Array
172(1)
File Security
173(1)
Other Potential Insecurities
174(1)
Summary
175(1)
Self-Test Questions
175(2)
Lesson 18 Accessing Cookies and Files
177(12)
Using Cookies
177(1)
Setting a Cookie
178(1)
Reading a Cookie
179(1)
Deleting a Cookie
179(1)
Combining These Three Functions
180(1)
Browser Identification
181(1)
The GetBrowser () Function
182(1)
File Handling
183(1)
Testing for a File Existing
184(1)
Creating or Opening a File
185(1)
Writing to a File
185(1)
Closing a File
186(1)
Reading from a File
186(1)
Summary
187(1)
Self-Test Questions
188(1)
Lesson 19 Advanced File Handling
189(18)
Combining File Functions
189(2)
Saving Any Form Data
191(1)
Reading from the Data File
192(1)
Prepopulating the Shopping List
193(1)
The HTML Section
193(1)
Even Simpler File Accessing
194(3)
File Copying
197(1)
File Deleting
197(1)
File Moving
197(1)
Random Access
198(1)
Writing to a Random Access File
199(1)
Managing Directories
199(1)
File Locking
200(1)
A Practical Example
201(4)
Summary
205(1)
Self-Test Questions
205(2)
Lesson 20 Authentication, Sessions, and Ajax
207(16)
Authentication
207(3)
Using Sessions
210(1)
Retrieving Session Variables
210(1)
Combining Authentication with Sessions
211(1)
Picking Up Session Details
211(2)
Closing a Session
213(1)
Session Security
213(1)
Using Ajax
214(1)
Creating an Ajax Object
215(2)
The PostAjaxRequest () Function
217(1)
The GetAjaxRequest () Function
218(1)
The callback () Function
219(1)
The ajax.php Program
219(2)
Summary
221(1)
Self-Test Questions
222(1)
APPENDIX Answers to the Self-Test Questions
223(18)
Lesson 1 Answers
223(1)
Lesson 2 Answers
224(1)
Lesson 3 Answers
225(1)
Lesson 4 Answers
226(1)
Lesson 5 Answers
226(1)
Lesson 6 Answers
227(1)
Lesson 7 Answers
228(1)
Lesson 8 Answers
229(1)
Lesson 9 Answers
230(1)
Lesson 10 Answers
231(1)
Lesson 11 Answers
231(1)
Lesson 12 Answers
232(1)
Lesson 13 Answers
233(1)
Lesson 14 Answers
234(1)
Lesson 15 Answers
235(1)
Lesson 16 Answers
236(1)
Lesson 17 Answers
237(1)
Lesson 18 Answers
238(1)
Lesson 19 Answers
239(1)
Lesson 20 Answers
240(1)
Index 241
Robin Nixon (Kent, UK) is an experienced author, teacher, and programmer with over 30 years experience. Nixon has produced over 500 articles and 20 books, including best-selling titles on PHP/MySQL, HTML, JavaScript, and other Web development topics.