Introduction of Web & PHP
- What is PHP?
- The history of PHP.
- Installation overview
First Steps
- Embedding PHP code on a page
- Outputting dynamic text
- Inserting code comments
Exploring Data Types
- Variables
- Strings
- String functions
- Numbers part one: Integers
- Numbers part two: Floating points
- Arrays
- Associative arrays
- Array functions
- Booleans
- NULL and empty
- Type juggling and casting
- Constants
Control Structures: Logical Expressions
- If statements
- Else and elseif statements
- Logical operators
- Switch statements
Control Structures: Loops
- While loops
- For loops
- Foreach loops
- Continue
- Break
- Understanding array pointers
User-Defined Functions
- Defining functions
- Function arguments
- Returning values from a function
- Multiple return values
- Scope and global variables
- Setting default argument values
Debugging
- Common problems
- Warnings and errors
- Debugging and troubleshooting
Building Web Pages with PHP
- Links and URLs
- Using GET values
- Encoding GET values
- Encoding for HTML
- Including and requiring files
- Modifying headers
- Page redirection
- Output buffering
Working with Forms and Form Data
- Building forms
- Detecting form submissions
- Single-page form processing
- Validating form values
- Problems with validation logic
- Displaying validation errors
- Custom validation functions
- Single-page form with validations
Working with Cookies and Sessions
- Working with cookies
- Setting cookie values
- Reading cookie values
- Unsetting cookie values
- Working with sessions
MySQL Basics
- MySQL introduction
- Creating a database
- Creating a database table
- CRUD in MySQL
- Populating a MySQL database
- Relational database tables
- Populating the relational table
Using PHP to Access MySQL
- Database APIs in PHP
- Connecting to MySQL with PHP
- Retrieving data from MySQL
- Working with retrieved data
- Creating records with PHP
- Updating and deleting records with PHP
- SQL injection
- Escaping strings for MySQL
- Introducing prepared statements
Working with Files and Directories
- File system basics
- Understanding file permissions
- Setting file permissions
- PHP permissions
- Accessing files
- Writing to files
- Deleting files
- Moving the file pointer
- Reading files
- Examining file details
- Working with directories
- Viewing directory content
Sending Emails
- Configuring PHP for email
- Sending email with mail()
- Using headers
- Reviewing SMTP
- Using PHPMailer
Security Basics
- How to prevent SQL Injection
- How to prevent XSS
- How to prevent CSRF
- Best programming practices for writing secured php code.