
Build an app from scratch using procedural PHP and then transition to state management with PHP sessions, including a login and registration system. Finally, refactor the code to object-oriented PHP.
This video walks you through installing XAMP and PhPStorm on Windows and configuring PhPStorm. If you already have a working IDE and LAMP installed, please skip this section and go straight to Section 2. You won't miss anything important here.
This video walks you through installing XAMP and PhPStorm on MacOS. If you already have a working IDE and LAMP installed, please skip this section and go straight to Section 2. You won't miss anything important here.
This video walks you through installing MAMP on MacOS. If you already have LAMP installed, please skip this section and go straight to Section 2. You won't miss anything important here.
This video walks you through configuring PhPStorm on MacOS. If you already have a working IDE and LAMP installed, please skip this section and go straight to Section 2. You won't miss anything important here.
Create a unit1 folder in XAMPP htdocs, organize assets (css, main.css, scripts, images) and includes, then build index.php home page with config, nav, and footer, plus functions and db files.
Create an edit page that pre-populates a form with existing guestbook data, retrieves the record by id, and updates it on submit.
Update the top navigation to conditionally show register, log in, and log out based on user session, add session checks, and fix string assembly for a clean, dynamic PHP nav.
Use sessions to restrict access to protected content in PHP, hiding actions for guests, redirecting unauthenticated users, and showing a dynamic header with welcome guest or the user's name.
Implement a user registration page by duplicating and adapting the login form, adding username, email, password, and confirm password fields, and wiring up the register submission.
Transform procedural PHP app into an object oriented design by adding a DBI class, adopting mysqli, and creating an abstract utility class and a guest book class to display forms.
Update PHP files to use objects, replace the old connection with DBI, adjust references, and test login, registration, and guestbook flows while resolving a vehicle redirect issue.
Protect sensitive data by moving it outside the web root into a private folder and loading it securely in PHP via absolute paths, preventing browser access.
As a Web developer, you're expected to know how to create a clean and functional Web site from scratch. This course is designed for beginner developers who already know their HTML and CSS and would like to get their hands dirty with creating nice and clean custom Web apps from scratch. I will walk you through the entire process of building a PHP Guestbook application using the LAMP stack. Everything will be built from scratch -- NO bootstrap, NO templates, NO third-party code. You create everything, and you own everything.
This course is divided into three major phases:
Phase 1: You will build the complete Web app from scratch using only procedural programming in PHP, custom CSS & HTML, and a MySQL database.
Phase 2: You will tweak the app and integrate state management to restrict unregistered users from accessing protected content and functionality on the site.
Phase 3: You will refactor and convert the same app code using object-oriented programming in PHP.
The app that you build will use a MySQL database for data store and allow users to perform basic CRUD (Create, Read, Update, Delete) operations on the site. Users will be able to view and sign the Guestbook, make edits, and delete content.
By the end of the course, you will feel proud and confident to start building a complete PHP Web application from the ground up on your own using your own custom code and various programming techniques.