PHP Tutorial

PHP File Handling: Reading File

Submitted by joken on
In this tutorial I'm going to show how to read back information from files. So before we can read information from a file we need to use a function fopen just to open the file for reading. In this lesson, we’re going to use the “hello.txt” file that we created in the writing of file lesson. To start in this lesson, we are going to create a new PHP file called "readfile.php".

Task Management System

Submitted by Yorkiebar on
Introduction: This tutorial will is going to be on how to create a task management system in PHP... it's going to be a long one! Pre-creation: First you will need a host for your PHP, either a web host or localhost is fine but you will need PHP and MySQL(i) capabilities. Database: We are going to be storing all of the created tasks in a database named 'tasksTutorial', and in there a table named 'tasks'. Let's create these now; Go to PHPMyAdmin and enter 'tasksTutorial' followed by pressing the 'create' button.

PHP Security (Form, Password Encryption, Fake Options)

Submitted by Yorkiebar on
Introduction: This tutorial will cover adding security in to your forms with PHP/HTML. Pre-creation: I am going to be using my login form as an example for this page, you can find my tutorial on a login form here; Login Form Tutorial. What security flaws are there? Whenever a user enters data in to your web forms the data gets processed as it is, and as such, needs the creator to add in security checks.

PHP Basic Syntax

Submitted by Yorkiebar on
Introduction: This tutorial will cover the basic syntax of PHP files. What is syntax? Syntax is defined as "the structure of statements in a computer language." and as such refers to the format of the given scripts. Importance of correct syntax Having correct syntax in any script is extremely important.

PHP include

Submitted by joken on
In PHP, it is necessary to use PHP include command. Because include takes a file name and simply inserts that file content into the script that issued the include command. Including files saves a lot of work, it means that you can create a standard header, footer and menu file that is available to all web pages.

PHP Comments

Submitted by joken on
One of the best programming practice is using a Comment. A comment is a string code or text within PHP or any programming languages that is not visible during the execution in your web browser. And it provides the feedback to the developers or it temporarily disable the code and the most important thing is that comment serves to give some information about the code. In PHP, there are two types of Comment.

Getting The Difference of Two Dates Using PHP

Submitted by argie on
This tutorial will teach you on how to get the difference of the two dates using PHP datetime function. You will also learn in this tutorial on how to use tigra calendar in making popup date. To understand more fallow the step bellow.

Creating Our Form and Connecting Tigra Javascript

The code bellow will give us the form that allow us to pick two date to be subtracted. The selection of date is powered by tigra popup calendar.