PHP Programming for Beginners (First Edition) by Sarful Hassan
This book will serve as your foundation for understanding the basics of PHP and programming in general. Key modules include:
Module 1: Introduction to PHP*
- Overview of PHP
- PHP Syntax and Data Types
- Variables, Constants, and Operators
- Basic PHP Functions
Module 2: Control Structures
- Conditional Statements: if, else, switch
- Loops: for, while, do-while
- Nested loops and conditions
Module 3: Functions and Arrays*
- Defining and Calling Functions
- Array Basics (Indexed and Associative Arrays)
- Multi-dimensional Arrays
- Array Functions in PHP
Module 4: Working with Forms and User Input
- Getting data from forms
- Sanitizing and Validating Data
- Handling GET and POST methods
Module 5: File Handling
- Reading and Writing Files
- File Uploads and Downloads
- File Permissions
2.O'Reilly Learning PHP, MySQL & JavaScript (7th Edition)
As an advanced guide, this book will help you integrate PHP, MySQL, and JavaScript, to create dynamic, database-driven websites. This book covers:
Module 6: Introduction to MySQL
- Understanding Databases and SQL Basics
- Creating Databases and Tables
- Retrieving and Manipulating Data with SELECT, INSERT, UPDATE, DELETE
- Using Joins and Subqueries
Module 7: Connecting PHP to MySQL
- PHP MySQL Connectivity
- Writing SQL Queries in PHP
- Handling Data from MySQL in PHP
- Displaying Results in HTML Tables
Module 8: Advanced PHP Concepts
- Object-Oriented Programming (OOP) in PHP
- Classes, Objects, and Methods
- Inheritance and Polymorphism
- Using PHP with MVC Frameworks
Module 9: Introduction to JavaScript
- Basics of JavaScript: Variables, Functions, Loops
- DOM Manipulation and Event Handling
- AJAX with PHP for Real-time Updates
- Integrating JavaScript with PHP
Module 10: PHP Security and Best Practices
- Preventing SQL Injection
- Protecting Your Website with Sessions and Cookies
- File Upload Security
- Error Handling and Debugging in PHP