Presented By:-Kamal Khandelwal B.Tech. IV Yr C.S

You might also like

Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 13

Presented By:-

Kamal Khandelwal
B.Tech. IV yr C.S.
 PHP: Hypertext Preprocessor
 Server-side scripting language
 PHP scripts are executed on the server
 Supports many databases
 PHP Syntax:-
<?php
…………………….
?>
 PHP Variables:-
$var_name = value;
 PHP Arrays:-
Numeric array - An array with a numeric index
Associative array - An array where each ID key is associated
with a value
Multidimensional array - An array containing one or more
arrays
 $_GET and $_POST variables are used to
retrieve information from forms.
 The built-in $_GET function is used to collect

values from a form sent with method="get".


 The built-in $_POST function is used to

collect values from a form sent with


method="post".
 The fopen() function is used to open files in
PHP.
 The fclose() function is used to close an open

file:
 The fgets() function is used to read a single

line from a file.


 The fgetc() function is used to read a single

character from a file.


 A small file that the server embeds on the
user's computer
 The setcookie() function is used to set a

cookie.
 $_COOKIE variable is used to retrieve a cookie

value. 
The session_start() function is used to start
the session
 $_SESSION variable is used to store and

retrieve session variables


 session_destroy() function is used to destroy

the session
 PHP supports many databases (MySQL,
Informix, Oracle, Sybase, Solid, PostgreSQL,
Generic ODBC, etc.)
 MySQL is commonly used
 data in MySQL is stored in database objects

called tables
 mysql_connect() function creates the connection

 mysql_close() function closes the connection

 create database statement is used to create a


database

 create table statement is used to create a table in


MySQL.
 AJAX = Asynchronous JavaScript and XML
 AJAX is a technique for creating fast and

dynamic web pages


 AJAX allows web pages to be updated

asynchronously
 PHP is a server-side technology, and does not
work in a browser
 The filename must have .php extension
 PHP enhanced pages can contain a mixture of

HTML and PHP code


Thank You

You might also like