This course organizes and presents course material to enable students to learn by themselves.
This course is composed of the following lessons:
- Introduction: Introduction to the content and structure of the course
- Project: miniFacebook: Description of the project of the course
- XAMPP: Installation and configuration of the web application framework
- New HTML5 Elements: New HTML5 semantic elements (header, hgroup, nav, article, section, aside, time, mark, footer) and form controls (email, url, date, time, etc.)
- First Web Pages of the Project: First web pages of the project: home page, new user register form, search form, and login form
- Basic Syntax: Basic syntax of the language: PHP tags, instruction separation, and comments
- Including one File into another File: How to include a file into another file to split a web page into different files
- Web Page Template: How to create a web page template and split the content in different files
- Variables, constants, expressions, and operators: Variables and constants are used together with operators to create expressions
- Variable Exercises: Exercises about variables
- Control Structures: Control structures in PHP: if, else, elseif, else if, while, do/while, for, foreach, break, continue, switch/case/default
- Syntax Exercises: Exercises about PHP syntax
- Arrays: Creation of arrays and useful functions
- Array Exercises: Exercises about arrays
- Predefined Variables: Predefined variables or built-in variables available to all scripts
- Getting Data from a Web Form: $_GET and $_POST
- Example of Getting Data from a Web Form: An example of getting data from a web form
- Users Validation against an Array: Validation of users using an array that stores usernames and passwords
- Hashing a String: Use of MD5 hash to encrypt a string
- Storing Passwords Securely: MD5 hash is used to encrypt passwords
- Creating a Database: Creation of a MySQL database with phpMyAdmin
- Accessing a Database: Accessing a MySQL database from PHP
- Database Connection Library: The connection and selection of the database are put in a different file
- Users Validation against a Database: Validation of users using a table in a database that stores usernames and passwords
- Inserting Data Into a Database: How to insert information into a database
- Registering a New User: Registration of a new user
- Keeping Users' Information Through Web Pages: How to keep information about a user from one page to another page
- Checking if User Is Logged: How to check if the user is logged and can access the private area of a web application
- Security of Web Applications: Advices to secure a web application
- Donwload Project miniFacebook: Download all the files of the project miniFacebook
The presentations of this course can be freely downloaded from the Digital Archive of the University of Alicante: Web Programming with PHP.