Learning PHP (2020)

Learning PHP (2020)

English | MP4 | AVC 1280×720 | AAC 48KHz 2ch | 4h 25m | 630 MB

PHP is still one most popular server-side languages used to build dynamic websites, powering everything from Facebook to Wikipedia. And although it is not especially difficult to use, nonprogrammers often find it intimidating. This introductory course was designed to change that by teaching you PHP through a series of clear, focused, and easy-to-follow lessons. After briefly explaining what PHP is, instructor Joe Casabona introduces the features of the language. He covers variables, control structures, calculations, loops, and functions, as well as includes and error handing, in a series of hands-on exercises. He then moves on to more advanced topics, including how to maintain state with sessions and cookies. Upon wrapping up this course, you’ll have the skills you need to start developing and maintaining interactive websites using PHP.

Table of Contents

1 Should you learn PHP
2 What you should know
3 Developing locally
4 How PHP works
5 Printing on the screen
6 Using variables
7 Single vs. double quotes
8 What are arrays and how do they work
9 Defining arrays
10 Challenge Display basic information on an HTML page
11 Solution Display basic information on an HTML page
12 Boolean operators and the truth
13 Logical operators
14 Creating if else statements
15 Ternary operations
16 Switch statements
17 Challenge Display content based on status
18 Solution Display content based on status
19 Arithmetic operators
20 Figuring out even odd with modulus
21 Incrementing and decrementing variables
22 Challenge Implementing a complicated calculation
23 Solution Implementing a complicated calculation
24 What are loops
25 Do while loops
26 For loops
27 Working through arrays with foreach loops
28 Challenge Calculating the Fibonacci sequence
29 Solution Calculating the Fibonacci sequence
30 What are functions
31 Using built-in functions
32 Writing custom functions
33 Sending variables to functions
34 Anonymous functions
35 What are objects and classes
36 Defining a simple person class
37 Challenge Sort an array of objects
38 Solution Sort an array of objects
39 Organizing your code
40 Using include and require
41 include once and require once
42 Namespacing
43 Challenge Build a simple templating system for the provided markup
44 Solution Build a simple templating system for the provided markup
45 Common debugging tools in PHP
46 Types of PHP errors
47 Why is my page blank
48 Common parse errors
49 Common PHP errors
50 Try catch statements
51 GET vs. POST
52 Handling basic form elements
53 Handing multiple-choice elements
54 Form validation Making sure required fields are filled in
55 Form validation Appropriate input
56 Form validation Sanitizing input
57 Sending the form data in an email
58 Challenge Process a simple form and send the email
59 Solution Process a simple form and send the email
60 Reading files in PHP
61 Writing files
62 Maintaining state with cookies
63 Maintaining state with sessions
64 Next steps