PHP

Week 1: PHP Basics (Syntax + Core Concepts)

Goal: Understand PHP syntax, variables, operators, and control structures.

Day 1: Introduction to PHP

  • What is PHP?

  • How PHP works (server-side execution)

  • Installing XAMPP / WAMP / Laragon

  • Running PHP files in browser (localhost)

  • Echo/print

Day 2: PHP Syntax & Variables

  • PHP tags <?php ?>

  • Variables

  • Data types (string, int, float, boolean, array, object)

  • Constants

Day 3: Operators

  • Arithmetic, assignment

  • Comparison operators

  • Logical operators

  • String operators

Day 4: Conditional Statements

  • if, else, elseif

  • switch

Day 5: Loops

  • for

  • while

  • do…while

  • foreach

Day 6: Arrays

  • Indexed arrays

  • Associative arrays

  • Multidimensional arrays

  • Array functions (count, implode, explode)

Day 7: Practice Task

Build a simple form handler
(echo input data on submit).

Week 2: Functions, Forms, Sessions & File Handling

Goal: Work with user inputs, sessions, cookies, and PHP functions.

Day 8: Functions

  • Defining functions

  • Return values

  • Arguments

  • Built-in functions

Day 9: PHP Super Globals

  • $_GET

  • $_POST

  • $_SERVER

Day 10: Working with Forms

  • Form submission

  • Form validation

  • Required fields

  • Sanitizing input (htmlspecialchars, trim, filter_var)

Day 11: Sessions & Cookies

  • session_start()

  • Storing session data

  • Cookies (set, get, delete)

Day 12: File Handling

  • Create/open/read/write files

  • Uploading files with forms ($_FILES)

Day 13: Error Handling

  • try...catch

  • Custom error messages

Day 14: Practice Task

Build a login system using Sessions (no database yet).

Week 3: PHP + MySQL (CRUD) & Authentication

Goal: Connect PHP with MySQL and perform CRUD operations.

Day 15: Intro to MySQL

  • Creating DB and tables

  • Primary keys and indexes

Day 16: PHP + MySQL Connection

  • MySQLi or PDO

  • Connecting to database

  • Running SQL queries

Day 17: CRUD – Create

  • Insert form data into database

Day 18: CRUD – Read

  • Display data in HTML table

  • Fetch associative arrays

Day 19: CRUD – Update

  • Edit form

  • Update DB record

Day 20: CRUD – Delete

  • Delete record

  • Confirmation messages

Day 21: Practice Task

Build a complete CRUD Application
(Book Management / Student Records / Products).

Week 4: Advanced PHP, APIs, Security & Projects

Goal: Apply everything into real projects, including authentication and APIs.

Day 22: User Authentication

  • Register page

  • Login page

  • Password hashing (password_hash, password_verify)

  • Role-based login (Admin/User)

Day 23: PHP Security

  • SQL Injection prevention (prepared statements)

  • XSS prevention

  • CSRF basics

Day 24: PHP & APIs

  • cURL basics

  • Calling public APIs (weather, jokes, etc.)

  • Displaying API data

Day 25: PHP OOP (Object-Oriented Programming)

  • Classes & objects

  • Constructors

  • Inheritance

  • Encapsulation

Day 26: PHP with JSON

  • Encode & decode JSON

  • Building a mini API in PHP

Day 27–28: Project 1

Build a Mini Web Application, e.g.:

  • Login + Register System

  • Student Management System

  • Expense Tracker

  • Movie/Book Listing App

  • Blog/Post Manager

Day 29–30: Final Major Project

Build a full PHP web application with authentication + CRUD.

Examples:

  • E-commerce Admin Panel

  • Job Portal Backend

  • Blog Website

  • Online Notes App

  • Inventory Management System

After 1 Month You Will Know

PHP fundamentals (variables, arrays, loops, functions)
Form handling, validation, file upload
Sessions & cookies
MySQL integration + CRUD
Authentication (login/register)
Security practices
cURL & APIs
Object-oriented PHP
Building complete web applications