Php Introduction -:php is a scripting language.That run on server side. PHP is a powerful tool for making dynamic and interactive Web pages. PHP is a free tool for creating a good website. You can create a good static or dynamic website or web application.
How to install php-: Before we start to creating a website it is necessary to install the PHP..There are many AMP(Apache MySQL,PHP) available in the market.According the operating system php support many AMP.
Variable in php-: variable in php store the temporary data.A variable data name that may be used to store a data value only constant that remain unchanged during the execution of a program a variable may take different values at different times during execution we used several variable.
Constant in php- : Constants are like a variable that don’t change during execution. php refer to fixed value that do not change during the execution of a program. There are two type constant in php.
- define constant
- keyword constant
Operator in php-: Php support a rich set of built in operator we have already used several of them such as equal to add(+)Minus(-) multiplication(*) and division(/) operator is a symbol that tells the computer to perform certain mathematics or logical manipulation. operators are used in program to manipulate data and variables.
Data type in php-: PHP allows eight different types of data types. variable store different data to different things. Data Types defines the type of data a variable can store.
if else statement in php-:When we are writing a code in a program then there are some time we get some condition in this situation we write a condition statement . Php support for type condition statement these are the if condition,if..else condition,if else if condition statement,switch statement.
Looping in php-: In looping a sequence of statement are executed until some conditional for termination of the loop are satisfied. A program loop there for consists of two segments. The control statement tests certain condition and then direct the repeated execution of the statements contained in the body of loop. There are four type loops in php these are
Function in php-: A function is a small code which takes one more input in the form of parameter and does some processing and return a value. There are two main part of function.
Array in php-: An array is a fixed size size sequenced collection of elements of the same data. In others words we can say “a collection of same data type in large value called array ”. An array stores multiple values in a single variable.
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.
File handling in php-: A file represents in a sequence of bytes on the storage disk where a group of related data’s are stored. File is created for permanent storage of data. php provide a number of functions that helps to perform basic file operations. These are the function in php use the file handle as like open a file,close a file, read a file in php etc.
Create a cookies in php-: cookies are small file that are store on browser side window for the user.We can create easily in php using the function. We can create cookies in by using the setcookie() function.
create a session in php-: Session are the small file that store server. It means we can say that the session file are store on server side.