PHP Tutorial: PHP Login Script Creation
4.2 (22 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.
326 students enrolled
Wishlisted Wishlist

Please confirm that you want to add PHP Tutorial: PHP Login Script Creation to your Wishlist.

Add to Wishlist

PHP Tutorial: PHP Login Script Creation

Create Membership Based Communities, Discussion Boards, eCommerce Sites and more after Learning User Registration
4.2 (22 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.
326 students enrolled
Last updated 10/2016
English
Current price: $10 Original price: $20 Discount: 50% off
1 day left at this price!
30-Day Money-Back Guarantee
Includes:
  • 2 hours on-demand video
  • 1 Article
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
What Will I Learn?
  • Understanding User Registration Systems
  • Set up a Database
  • Use HTML to Design Registration Forms
  • Setup Encryption
  • Set up the Hash Function
  • Obtain Data from User Forms
  • Secure Data
  • Check Data Submitted
  • Deal with Errors
  • Verifying Form Submissions Against Database Information
  • Inserting Information into a Database
  • Work with Session Data
  • Create an Activation Database
  • Handle Activation Activity
  • Deal with User Sessions
  • Create "Remember Me" functionality
View Curriculum
Requirements
  • Mac or PC
  • Text editor
  • Free PHP Development Environment
Description

eCommerce... Discussion Boards... Online Communities... even Online Games...

They all have one thing in common: They require users to login and create accounts.

Understanding how to correctly create a login script is an important skill for any web developer. In this compact and crisp course, Alex Bowers takes you through the basics for creating a user management system in PHP. You'll learn how to properly set up the database, use encryption, deal with errors and more.

You can use this course as a template for your own user management system. In two hours, you'll learn everything you need to know to create a user logins, secure them and integrate the user login system in to just about any type of web site.

Who is the target audience?
  • Web Developers
  • Web Designers
  • Students and Teachers in Web Design and Development
  • Application Programmers
  • Anyone who wants to add User Registration Features to an Application
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 21 Lectures Collapse All 21 Lectures 02:02:59
+
Getting Started
4 Lectures 12:47

In this video, Alex Bowers explains what will be taught in this course. The course will cover creating login and registration systems, whirpool encryption, account activation and error checking.

Preview 00:47

Alex shows you how to set up a MySQL user database on phpMyAdmin and the parameters to set for different fields.

Preview 05:25

In which Alex gives you a code to a basic login page and gives you a walkthrough of its elements

Preview 02:07

Alex demonstrates the creation of a salt to be used in the whirpool encryption.

Preview 04:28
+
Register
10 Lectures 01:14:55

Alex displays the basic use of hash_hmac function used to create a secure password to be stored in the user database. The process forms a string of 128 random characters formed with the input of the salt and the password input by the user.

Setting up the Hash Function
03:08

This video explains how to securely obtain the data with the post function and how to connect this data to the database.

Obtaining the Data from the Form
08:46

This video provides explanations of secure database insertions includes the use of trims and MySQL real escape strings.

Securing Data Obtained
02:23

Procedures are taught for checking that the data follows the ranges and limits put in place for better security and use of memory.

Checking the Data Submitted
03:59

Max explains how to notify the user of errors in the data they provided and dynamically display the information.

Error Reporting
12:11

This video provides a walkthough of how to check if the username or email already exist in the database.

Checking Against a Database
05:31

In this video, Alex goes through setting some parameters for your user's input

Inserting into a Database
15:43

Alex shows you how to store Flash Data, which is data that is stored for one page redirect or refresh.

Flash Session Data
09:07

In this video, the activation process is shown through the use of an activation table in the database and the formation of activation codes.

Setup Activation Database
03:05

Handling Activation
11:02
+
Login
6 Lectures 34:48

Alex provides a walkthrough for setting up login.php, which includes minor changes in data fetching and error checking.

Check if the User is Already Logged In
03:43

This video provides instructions for using a sessions table to manage if a user is logged in and gives additional session data for a secure system.

Create Session
03:57

Alex shows the implimentation of the user activation and checking for the user's activation status before logging in.

Check is User is Activated
03:02

Alex instructs how to add a function that checks if the user is logged in based on user-stored session data.

Flash Data Session
16:51

Alex instructs how to add a function that checks if the user is logged in based on user-stored session data.

Error Reporting
02:53

Alex explains the functionality of the remember me button and the use of a cookies in checking if the user is logged in.

Remember Me
04:22
+
Bonus Lecture
1 Lecture 00:31

Here's some bonus material to help you continue learning. 

Bonus
00:31
About the Instructor
LearnToProgram, Inc.
4.4 Average rating
3,855 Reviews
140,782 Students
45 Courses
Learn Web, Mobile and Game Development

LearnToProgram Media is a leading publisher of web, mobile, and game development courses that are used by over 500,000 people in 65 countries. LearnToProgram's valuable network of technical resources includes content on YouTube, iTunes, and Roku, as well as books, free tutorials, and online courses.

With a mission of “teaching the world to code" LearnToProgram instructors are teachers first and technical experts second. Their primary skill is relating complex technical information to nontechnical people learning web, mobile and game development. The entirely online, self-paced sales model allows students to learn at their own pace.

With over 40 courses on the market, LearnToProgram offers students flexible programs in web development, mobile application development and game development. Currently the company's most popular online courses include Become a Certified Web Developer and 10 Apps in 10 Weeks.

The company is based outside of Hartford, Connecticut.

Alex Bowers
3.7 Average rating
243 Reviews
41,996 Students
3 Courses
A Software Engineer from Manchester, UK

Alex Bowers started his programming career learning PHP and MySQL for a small project that he wanted to complete. Upon completion of the project, Alex was hooked, and looking to expand his knowledge of programming.

Since then, in his pursuit for knowledge, Alex started teaching others. He started teaching in 2009 on YouTube, amassing over 2,000 subscribers. Since then, he has moved on to teach Python, jQuery, Javascript, HTML, CSS, PHP and MySQL. Alex's primary expertise resides in Web Development, however he has also played his hand at Android and iOS development.

Since Alex began teaching, he has been an active member of the developer community, contributing to Open Source projects and administrating a forum at PHPacademy.

The goal for Alex is simple. To create the best content available for an affordable price, to enable thousands of others to learn what he has learnt, and to expand his own knowledge in the process. To date, Alex is certainly on track, having taught over 100,000 people on Udemy, and many more elsewhere.