Working with Cookies in PHP

As you might be aware http is a stateless protocol, it cannot remember information between pages. A way to remember information from page to page is to use cookies. This is one of the main reason why we use cookies. [...]

Sometimes it is required that files are to be uploaded on the server for ex. You want some sort of pictures or documents as input, in such case a special form element is used. [...]

Since in our previous tutorial we have learnt the HTML form and its methods now we will learn the elements which can be used with HTML form in this tutorial. Normally form elements are used for taking various inputs from user. [...]

In this tutorial we will discuss how HTML can be used with PHP. The flexibility with PHP is that you can integrate HTML code with PHP and on the other hand you can integrate PHP with HTML code as well. [...]

In this tutorial we will learn some of the very important function used for file manipulation. The basic set of operations which can be performed on file is create, open, read, write, close and delete, PHP provides set of functions for all this operations. Let’s learn them all in detail. [...]

In this tutorial we will learn some of the important functions used with array. Let’s start with the most important function which is used for creating array variable. [...]

In this tutorial we will learn some of the basic math functions used in PHP. abs() This function returns the absolute (positive) value of the given number. [...]

By far we have learnt some of string function, in this tutorial we will continue our discussion of string functions with some more important functions. [...]

Let’s learn the first type of inbuilt function that is String Functions. A string function is used for manipulating strings. There are various string functions which are used to perform some operations with strings. [...]

Function is a block of code which when executed performs specific task. The main reason for using function is code reuse, write once execute any time. There are times when you need to write the same set of code more than once in your program in such case we can use function. [...]

An array is a storage area where more than one values can be stored. In simple terms array is a collection of variables of same type. In PHP an array has mainly two things, Key (Index) and Value. Keys are referred to as index. An array is a special variable, which can hold more than one value at a time. [...]

Loops are normally used for iterations, which is useful when some set of statements needs to be processed number of times. In PHP there are different types of loops provided as listed below. 1.while loop 2.do while loop 3.for loop 4.foreach loop [...]

PHP decision making or conditional statements are the statements which are used when we want to check for specific condition and based on that we want to decide which part of our PHP script is to be executed. Here to check the conditions mostly we will use relational operators. [...]

PHP is loosely typed language you need not to define the data type for variable every time you try to create any variable, but still there may be situation when it is required to identify the data type. Data type specifies the type of data you can store in your variable. [...]

Let’s start discussing operators in PHP now. An operator takes some values(we call them operands) and performs specific operation. [...]

A variable is name given to memory location which is used to store particular value. These values may be fixed or it can be dynamic. [...]

PHP is a scripting language, so the scripts which you create using PHP needs not to be compiled rather it’s interpreted directly on the go at run time. [...]

After knowing the basic concepts of PHP, the next thing which comes to your mind is “Ok so how do I install PHP on my machine?” , so before proceeding further all you need is a proper environment setup on your machine. [...]

Any person having little knowledge of programming can learn PHP, all they need is a bit of understanding about the basic programming concepts. The person needs to know bit about programming concepts along with basic Database. [...]