Learn PHP Fast and Learn It Well. Master PHP Programming with a unique Hands-On Project
New Book by Best Selling Author Jamie Chan. Book 6 of the Learn Coding Fast Series.
Do you want to learn PHP fast but are overwhelmed by all the information you find online? Or perhaps you have completed numerous PHP tutorials but are still unsure how everything works together.
This book is for you.
You no longer have to waste your time and money learning PHP from lengthy books, expensive online courses or fragmented PHP tutorials. This book covers all the major topics in PHP and is written in a concise and to the point manner. In addition, you'll be guided through a project at the end of the book where you get to apply the concepts learned and see how it all ties together.
What this book offers...
PHP for Beginners
Complex concepts are broken down into simple steps to ensure that you can easily master PHP even if you have never coded before. Concepts are presented in a "to-the-point" style to cater to the busy individual; no fluff or unnecessary details.
Careful selection of topics
Topics are carefully selected to give you a broad exposure to PHP. These topics include HTML form handling, security management (prevention of XSS and SQL injection), object-oriented programming, error and exception handling techniques, databases and more.
Carefully Chosen PHP Examples
Examples are carefully chosen to illustrate all concepts. In addition, the output for all examples is provided immediately so you do not have to wait till you have access to your computer to test the examples.
How is this book different...
The best way to learn programming is by doing. This book includes a complete project at the end of the book where you get to build a mini-blog using PHP and MySQL.
Working through the project gives you a chance to see how everything works together, including how to set up your servers, create a database, connect to it, process forms, manage security issues, handle errors and exceptions and more. Completing the project will not only give you an immense sense of achievement, it'll also help you retain the knowledge you've learned and master the language.
Are you ready to dip your toes into the exciting world of PHP coding? This book is for you. Click the BUY button and download it now.
Pre-requisites:
Note that this book requires basic knowledge of HTML and SQL.
What you'll learn:
- What is PHP
- What software do you need to run PHP scripts
- How to set up your own server
- What are constants, variables and operators
- What are the common data types in PHP
- How to control the flow of your PHP program using If statements, while loops etc
- How to use numerous built-in functions in PHP
- How to define your own functions
- What is a cookie and session and how to use them
- How to process HTML forms using the get and post methods
- How to prevent attacks on your site
- What is OOP and inheritance
- How to connect to a database
- How to handle errors and exceptions
.. and more...
Finally, you'll be guided through a hands-on project that requires the application of all the topics covered.
Author(s): LCF Publishing, Jamie Chan
Series: Learn Coding Fast with Hands-On Project Book 6
Publisher: LCF Publishing
Year: 2020
Language: English
Pages: 210
Chapter 1: Introduction to PHP
1.1 What is PHP?
1.2 Why Learn PHP?
Chapter 2: Installing XAMPP
2.1 Configuring php.ini
2.2 Important Links
2.3 Coding our first Web Page
Chapter 3: Basic PHP Tasks
3.1 Displaying Outputs
3.1.1 echo
3.1.2 print
3.1.3 Escaping Characters
3.2 Duplicating Code
3.2.1 include
3.2.2 require
3.2.3 include_once, require_once
3.3 Redirecting Users
Chapter 4: Constants, Variables, Data Types and Operators in PHP
4.1 Constants
4.2 Variables
4.3 Basic Data Types in PHP
4.4 Type Casting
4.5 Operators in PHP
4.5.1 The Assignment Operator
4.5.2 Arithmetic operators
4.5.3 Combined Assignment Operators
4.5.4 Increment/Decrement operators
Chapter 5: More Data Types in PHP
5.1 Strings
5.1.1 Commonly used String Functions in PHP
5.2 Using Strings to Represent Dates
5.2.1 The strtotime() function
5.2.2 The date() function
5.2.3 Setting the timezone
5.3 Arrays
5.3.1 Creating an Array
5.3.2 Displaying the Content of Arrays
5.3.3 Adding Elements to Arrays
5.3.4 Deleting Elements from Arrays
5.3.5 Commonly used Array Functions in PHP
Chapter 6: Control Structures in PHP
6.1 Comparison operators
6.2 Logical Operators
6.3 Control Structures
6.3.1 If Statement
6.3.2 Ternary Operator
6.3.3 Switch Statement
6.3.4 For Loop
6.3.5 Foreach Loop
6.3.6 While Loop
6.3.7 Do-while Loop
6.4 Other Topics in Flow Control
6.4.1 Booleans
6.4.2 Break, Continue
6.4.3 Alternative Syntax
6.4.4 Displaying HTML code
Chapter 7: Functions
7.1 Defining our own Functions
7.2 Type Declaration
Chapter 8: PHP Superglobals
8.1 PHP Form Handling
8.1.1 The isset() function
8.1.2 get and $_GET
8.1.3 post and $_POST
8.1.4 Keeping The Values in The Form
8.1.5 Filtering User Input
8.1.6 Cross-Site Scripting
8.2 $_SESSION
8.3 $_COOKIE
Chapter 9: Object-Oriented Programming
9.1 What is OOP?
9.2 Writing our own class
9.3 Creating an Object
9.4 Accessing Class Members
9.5 Access Modifiers
9.6 Getter and Setter
9.7 Printing a String Representation of the Object
Chapter 10: Inheritance
10.1 Writing the Child Classes
10.2 Creating a Child Class Object
10.3 Access Modifiers Revisited
10.4 Overriding
Chapter 11: Interacting with a Database
11.1 The PDO library
11.2 Connecting to the Database
11.3 SQL Injection
11.4 Prepared Statements
11.5 Putting it all Together
Chapter 12: Managing Errors and Exceptions
12.1 Handling Exceptions
12.1.1 What is an exception?
12.1.2 try-catch-finally
12.1.3 Throwing Exceptions
12.1.4 Exception Handler
12.2 Handling Errors
12.2.1 What are errors?
12.2.2 Error Reporting Settings in PHP
12.2.3 Error Handler and Shutdown Function
12.3 Putting it All Together
Chapter 13: Project
13.1 About the Project
13.2 Acknowledgements and Requirements
13.3 Structure of the Project
13.4 Creating Database, User Account and Tables
13.5 Editing The classes Folder
13.5.1 Helper.php
13.5.2 Database.php
13.5.3 BlogReader.php
13.5.4 BlogMember.php
13.5.5 Admin.php
13.6 Editing The process Folder
13.6.1 p-index.php
13.6.2 p-admin.php
13.6.3 p-signup.php
13.6.4 p-write.php
13.6.5 p-read.php
13.6.6 messagecard.php
13.7 The includes Folder
13.8 Editing The phpproject Folder
13.8.1 UI_include.php
13.8.2 User Interface Files
13.9 Running the Code