Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Intro To PHP For Web Development
Rating: 4.6 out of 5(767 ratings)
5,394 students

Intro To PHP For Web Development

Learn PHP for Web Development. Php is a popular Programming Language for a reason! Become a backend coder today!
Created byJohn Elder
Last updated 11/2023
English
English [Auto],

What you'll learn

  • You'll learn how to code in the PHP Programming Language

Course content

2 sections • 56 lectures • 5h 57m total length
  • Introduction1:43

    Discover the course structure for intro to PHP for web development, from downloading PHP and a text editor to mastering variables, loops, and arrays, then building PHP-driven web pages.

  • First Things First: How To Get Support Fast!0:09

    Check out my student Facebook Group...

    It's a great place to get fast support for this course from me, to interact with other students, to post your projects and code, and to access course announcements and extras...

    Join Now!

    https://www.facebook.com/groups/codemycom/

  • Install XAMPP5:02

    Install and configure the essentials for PHP development by downloading XAMPP, choosing a text editor, and starting Apache to run PHP on your computer.

  • Install Sublime Text Editor5:40

    Install Sublime Text editor and set up a PHP environment by creating index.php in a course folder inside docs on C drive, then run Champ and view at localhost.

  • PHP Structure and Syntax9:54

    Explore the structure and syntax of PHP within HTML, using opening and closing tags, semicolons, and comments, and echo hello world with a Bootstrap starter template.

  • Variables6:25

    Discover what variables are in PHP and how to declare them with a dollar sign and underscored names. Learn to assign values for strings and numbers and echo them.

  • Math Operators7:47

    Learn how PHP handles numbers with simple math operators—plus, minus, multiply, divide, modulus, and exponent using two stars—and how to increment and decrement with ++ and -- for counters.

  • String Concantenation4:40

    Explore string concatenation in PHP using the period operator to join variables and literals, format output with spaces and line breaks, and distinguish concatenation from addition.

  • Comparison Operators7:08

    Explore PHP comparison operators, including equal, not equal, greater than, less than, and their inclusive forms, using numbers and strings, plus assignment vs comparison and case sensitivity.

  • Escape Characters6:04

    Explore escape characters in PHP to print quotes within strings, using backslashes and single or double quotes to prevent syntax errors.

  • If Else Statements7:23

    Learn how to use if else statements in PHP to make decisions with comparison operators and variables like first_name, compare to John, and echo messages or use else.

  • Elseif Statements5:56

    Learn how else if statements extend if else logic to test multiple conditions, control program flow, and produce outputs from sequential tests with examples like num_one and num_two.

  • Numeric Arrays8:04

    Explore numeric arrays in this course: create arrays, access items by zero-based indices with square brackets, and build multi-dimensional arrays with mixed strings, numbers, and variables.

  • Associative Arrays5:39

    Explore how associative arrays in PHP use key-value pairs with non-numeric keys, demonstrated with John, Steve, and Mary's favorite pizzas, and compare them to numeric arrays.

  • Array Count4:03

    Learn to determine the number of items in an array using PHP's count function for both associative and numeric arrays, and access the last item with count(array) - 1.

  • While Loops7:45

    Learn how to implement while loops in PHP, using a counter and condition to repeat actions until the condition becomes false, and avoid infinite loops by incrementing the counter.

  • For Loops4:31

    Learn how the PHP for loop differs from the while loop, with the counter defined and incremented internally, and semicolon syntax.

  • Foreach Loops6:26

    Explore foreach loops to iterate a numeric array of names (John, Steve, Mary) and print each value on its own line in PHP, and compare them with while loops.

  • Functions9:25

    Learn how to create and call your own functions in PHP, pass arguments, return values, and use built-in functions to build web applications.

  • Random Function7:04

    Explore PHP's random capabilities by using rand and mt_rand to generate numbers within a range, select random array items, and learn ranges like 0 to 100.

  • Date Function5:39

    Explore the PHP date function, learn to format and echo dates for dynamic content like copyright notices, using format specifiers (Y, y, L, j, s, F) and escaping.

  • String Manipulation Functions8:04

    Explore PHP string manipulation with string functions like str_replace to swap text and apply changes to variables. Learn case conversions with strtoupper, strtolower, ucwords, and ucfirst, plus strlen and str_shuffle.

  • Include Function5:30

    Learn how the include function brings in variables from separate files, enabling reusable templates and a site-wide copyright statement for a guitar website.

  • Templating Out A Website8:34

    Learn how to template a basic website using PHP include to inject a reusable navigation bar built from Bootstrap, enabling updates across many pages with a single change.

  • Template Practice and Jumbotron6:19

    Create reusable php templates with header and footer files, include them on pages, and use bootstrap container and a jumbotron to build a WordPress site deployed to hosting.

  • Install Git Bash Terminal4:17

    install git bash on windows, compare with mac/linux terminals, download and run the installer, accept defaults, launch the shell, and prepare for creating an ssh key in the next video.

  • Generate an SSH Key3:35

    Learn to generate an ssh key in the .ssh directory to securely connect your Git Bash to GitHub or Heroku; create a public key (id_rsa.pub) for authentication.

  • Initialize Git6:51

    Learn to set up version control with git for PHP web development, initialize git, configure user details, commit changes, and push code to GitHub and Heroku for safe collaboration.

  • Setup Github.com7:06

    Set up your GitHub account and push your PHP project to a repository using SSH keys and git push. Learn how employers review GitHub profiles to assess your code.

  • Install the Heroku Toolbelt4:16

    Install the heroku toolbelt, restart git bash to apply it, and verify the installation, then push php projects to heroku’s free tier, understanding dyno-based scaling.

  • Push Code To Heroku5:04

    Push your code to Heroku with git push Heroku master after logging in and adding SSH keys; if errors arise, consider creating composer.json or a proc file.

  • Heroku Domain Names3:44

    Learn to point a purchased domain to your Heroku app by adding the domain in Heroku settings and configuring a registrar’s CNAME record, using Namecheap or other registrars.

  • Conclusion4:45

    Build a solid PHP foundation from beginner to advanced, learn functions and how to template a website, and explore PHP’s enduring popularity.

  • PHP Cheat Sheet0:12

    Grab the PHP Cheat Sheet Here:  https://codemy.com/php-sheet.pdf

Requirements

  • No programming skills necessary to take this course.
  • A computer with Internet Access is needed to write code

Description

In this course you'll learn everything you need to know about PHP for Web Development.

PHP powers most of the Internet, and using it is much easier than many other programming languages. 

PHP is completely free to use, and you'll be up and running building cool web apps in minutes. 

In this course I'll walk you through the PHP language itself.  You'll learn computer programming fundamentals like:

-Variables

- Math Operators

- Comparison Operators

- If/Else Statements

- Arrays

- Loops

- Functions

- And more!

We'll also learn how to set up an online development environment where you can write your code, and learn all about version control using git and github.

I'll also show you how to host websites for free on the popular Heroku web hosting platform.

PHP is an incredibly useful skill to have, and learning has never been easier!  I'll see you inside!

Who this course is for:

  • Anyone who wants to learn PHP to develop Web Apps