Learn PHP Programming From Scratch

Over 40 hours of PHP programming goodness.
4.3 (377 ratings) Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
27,107 students enrolled
$200
Take This Course
  • Lectures 377
  • Contents Video: 51.5 hours
    Other: 0 mins
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

Learn and practice real-world skills and achieve your goals.

About This Course

Published 3/2013 English

Course Description

Do you want to be a web developer? Do you need to brush up on your PHP skills? Then you're in the right place!

This is the most comprehensive PHP course on Udemy. You will learn everything from the basics to more advanced PHP programming using real world examples and sample projects.

Check out the free sample videos to get a free taste of PHP!

This course is updated regularly with new content and new projects to work on, so even if you get through the entire course, there will always be more the next time you log in.

What Is PHP?

PHP is an open source (free) scripting language that allows you to create dynamic websites and work with servers. PHP is now used on over 20 million websites and over 1 million servers worldwide.

What are the requirements?

  • A Computer
  • A Desire to Learn

What am I going to get from this course?

  • Demonstrate understanding of PHP programming
  • To learn the basics of PHP programming
  • To learn PHP programming by working on projects
  • To learn intermediate and advanced PHP programming

What is the target audience?

  • Aspiring web developers
  • Current web developers
  • PHP developers

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.

Curriculum

Section 1: Getting Started
00:37

Sign up for our newsletter

17:13

An introduction to the course, and a great introduction to PHP for those of you who are new to it

Sign up for our newsletter.

What Is PHP Used For?
08:48
Section 2: Learn the Basics of PHP Programming
Commenting Code
03:37
Setting Up A Web Server
07:50
05:20

The echo language construct allows you to output data to the browser. Also, a quick word about the print language construct.

* Section 2 source codes can be downloaded from the right side of the page.

Sign up for our newsletter.

07:25

How to store values into variables, the rules for variable naming and how to output them to the user

Sign up for our newsletter.

07:54
A look at IF, IF ELSE and IF ELSEIF ELSE statements, with a example to help you understand the uses. Uses comparison operators in the example, which you can learn more about from our other videos.
06:37
The arithmetic operators within PHP, with examples using them. Talks about addition, subtraction, multiplication, division, modulus (remainder), increment and decrement. 
08:44
Comparison operators allow you to compare values. For example, is the person old enough to do something?
04:44
The triple equal (===) compares not only values, but data types too.
09:27
A look at logical operators, and detailed examples of how and why we use them. The use of NOT is outlined in my other videos.
08:10
The switch statement offers a faster, cleaner way of comparison. This tutorial provides a couple of examples of using the switch statement.
08:52
How to create an array, and assign values to either default or defined keys. Also speaks about foreach construct briefly.
07:11
Creating a multi-dimensional array following on from the previous example in the array video tutorial by phpacademy. This will show you how to create up to 3 dimensions, with an example of being able to store properties for each name
05:55
The while loop, it's syntax, and an example of counting numbers.
04:30
The do while loop, it's syntax, how it differs from a while loop, and an example of counting numbers
05:04
The for loop, it's syntax, and an example of counting numbers.
06:37
Explains the use of foreach construct for obtaining keys and values from an array, and displaying them
08:24
Why functions are useful, how to declare them, and a few examples.
13:54
Function parameters don't need to be defined, and the use of this method means you can pass as many values to a function without defining them
05:22
Format decimal points, or display numbers in thousands, etc. with commas to separate. We also look at reducing the amount of characters after the decimal point of a number. 
12:59
$_GET allows values to be read in through the page URL (e.g. index.php?name=Alex). This example shows how to read these in, and how to incorporate a form as to submit these variables
07:51
$_POST allows values to be read in through the HTTP POST method. This example shows how to read these in, and how to incorporate a form as to submit these variables. 
09:55
How to embed PHP inside HTML, including an example with a form and a textarea. Please ensure you use the htmlentities() function, wrapped around your $_POST['name'], when submitting data to be displayed on a page
05:29
A much better, faster way of displaying HTML within PHP. In this example, in an IF ELSE statement.
11:12
A more in depth look at arrays with some examples. Includes, creating and adding to arrays, dumping array contents and creating a function to output values from a specific array
12:50
A more in depth look at arrays with some examples. Includes, creating and adding to arrays, dumping array contents and creating a function to output values from a specific array.
06:51
Cookies store data on the users computer ready for the server to read back from them. I show you how to set, show, check for and destroy cookies in this tutorial
03:32
Cookies store data on the users computer ready for the server to read back from them. I show you how to set, show, check for and destroy cookies in this tutorial
08:44
An introduction to submitting and processing checkboxes with PHP.
10:05
An introduction to submitting and processing radio buttons with PHP.
Section 3: Intermediate PHP
06:32

Simelar to cookies, sessions store data, but data is destroyed when the connection is lost (i.e. browser is closed). I show you how to create, show, and unset sessions.

      • * Section 3 source codes can be downloaded from the right side of the page.

10:08
Exploding a string will split a string by a specific character (a delimiter) and place each broken string into an element within an array. This tutorial covers the basic concept of exploding strings with PHP, with an example.
16:06
Imploding an array will take each element, and create a string, including a specified delimiter. This tutorial covers the basic concept of imploding arrays with PHP, with an example
07:50
The ternary operator is essentially an inline IF statement, saving a lot of time and lines of code. In this tutorial we shorten around 9 lines, to 2.
01:47
Quickly return true or false from a function. A handy tip that should save some time! 
05:41
Splitting a string by an unlimited (or, large) amount of spaces. Useful for splitting up search terms to process keywords. We use a very simple regular expression here, in conjunction with the preg_split function
04:37
Simply generate a random number with PHP.
Section 4: PHP Data Objects (PDO)
05:45
 Connecting to a database with PDO, using one of the available PDO drivers. In this case, we're connecting using MySQL.
03:05
Now we've connected to MySQL and selected our database using PDO, we need to query our database and return a result set. We look at returning all results, or results that can be looped through (fetching next row with each loop). We also look at returning in both associative and numerical arrays.
04:12
Using a PDOStatement method, we can return the amount of rows that were affected by our last query, which can be very useful!
08:40
Binding values to a query offers SQL injection protection. Here, we look at an example of searching a database table for user defined input, and injecting this value into the query.
06:28
We can set the error reporting attribute of the PDO object so methods throw exceptions on error. We can then make use of a try catch block to catch thrown exceptions.
05:02
Here, we look at simply returning the last inserted ID for the last executed query
08:57
Transactions offer the benefit of 'storing' a sequence of queries to be committed. This benefit means we can roll back these queries if an exception is thrown.
Looping
05:02
Fetch all
05:15
Fetch as object
08:16
Row count
06:56
Project - user class dates
09:51
Escaping
07:27
Prepared statements
06:18
Inserting
07:14
Last inserted id
04:01
Section 5: PHP and MySQLi Database Integration
Introduction
05:21
Conecting to a database
07:55
Connecting using php
09:42
Creating database table
03:38
Pulling single record
04:43
Pulling multiple records
09:11
Different result types
05:26
Counting results
09:25
Updating and affected rows
04:46
Escaping
12:33
Prepared statements for inserting
08:14
Selecting prepared statements
05:42
Free result
02:48
Closing db connection
02:14
Section 6: Working with Laravel 4
Introduction to Our Project
06:03
Installing Laravel
01:17
The Database
04:52
Creating the Home Page
11:35
Templating
09:08
PDO and SMTP E-mail
12:38
Creating Accounts Part 1
18:12
Creating Accounts Part 2
25:36
E-mail Activation
17:44
Signing In
18:04
Signing Out
05:34
Remember Me
04:17
Changing Passwords
19:50
User Profiles
07:16
Account Recovery
31:12
Migrations
07:47
Section 7: Common PHP Errors
Changing Maximum File Upload Size
08:26
Cannot Modify Header Information
04:21
Undefined Index
09:05
Unexpected $end
06:53
Supplied Argument Not A Valid MySQL Result Resource (MySQL)
10:49
Access Denied (MySQL)
05:16
Section 8: PHP Security
Cookies
11:20

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Stone River eLearning, 180,000+ Happy Udemy Students | 320,000+ Students Worldwide

At Stone River eLearning, technology is all we teach. If you're interested in programming, development or design - we have it covered. 

Check out our huge catalog of courses and join the over 320,000 students currently taking Stone River eLearning courses. We currently offer 125+ different technology training courses on our Stone River eLearning website and are adding new courses on hot and trending topics every month. A subscription option is available for those with a real passion for learning.

Ready to start learning?
Take This Course

10 Things
Every PHP Developer
Should Know

 

Spend enough time around other developers, and you'll inevitably find that they are a knowledgeable bunch who typically enjoy solving problems and sharing opinions. After hanging around with the PHP developers on reddit's r/php, Mygaming came up with a list of things he learned from his peers. Which got us thinking, what are some of the things that every PHP Developer should know?

With Mygaming's list as inspiration, we set out to illustrate his ideas and round out the topic with a few essential insights of our own.

As a bonus, if you find yourself in a room of PHP developers and want to kick off the conversation, items 3–7 are usually good for a lively debate. Take a stance and let the good times roll!

Use This Code to Share The Image On Your Site