Free PHP Tutorials

home Stay at Home and Learn

Beginners PHP

Computer Tutorials List
 
PHP Quick Links
 

This is a complete and free PHP programming course for beginners. Everything you need to get started is set out in section one below.

  > PHP Section One - An Introduction to PHP  
 


1. What is PHP and Why do I need it?

2. What you need to get started


3. Installing and testing Easy PHP

4. Troubleshooting

 
  > PHP Two - Getting Started With Variables  
 


1. What is a Variable?

2. Putting text into variables

3. Variables - some practice

4. More variable practice

5. Joining direct text and variable data


6. Adding up in PHP

7. Subtraction

8. Multiplication

9. Division

10. Floating point numbers

 
  > PHP Three - Conditional Logic  
 


1. If Statements

2. Using If Statements

3. if ... else

4. if ... else if

5. Comparison Operators

6. NOT Equal To


7. Less Than and Greater Than

8. What these mean: <=, >=

9. The Switch Statement

10. Logical Operators

11. Boolean Values

12. Operator Precedence - a List

 
  > PHP Four - Working with HTML Forms  
 


1. The HTML Form

2. The Method Attribute

3. The Post Attribute

4. The Action Attribute

5. The Submit button

6. Getting values from a Text Box


7. Checking if the Submit button was clicked

8. More on the ACTION attribute

9. Keep data the user entered

10. PHP and Radio Buttons

11. PHP and Checkboxes

 
  > PHP Five - Programming Loops  
 


1. For Loops

2. A Times Table Programme

3. The Code for the PHP Times Table


4. While Loops

5. Do ... While loops

6. The break statement

 
  > PHP Six - Arrays in PHP  
 


1. What is an Array?

2. Setting up an Array in PHP

3. Getting at the values stored in Arrays

4. Arrays - Using Text as Keys

5. Arrays and For Each


6. Sorting Array values

7. Random Keys from an Array

8. The count function

9. Some Array Scripts

  > PHP Seven - String Manipulation  
 


1. Changing Case

2. Trimming White Space

3. Shuffle characters

4. Finding String Positions with strpos


5. Splitting a line of text

6. Joining text into a single line

7. PHP and Escaping

8. String function list

 
  > PHP Eight - Create your own Functions  
 


1. An Introduction to Functions

2. Variable scope and functions

3. Functions and Arguments

4. A Function to check for blank text boxes

5. Getting values out of functions


6. By Ref, By Val

7. PHP Server Variables

8. HTTP Header() Function

9. The INCLUDE( ) Function

 
  > PHP Nine - Security Issues  
 


1. Security Issues And Form Elements

2. htmlspecialchars( )


3. strip_tags( )

 
  > PHP Ten - Working With Files In PHP  
 


1. An Introduction to Working With Files In PHP

2. Opening a file with readfile( )

3. Opening a file with fopen( )

4. Options for fopen( )


5. Writing to files

6. Working with CSV files

7. Reading a text file into an array

8. File Locations

 
  > PHP Eleven - Date and Time Functions in PHP  
 


1. The date( ) function

2. Using the date( ) function


3. The getdate( ) Function

 
  > PHP Twelve - PHP and MySQL  
 


1. What you need for these Tutorials

2. Creating a database using phpMyAdmin


3. Setting up Fields in database tables

4. Adding records to a MySQL Table

 
  > PHP Thirteen - Manipulate a MySQL Database  
 


1. Access a MySQL database with PHP code

2. Reading records from a MySQL database

3. Adding records to a MySQL database

4. Magic Quotes

5. SQL injection


6. Create a Table using SQL

7. Updating a record in a table

8. Deleting a record in a table

9. Using WHERE to limit the data returned

 
  > Walkthrough One - PHP User Authentication
 


1. PHP User Authentication - Introduction

2. The login page

3. Checking if the user is logged on


4. Log Out

5. Register a new user

6. Other considerations

 
  > Walkthrough Two - Build your own PHP Survey/Poll Application
 


1. Build your own Survey Application - Intro

2.The Database for the Survey

3. Setting a question – the code


4. The Code for the Survey

5. Add the Vote to the Database

6. Viewing the Results of the Survey

 

 

> Walkthrough Three - How to Build an Online Forum: the database
 


1. Introduction to the Forum

2. Setting up a Database for a bigger project

3. The Forum Sections Table


4. The Members Table

5. The Post Tables

6. The Reply Tables

 
  > Walkthrough Four - The Code for the Forum
 


1. Code Strategies and Objectives

2. The forumTest.php page

3. The pageThread.php page

4. 2D Arrays and PHP

5. How many replies are there for each post

6. Find out which member posted

7. Print the table out


8. The pageReply.php Code

9. The Reply Form

10. The results.php page

11. Posting a Topic on the Forum

12. The resultsP.php page

13. Final Project