how to create a session in php

What is Session in php –:Cookies are stored on browser window means it stored on user side.  it is possible for a hacker to easily hack the cookie content to insert potentially harmful data in your application that might break your application. Also every time the web  browser requests a url to the server.All the … Read more how to create a session in php

how to create cookies in php

What are the  Cookies -: Cookies are small files which are stored on a user’s computer.Cookies are store on user side in the computer. They are designed to hold a modest amount of data specific to a particular client and website and can be accessed either by the web server or the client computer. Cookie’s are … Read more how to create cookies in php

how to use string in php

String in php-:  String is a sequence  characters in php like a “hello netnic “. String is  used to store and manipulate text and php supports only 256-character set and so that it does not offer native Unicode support. There are 4 ways to specify a string literal in php. Types of string in php-: In … Read more how to use string in php

how to define array in php

Array In php -:  We need to handle a large volume of data in terms of reading,processing and printing. to process such large amount of data we need a powerful data type that would facilitate efficient sorting accessing and manipulation of data items. An array is a fixed size size sequenced collection of elements of the … Read more how to define array in php

function in php

Php function -: Like any other language function are same to other function.The real power comes its from php function. Php has more then 1000 function. A function is a small code which takes one more input in the form  of parameter and does some processing and return a value. In other words we can say … Read more function in php

how to use loop in php

Looping in php -:  Suppose if we want to calculate all sum of integer 1 to 100 or more then 100. It is not possible in  IF statement. This will be written in this way sum = sum + n*n; This calculation called looping in php. In looping a sequence of statement are executed until some … Read more how to use loop in php

conditional statements in php

Condition Statement -: we have seen php program is a set of statements which are normally executed sequentially in the order in which they appear.this happens when no option or no repetition for certain calculation are necessary. When we are writing a code in a program then there are some time we get some condition … Read more conditional statements in php

how to define data type in php

Data-Type introduction -: Data types in “php ”language is rich in its data type. The storage representation and machine instruction to handle constant differ from machine to machine. the variety of data types available allow to the programmer to select the type approach appropriate to the needs of the application as well as the machine. … Read more how to define data type in php

how to use operator in php

Operator in php- Like any other programming language operator play a very important role in php. Operator is a symbol as like +, -, *, / , etc. Operators are used to perform operations on variables and values. Php support a rich set of built in operator we have already used several of them such … Read more how to use operator in php