PHP for Beginners
4.6 (922 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
4,857 students enrolled

PHP for Beginners

Build a Content Management System from Scratch with PHP and MySQL
4.6 (922 ratings)
Course Ratings are calculated from individual students’ ratings and a variety of other signals, like age of rating and reliability, to ensure that they reflect course quality fairly and accurately.
4,855 students enrolled
Last updated 2/2020
English
English [Auto-generated]
Current price: $69.99 Original price: $99.99 Discount: 30% off
5 hours left at this price!
30-Day Money-Back Guarantee
This course includes
  • 14 hours on-demand video
  • 2 articles
  • 2 downloadable resources
  • 12 coding exercises
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Training 5 or more people?

Get your team access to 4,000+ top Udemy courses anytime, anywhere.

Try Udemy for Business
What you'll learn
  • Learn how to create a dynamic website using the most popular website programming language
  • Build a working CMS in PHP and MySQL from scratch
  • Learn how to secure your code
  • Learn how to write reusable, more maintainable code using programming standards
  • Learn how to structure your code using object-oriented programming techniques
  • Learn the theory but then put it into practice in a CMS project
  • Style your site using Bootstrap
  • How to integrate third-party code into your site
  • How to store data in a relational database and use this from PHP code
  • Learn all aspects of a basic web application in PHP: login, CRUD operations, sending emails, uploading files, Ajax
Course content
Expand all 199 lectures 14:11:22
+ Introduction
1 lecture 01:32

In this video we'll look at how to get the most out of the course, how to access the code shown in the lectures, and how to get help if necessary.

Preview 01:32
+ Software Installation and Setup
7 lectures 24:44

In this video we'll look at the recommended software you need to install on your computer to start learning PHP.

Preview 02:39

In this video we'll install the XAMPP web server, database server and PHP package on Microsoft Windows.

Preview 04:34

In this video we'll install the XAMPP web server, database server and PHP package on Mac OS X.

Install XAMPP on MAC OS X
05:30

In this video we'll install the XAMPP web server, database server and PHP package on Ubuntu Linux.

Install XAMPP on Ubuntu Linux
03:49

In this video we'll install the open-source Atom code editor on Microsoft Windows.

Install Atom on Windows
02:24

In this video we'll install the open-source Atom code editor on Mac OS X.

Install Atom on MAC OS X
03:24

In this video we'll install the open-source Atom code editor on Ubuntu Linux.

Install Atom on Ubuntu Linux
02:24
+ Variables
6 lectures 25:26

In this video you'll write your first PHP code to display a message in the web browser. We'll also look at how websites and PHP work, sending data to the browser.

Preview 03:58

In this video you'll learn what variables are, and how to create them in PHP. We'll also look at how to name variables, including best practices.

Variables in PHP: What They are, How to Create Them, and How to Name Them
04:16

In this video you'll learn how to create variables containing different types, starting with strings and numbers, including integers and floating point values.

Basic Variable Types: Strings and Numbers
04:58

In this video you'll learn how to create variables containing boolean values (true and false) and the special null value.

Basic Variable Types: Boolean and Null
03:02

In this video you'll learn how to perform operations on variables, such as mathematical operations like add, multiply and so on; and operations on strings like concatenation.

Perform Operations on Variables: Operators
05:36

In this video you'll learn the difference between using single quotes and double quotes when creating a string variable. You'll also learn how to do variable interpolation, inserting a variable directly into a string.

Preview 03:36

Test your knowledge of basic PHP concepts, and variables and operators.

PHP concepts, variables and operators
9 questions
Variables and Operators
1 question
+ Arrays
5 lectures 21:24

In this video you'll learn what arrays are, the two methods for creating an array variable in PHP and how to access individual array elements

Preview 05:04

In this video you'll learn how to assign manual array indexes to array elements, and how to use strings as array indexes to create associative arrays.

Assign Manual Array Indexes and Create Associative Arrays
03:39

In this video you'll learn how to create multidimensional arrays, or arrays of arrays, and also how to access values inside them

Create and Access Multidimensional Arrays
06:46

In this video you'll learn your first control structure in PHP: the foreach loop, and how to use this to process each individual element of an array when you don't know how many elements are in the array.

Process Each Element of an Array: foreach Loops
03:24

In this video you'll learn how to use a foreach loop to access the index of each array element in addition to its value.

Process the value and index of each array element using a foreach loop
02:31

Test your knowledge of arrays in PHP.

Arrays
7 questions
Arrays
1 question
+ Control structures
6 lectures 23:08

In this video you'll learn how to run code based on a condition, using an if statement. You'll also learn how to run alternative code by extending the if statement using an else block.

Run Code Conditionally: the if Construct
05:30

In this video you'll learn how to compare one value to another using the various comparison operators that PHP provides, for example equals, not equal, less than, greater than or equal to and so on.

Compare One Value to another: Comparison Operators
04:29

In this video you'll learn how to execute a block of code multiple times based on a condition, using a while loop control structure.

Run Code Multiple Times Based on a Condition: While Loops
03:02

In this video you'll learn how to execute a block of code a specific number of times using a for loop.

Run Code a Specific Number Of Times: For Loops
04:12

In this video you'll learn how to add more conditions to an if else statement using elseif blocks with additional conditions.

Preview 02:43

In this video you'll learn how to use an alternative to many elseif statements: the switch statement. You'll learn how it's used to compare a variable or value to many different values and execute code based on that comparison.

Perform Different Actions Based on Different Conditions: The Switch Statement
03:12

Test your knowledge of control structures and comparison operators in PHP.

Control structures and comparison operators
8 questions
Control structures and comparison operators
1 question
+ An Introduction to HTML
8 lectures 36:27

In this video you'll learn what HTML is, and how it's used to markup text to tell the browser how it's structured. You'll also learn the two types of HTML element, and how to add attributes to an HTML tag.

The Language of Web Pages: an Introduction To Html
05:50

In this video you'll learn how to structure an HTML document using head and body sections, and how to add the title to the top of the browser window using the title element.

Use Head and Body Elements to Structure An Html Document
05:36

In this video you'll learn how to structure the content using header elements and paragraphs.

Structure the Content of your Page Using Heading and Paragraph Elements
02:54

In this video you'll learn how to emphasise or give text importance using the em and strong elements

Give Text Emphasis or Importance Using the em and Strong Elements
03:19

In this video you'll learn how to display lists of items in HTML, using ordered lists that have numbers, and unordered lists that have bullet points

Display Ordered and Unordered Lists of Items
03:55

In this video you'll learn how to insert images into an HTML document, including best practices for referencing the image

Insert Images Into an Html Document
05:32

In this video you'll learn how to create a link from one page to another in an HTML document, using the anchor tag.

Add a Link from One Page to Another Using a Hyperlink
04:17

In this video you'll learn how to divide up your HTML code semantially using semantic sectioning elements like header, nav, main, article, section and so on.

Add Semantic Structure to The Body of an Html Document
05:04

Test your knowledge of the basics of HTML.

HTML
9 questions
HTML basics
1 question
+ Mixing PHP and HTML
5 lectures 22:22

In this video you'll learn how to mix PHP and HTML to display dynamic content inside an HTML document. You'll also learn how to use the PHP opening and closing tags inside an HTML document, and the shortcut syntax for echoing out a value.

Create Dynamic Content: Mixing HTML and PHP
07:05

In this video you'll learn the best way to mix PHP control structures like if, foreach and so on with HTML, using an alternative syntax where necessary.

Use PHP Control Structures Mixed with HTML
04:32

In this video you'll learn how to make your HTML documents easier to read by using whitespace characters (spaces, tabs, newlines and so on) and comments

Make HTML More Readable: Use Whitespace and Comments
04:49

A temporary addendum describing a change to the following video.

Addendum: changes to the available resources in the following video
00:16

In this video you'll learn how to make your PHP code more maintainable and portable by using comments and coding standards, such as PSR-2

Make PHP Easier To Maintain: Use Comments and Coding Standards
05:40

Test your knowledge of mixing PHP and HTML.

Mixing PHP and HTML
7 questions
Mixing PHP and HTML
1 question
+ An Introduction to Databases
8 lectures 47:01

In this video you'll learn why we store data in a dynamic website in a database, and how this relates to the web server and PHP.

Preview 03:33

In this video you'll learn how to use the phpMyAdmin tool to connect to the database server and create a new database, ready to store data.

Access the Database Server Using phpMyAdmin And Create a Database
07:52

In this video you'll learn how structured data is stored inside a relational database, and you'll use phpMyAdmin to create a new table to store articles. You'll also learn best practices for naming tables inside a database.

Use Tables to Store Structured Data in a Database
08:55

In this video you'll learn how to access data in the database using structured query language, or SQL. You'll learn how to use the SELECT statement to select all or some columns, and how to use the WHERE clause to restrict the data returned based on one or more conditions.

Select Some Data from The Database: An Introduction to Sql
06:00

In this video you'll learn how to use indexes to make queries faster when selecting data using the SELECT statement in SQL. You'll also learn how to return the results ordered by one or more columns using the ORDER BY clause.

Using Indexes: Make Queries Faster and Order the Result Set
06:08

In this video you'll learn how to connect to a database from a PHP script using MySQLi.

Connect to the Database from PHP
04:55

In this video you'll learn how to send an SQL query to the database from PHP and how to get the results back to display them.

Query the Database from PHP And Get the Results
05:20

In this video you'll combine PHP and HTML to retreive some data from the database using PHP, and display it in the browser using HTML to format it.

Combine PHP and HTML to Show a Formatted List of Articles
04:18

Test your knowledge of using databases with PHP.

Databases
7 questions
Databases - connecting and selecting data
1 question
+ Multiple Pages in PHP
5 lectures 26:00

In this video you'll learn how to add another page, this time to select and display one record from the database instead of several. You'll learn how to display a message if the record isn't found in the database.

Add a New Page to Show a Single Article
03:23

In this video you'll learn how to pass data to a script in the URL using the query string, and how to access it in PHP using the $_GET superglobal.

Passing Data in the URL: Send the Article ID Using the Query String
05:35

In this video you'll learn what an SQL injection attack is, and how to avoid it for simple values in SQL

Preview 05:03

In this video you'll learn how to extract repeated code out into a separate file, and how to include that file in another script. You'll also learn the difference between include and require, and include_once and require_once.

Don't Repeat Yourself: Extract Repeated Code to a Separate File
07:29

In this video you'll learn how to use an .htaccess file to secure access to an included file

Organise and Secure Access to the Included Files
04:30

Test your knowledge of adding multiple pages to PHP; how to secure them and how to avoid database security issues.

Multiple pages in PHP
6 questions
Multiple pages in PHP
1 question
+ An Introduction to HTML Forms
12 lectures 51:57

In this video you'll learn how to create a form in HTML so the user can submit data to a PHP script. You'll also learn how to retrieve that data in PHP.

Getting Data From the User: An Introduction to Forms in HTML
05:22

In this video you'll learn what the two different form methods are, GET and POST, how to use them and what they are for.

Change the Method the Form Uses to Send its Data: get vs post
05:20

In this video you'll learn how to create basic input types in a form: text, password, number and so on. You'll also learn what these look like in different browsers, and what happens when a browser doesn't support one of the more recent types introduced in HTML5.

Get Different Types of Data from the User: Basic Input Types
05:07

In this video you'll learn how to access the data submitted from the form in PHP. You'll also learn how to submit a form using button elements, and how to name the form controls and access specific inputs in a script on the server.

Access Data from the form on the Server
05:16

In this video you'll learn how to create an input control that has multiple lines of text: the textarea element

Add a Multi-line Text Control: the textarea Element
02:28

In this video you'll learn how to use a select element to present a fixed list of options in a form, using option elements inside the select element

Present a Fixed List of Options: the Select Element
03:57

In this video you'll learn how to use inputs of type checkbox to present an option that can be toggled on or off. You'll also learn how the values from checkboxes are submitted, and the best way to use multiple checkboxes in a form.

Toggle an Option on or off: checkboxes
04:02

In this video you'll learn how to use radio inputs to present a list of options where only one option can be selected at once, deselecting other options.

Select only one Option from a List: Radio Buttons
02:58

In this video you'll learn how to add a text caption to an input that is associated to that input, which is better for accessibility. You'll also learn how to check checkboxes and radio buttons by clicking the text next to that control using label elements.

Add an Accessible Caption to Each Input: the Label Element
05:35

In this video you'll learn how to make the form easier to use by grouping controls together in fieldsets, and how to use placeholder text to give the user a hint as to what to put inside a control.

Make the Form Easier to Use: fieldsets and placeholders
02:48

In this video you'll learn about common form attributes and how they affect input controls: making them readonly, disabling them, and setting the focus automatically when the form is loaded.

Common form Control Attributes: readonly, disabled and autofocus
02:41

In this video you'll learn how to validate the data in a form before it's submitted using HTML5 form validation attributes. You'll also learn how inputs of different types automatically validate the type of data entered into them depending on the type of the control.

Validate Input Using HTML5 form Validation
06:23

Test your knowledge of HTML forms.

Forms in HTML
11 questions
HTML Forms
1 question
Requirements
  • Access to a computer running Windows, Mac OS X or Linux.
Description

Are you wanting to get into Web development, but are not sure where to start? 

So maybe you tried out some PHP and MySQL tutorials on Youtube, but found them too hard or outdated, and feel that you need a more comprehensive introduction.

Maybe you want to learn how to write PHP the right way.  Secure code, OOP ready, and maximising re-usability as well as finding out about PHP programming standards to adopt and adhere too?

Perhaps your boss or client threw you in the deep end with a PHP and MySQL project, and you need to get up to speed with PHP, fast.

Whatever the reason, this course is for you.

This course is going to teach you how to create web applications using PHP and MySQL.  Specifically, you will learn PHP and then create you own content management system (CMS) from scratch.

Why PHP?

PHP is the most popular website programming language in the world.  The combination of PHP and MySQL is used extensively to create web applications, and developers with these key skills are in high demand.  This course is going to teach you how to create web applications in PHP using the MySQL database.

What will you learn in this course?

You will learn  how to create a dynamic website using the most popular website programming language in the world, PHP.

Dave Hollingworth, your instructor will teach you the PHP programming language, and take you through the steps to build a working CMS in PHP and MySQL from scratch.

Along the way, you will learn how to secure your code, how to write reusable, more maintainable code using programming standards, and how to structure your code using object-oriented programming techniques.

Dave will teach you the theory and then put the theory into practice when building the CMS.

You will also learn how to style your site using Bootstrap, how to integrate third-party code into your site, how to store data in a relational database and use this from PHP code, and more.

The course is very thorough, and goes through everything from installing a web server on your own computer, and editor to writing the code to create your web app.  Towards the end of the course you will even learn how to upload the code and make your code live on the internet (very useful if you already have your own Hosting account).  This is not necessary to complete the course though.

In summary, the course will teach you the core skills you need to know to become a productive PHP programmer.

Why this course?

Firstly, Dave has been creating web applications since 1999, when he created his first web application for a major insurance company.  In addition he has been teaching IT for many years.

As a result, you will be learning the best practices from an experienced developer.

Dave will teach you the theory but then show how to put those techniques into practice.  You will start building a CMS application from early on in the course and new techniques and theory are introduced as and when they're needed to build the next part of the CMS.

New code is introduced one word or one line at a time, so you will never get bogged down or overwhelmed.

You will also learn real-world developer skills such as referring to and getting the most out of the documentation. This is an essential skill for developers to learn.

After completing this course, you will have the necessary skills to be able to create your own web applications with PHP and MySQL.

The sooner you sign up for this course, the sooner you will have the skills and knowledge you need to increase your job or consulting opportunities.    PHP developers are in high demand!

Your new job or consulting opportunity awaits!  

Why not get started today?

 Click the Signup button to sign up for the course!

Who this course is for:
  • Anyone wanting to learn both the PHP language and how to create web applications