
Install brackets as your code editor, set up the Zam server (apache, mysql, php), then create a php project in htdocs with index.php and style.css, and run at localhost.
Install Brackets plugins to boost code editor efficiency, including Emmet and PHP syntax plugins, enable auto save on window blur, and learn the basic steps to install them.
Explore why PHP powers dynamic data by contrasting hardcoded static information with database-driven content, and see how PHP pulls data from a database to render on the front end.
Write your first php script by adding opening and closing php tags, echoing hello world, and wrapping it in an h1 tag, then reload the browser.
Master PHP syntax by learning opening tags, semicolons, and variables (with a dollar sign), plus control structures and functions, with real-life examples like form handling and database connections.
Learn how to write PHP with the standard opening tag and the short form, enable short_open_tag in php.ini, and verify changes by restarting the server.
Practice echoing variables in HTML using the standard PHP tags and the short echo syntax. Note the deprecated PHP tags since PHP 7 and the recommendation to avoid them.
Learn PHP comments, including single line, hash, and multi-line styles, and use them for documentation, debugging, and clearer code.
Discover how to write single-line and multi-line comments in PHP, document code blocks with // and /* ... */, and understand how proper commenting aids future reference and clarity.
Explore PHP comments including # and // for single-line, /* */ for multi-line, and the PHPDoc style for API documentation, and see how they don’t affect output like hello world.
Explore PHP variables, starting with the dollar sign, dynamic typing, and naming rules, then see real-world uses in forms, loops, and functions.
Learn to work with PHP variables and echo: create dollar sign variables, assign strings, and concatenate with dot across var1 and var2.
Explore PHP variable basics and data types, including strings, integers, floats, booleans, arrays, objects, null, and resources, with dynamic typing, case sensitivity, and practical examples.
Explore PHP variable types, including scalar types (boolean, integer, float, string), composite types (object and array), and resources, with practical distinctions and real-world examples.
Defines PHP local variables, explains their function-scoped lifecycles, and shows how they stay isolated, support memory management, and are destroyed after function execution.
Define a function to demonstrate local variables in PHP, create and print a local variable with echo, and observe its function-scoped visibility.
Understand how PHP function variables, including parameters, internal variables, and return values, reside in function scope and support modular, reusable code.
Learn how variable parameters work in a PHP function by assigning a value inside the function, multiplying by 20, and returning the result (e.g., 10 becomes 200).
Learn how PHP global variables enable data sharing across functions using the global keyword. Explore practical examples like cart totals and config values, and review best practices and risks.
Learn how to declare and access a global variable in PHP using the global keyword, include files, and concatenate values inside functions.
Master PHP static variables to persist values across function calls, initialized once, using the static keyword inside a function to track counters, IDs, and simple caches.
Explore how static variables retain state across function calls, incrementing from zero to one, two, three, as shown in the code. Contrast with regular variables that reset on each call.
Explore PHP's eight active super globals and how they enable cross-scope access. Use $GLOBALS or the global keyword to read and modify variables inside functions.
Discover how to use the PHP get super global variables with a simple form using the get method. Retrieve input with $_GET and display the name value on the page.
Learn how the $_POST super global captures form input and inserts it into the users table, updating the database via a post request.
Explore the $_REQUEST super global, an associative array that combines GET, POST, and COOKIE data, and learn to replace $_GET and $_POST usage with $_REQUEST in PHP.
Explore the PHP $_SERVER super global to view the script location and server name. Learn how this data is accessed and displayed in your browser.
Explore how the PHP session super global ($_SESSION) enables a login system. Learn to start sessions with session_start, set and check $_SESSION, and show appropriate messages.
Learn how to set and retrieve cookies in PHP using name, value, and expires (Unix timestamp), and how $_COOKIE reflects these in the browser.
Learn how the PHP $_FILES super global handles file uploads through a multipart form, moving the uploaded file to an uploads directory, with security not implemented in this lecture.
Explore PHP data types, including string, integer, double, float, boolean, and resources, with echo and quoting rules, plus basic conditionals and a database connection.
Explore numeric, associative, and multidimensional arrays in PHP, and learn to access values by index or key, print them, and loop with for each.
This lecture covers numeric, associative, and multidimensional arrays in PHP, compares modern and old syntax, and demonstrates indexing by numbers or strings, foreach loops, and echo printing.
Explore PHP array sorting functions to arrange elements alphabetically in ascending or descending order and sort associative arrays by value in both directions, with practical coding examples.
Master the remaining four php array sort functions as you sort associative arrays by value or by key, in both ascending and descending orders, through hands-on examples.
Learn PHP data types through hands-on examples of variables, echo and var_dump, including uninitialized values, then connect to a database with mysqli_connect, and build an object-oriented car class with functions.
Explore arithmetic operators in PHP, using a built-in calculator to demonstrate addition, subtraction, multiplication, division, modulus, and exponentiation. See how x and y variables and echo statements reveal operation results.
Explore PHP operators, starting with the assignment operator that sets values like x equals 10, then review comparison operators such as equal, identical, not equal, and greater or less than.
Explore PHP operators in this session, including pre-increment and pre-decrement, and, or, xor, not, modulus, and concatenation. Practice applying these operators in conditional statements to prepare for if statements.
Define constants with define, name them uppercase, cannot start with a number, may begin with an underscore and capital letter, and print to show they are unchangeable.
Learn to implement PHP conditional statements using if, else if, and else; test or, and, and not operators with sample variables e and r to control output via echo.
Master php switch statements with a color tester using blue, green, and red; see how the switch matches a value, executes the correct case, and uses default when no match.
Learn how the while loop in PHP iterates over arrays, using old and new syntax, and prints values with print_r or echo, with WordPress main loop context.
Learn how the PHP foreach loop iterates over arrays to print each element with echo, using HTML formatting to display various data types.
Learn how a for loop initializes a variable, tests a condition, and increments it to print numbers from 0 to 9 using concatenation and a line break.
Explore the PHP do-while loop by building a simple counter with a do block, echoing values and incrementing x until the condition x <= 10.
Explore how break and continue statements control a PHP while loop, stopping at five or advancing to ten and printing intermediate values.
Learn how to include single or double quotes inside PHP string values by escaping them with backslashes, preventing syntax errors and enabling nested quotes in echo statements.
Master core PHP constructs, the language’s basic units, and how they differ from functions; learn key constructs like echo, print, empty, isset, unset, include, and require.
Explore how PHP handles strings with double versus single quotes, showing how double quotes interpolate variables like $name to output values, while single quotes print literals.
compare print and echo in php by showing that print returns 1 and accepts one parameter, while echo has no return value and supports multiple parameters.
Learn how to use the PHP date function to format dates and times, explore common format parameters, and set time zones for dynamic, readable outputs.
Create and configure a virtual host by editing httpd-vhosts.conf and the hosts file, mapping bhp-master-class to your local server and restarting Apache.
Download bootstrap, extract the files, create assets and js folders, link the bootstrap bundle js and jquery in your project, and verify bootstrap works with jquery first.
Learn how to build a Bootstrap-styled PHP form for a forum, apply CSS layout tweaks, set name attributes and post method, and begin handling with a PHP function.
Learn to build a PHP form using POST, capture username and password with $_POST, and display the submitted data through echo with simple styling.
Master form validation in PHP using an in-memory users array, strlen checks, and preg_match for passwords. Implement user feedback with bootstrap alerts and conditional login messages.
Learn how preg_match validates passwords as alphanumeric with uppercase, lowercase, and digits, and why in_array requires the array as the second parameter to avoid errors.
Understand that the get method exposes input data in the browser address bar and its size and type limits, unlike post which handles confidential or large data.
Create a database and a users table in phpMyAdmin; configure a PHP script with mysqli_connect to test the connection to the BHP database.
Build a simple php crud app with mysqli connection and bootstrap front end. Create, read, update, and delete records in the BHP database user table via a form and buttons.
Remove the old index file, install and hook up empty bootstrap assets, create an assets folder, adjust asset paths, and verify a hello world page to begin the CRUD application.
Build a PHP create, read, update, and delete interface styled with Bootstrap, featuring a data table for name, email, website, and phone, plus a form to add and edit records.
Build a php crud application by creating an includes folder file and wiring it to db.php and index.php with require_once, handling post data for add operations.
Add a new input with an id and name attributes in index.php, including e name, web site, and phone number. Connect index.php to functions.php and ensure semicolon closure.
Build the add record click event in PHP to gather form inputs (name, email, website, phone) and insert them into the users table, with success or danger alerts.
Fetch data from the database and display all user fields on the frontend using a show data function, printing id, name, email, website, and phone number, with order by id.
Develop the edit button click event in PHP, fixing the function and fetching user data to populate name, email, website, and phone for editing.
Implement the update button click to modify user records using post data. Build a SQL update query with id, name, email, website, and phone, and show a success alert.
Implement a delete button click event in PHP, build and run a delete query on the users table, and redirect to index.php. It also covers adding, editing, and updating records.
Explore four essential database functions—connect to a secure database, run queries, fetch rows, and fetch all or specific columns—and practice building a test database in your code editor.
Set up the project structure and includes, configure a database connection to localhost with root and an empty password, and build a registration form tested by the register button.
Learn to use mysqli_query to insert registered user data into the user table (first name, last name, email, conf email, password), manage the global connection, and fetch and display records.
Explore mysqli_fetch_assoc by running a select query on the users table, then use a while loop to fetch and display id, first name, last name, email, and password.
Validate user input with mysqli_num_rows to check for a matching email in the users table and fetch the result using a while loop for display.
Build a PHP login system by creating an email and password form and validating credentials against a database. Start a session to greet users by name after login.
Implement login and logout flow by posting login credentials, starting a session on login, unsetting the session on logout, and redirecting users back to the login interface.
Demonstrate building a login and registration system from scratch, showing user input, email verification, duplicate email checks, and hashed password storage to protect accounts.
Build a user registration and login app with MDB bootstrap front end, set up in htdocs, convert files to .bhb, then activate the local server to run securely.
Import the project folder, set up an empty bootstrap 4.14.0, create a file called function Start BHB, and build the login and registration forms while running the Zamp server locally.
Create an includes/dbi.php file, set up a logging app database with a users table using an admin tool, and connect via mysqli to test the database connection for registration.
Build a login and registration form using bootstrap, with container layouts and form groups, including first name, last name, email, confirm email, and password, posted to php.
Style the login and registration forms by applying a background image, a full-screen gradient, and white text through CSS classes.
Learn how to create a PHP registration handler that collects form data, sanitizes input with real_escape_string and filter_var, hashes passwords with password_hash, checks for existing emails, and saves new users.
Learn to implement login and logout functionality in PHP by refactoring to a single login block, start sessions, hash and verify passwords, manage user data, and redirect users after login.
This course is for beginners. Anyone looking to learn PHP can be immensely benefited from this course. Allow me to elaborate on the reasons why this course is special, well when I was learning PHP, I have documented all the areas where I, as a beginner, have experienced difficulties to apprehend how this program works on those particular areas and in this course I have covered, explained and simplified all those topics. There is absolutely no doubt that this course will build you a rock-solid PHP foundation.
This course is more focused on core PHP rather than projects and you may wonder how this approach will benefit you? Well, let me tell you this right off the bat that this is the de-facto approach for anyone looking to pass the Zend Certified Engineer exam (Exam code 710-200). This course is more focused on core PHP, I believe this will help you pass your Zend Certified Engineer exam (Exam code 710-200) and I am preparing this course keeping Zend Certified Engineer exam (Exam code 710-200) in my mind.
I promise you that this course will be on a constant development phase which means I will continue to create new lectures and update this course weekly. This course will never go on a stagnant state.
Now let's talk about creating projects, well we will create not only one but a couple of projects and this process will continue. My target is to make this course a 100+ hours length course.
I am optimistic about the fact that you will find this course extremely easy to understand and as I said earlier that I was also a beginner at some point and I know exactly where most of the beginners spot difficulties and in this course, all the difficult areas have been simplified.