SlideShare a Scribd company logo
M D ANANDA RAJ,
Assistant Professor,
Department of computer science
Loyola College, chennai-600 034
profmdloyola@gmail.com
8/3/2017 1
Introduction to
Web Programming using
PHPand MYSQL
Contents
โ€ข Introduction
โ€ข History
โ€ข Important concepts
โ€ข Php
โ€ข Mysql
โ€ข Database concepts
8/3/2017 2
What is Scripting language?
โ€ข Scripting language is the one which is used to
develop contents in the web
โ€ข Write the code by using predefined tags
<html> contents </html>
โ€ข Example :
โ€ข HTML, JAVASCRIPT, VBSCRIPT, CSS , XML
8/3/2017 3
What is Client & Server
Client:
client is the system which is looking for
some service
Eg: the system end user using in the lab
Server:
server is the system which is providing
service for the clients (end user)
Eg: server in the computer lab
8/3/2017 4
Client sideโ€ฆ
โ€ข Client side scripting language executed from
the client machine(System)
example : HTML , CSS, JAVASCRIPT, VBSCRIPT
- Not secured
- any user can view the original by seeing the
view source option in the browser
- any user can view the source code
and modify
8/3/2017 5
Server side โ€ฆ
โ€ข Server side scripting language executed from the
server machine(System)
example : ASP , PHP , JSP
- Very much secured
- User cannot view the original source code by
seeing the view source option in the browser it
will show only the html code
- user cannot modify the source code
8/3/2017 6
web contents
โ€ข Web can be classified in to two types
1.static page
-contents will not change remain as it is
-user input interaction not possible
2. Dynamic page :
- Contents can be updated very easily
- user input and interaction is possible
8/3/2017 7
What is Open source?
โ€ข In software development Open source is the
concept or philosophy that promotes free
distribution of software product without any
license fees.
โ€ข Example: open source
โ€ข Operating System: Linux
โ€ข Script language : PHP,PERL, PYTHON
โ€ข Browser : Mozilla Firefox
โ€ข Photo Editor : GIMP
โ€ข Office : Open Office
8/3/2017 8
Open source development model
๏‚žView/Modify the source code of an application or software.
๏‚žhe source code of an application or software.
๏‚žOpen source software is released to the development community
and undergoes a secondary phase of evolution, but closed source
software is developed in isolation with a small team of developers.
๏‚žDeveloper support and large community to help.
๏‚žOpen Source is more secure and bugs and vulnerabilities are fixed
often.
๏‚ž source software is released to the development community and
undergoes a secondary phase of evolution, but closed source
software is developed in isolation with a small team of developers.
๏‚žDeveloper support and large community to help.
๏‚žOpen Source is more secure and bugs and vulnerabilities are fixed
often.
8/3/2017 9
Advantagesโ€ฆ
โ€ข Free source code
โ€ข No need pay license fees
โ€ข No need to depend on vendors
โ€ข Easy to fix the error with online support
โ€ข Support from forum all around the world
โ€ข Updated software version
โ€ข Quality and customizable software
โ€ข Cost cheaper than licensed software
8/3/2017 10
Disadvantagesโ€ฆ
โ€ข Users need to update very frequently
โ€ข Incompatibility issue with software and
hardware
โ€ข Bad codes
โ€ข Software quality assurance process is not
transparent
โ€ข No financial benefit for the developers
8/3/2017 11
What is wamp?
โ€ข WAMP is a web server used to execute php
and mysql in client machine
โ€ข A- APACHE
โ€ข M- MySQL
โ€ข P- PHP
โ€ข W- WINDOWS
It is โ€œ APACHE MYSQL PHP FOR WINDOWS
LAMP : APACHE MYSQL PHP FOR LINUX
8/3/2017 12
WAMP ARCHITECTUREโ€ฆ
8/3/2017 13
PHP-Introduction
โ€ข PHP == โ€˜Hypertext Preprocessorโ€™
โ€ข Open-source, server-side scripting language
โ€ข Used to generate dynamic web-pages
โ€ข PHP scripts reside between reserved PHP
tags
โ€“ This allows the programmer to embed PHP
scripts within HTML page
โ€“ Free to download and use
8/3/2017 14
Overview of PHPโ€ฆ
โ€ข Easy learning
โ€ข Syntax Perl- and C-like syntax. Relatively easy
to learn.
โ€ข Large function library
โ€ข Embedded directly into HTML
โ€ข Interpreted, no need to compile
โ€ข Supports many databases like oracle, MySQL
etc
8/3/2017 15
Phpโ€ฆ
โ€ข Interpreted language, scripts are parsed at
run-time rather than compiled
โ€ข Executed on the server-side
โ€ข Source-code not visible by client
โ€“ โ€˜View Sourceโ€™ in browsers does not display the PHP code
โ€ข Various built-in functions allow for fast
development
โ€ข Compatible with many popular databases
8/3/2017 16
History of phpโ€ฆ
๏‚žIn 1994 developed by Rasmus Lerdorf developed
he called the Personal Home Page or PHP
๏‚žPHP 2 released 1997 (PHP now stands for
Hypertext Processor)
๏‚žPHP3 released in 1998 (2 versions)
๏‚žPHP4 released in 2000 (6 versions).
๏‚žPHP5.0.0 released July 13, 2004 (1000s of
libraries and functions
๏‚žPHP5.0.5 released Sept. 6, 2005 for maintenance
and bug fixes (21 versions)
๏‚žPHP 6.0 is the latest version
8/3/2017 17
Features of phpโ€ฆ
โ€ข Simplicity
โ€ข Portability
โ€ข Speed
โ€ข Open source
โ€ข Extensible
โ€ข Database support
8/3/2017 18
Hello.php
โ€ข Open the note pad
<html>
<?php
Echo โ€œhello good morningโ€;
?>
</html>
Save this code as hello.php under
c:wampwwwanandhello.php
8/3/2017 19
Data types supported by PHP:
โ€ข Integers 0,1,2,3etc
โ€ข Float/ Double โ€“ real numbers 0.1, 0.2, 0.3, etc
โ€ข String โ€“ โ€˜Aโ€™, โ€œLoyola Collegeโ€ etc
โ€ข Boolean โ€“ True or False
โ€ข Array โ€“ set of values โ€“ {0,1,2,3}or
{0.1,0.2,0.3}or {โ€˜Aโ€™, โ€˜Bโ€™, โ€˜Cโ€™} or {โ€œkumarโ€,
Santhoshโ€, โ€œKarthickโ€} etc
8/3/2017 20
Variable declaration
Variables are used for storing values, such as numbers, strings or
function results, so that they can be used many times in a script .All
variables in PHP start with a $ sign symbol.
Syntax:
$var_name = value;
<?php
$txt = "Hello World!";
$number = 16;
?>
Note : PHP a variable does not need to be declared before being
set.PHP automatically converts the variable to the correct data
type, depending on how they are set.
8/3/2017 21
PHP Variableโ€ฆ.
โ€ข PHP variables must begin with a โ€œ$โ€ sign
โ€ข Case-sensitive ($Name != $NAME != $NaMe)
โ€ข Global and locally-scoped variables
โ€“ Global variables can be used anywhere
โ€“ Local variables restricted to a function or class
โ€ข Certain variable names reserved by PHP
โ€“ Form variables ($_POST, $_GET)
โ€“ Server variables ($_SERVER)
โ€“ Etc.
8/3/2017 22
constants
โ€ข PHP constants: Constants are like variables
except that once they are defined they cannot
be changed or undefined. The value cannot be
changed during the script.
โ€ข Eg:
<?php
define("MSG", โ€œgood morning");
echo MSG;
?>
8/3/2017 23
Looping
โ€ข Most of the time when we write code, we want the same
block of code to run a number of times for this purpose we
can use looping statements code to perform this task.
โ€ข PHP supports the following:
โ€ข while - loops through a block of code if and as long as a
specified condition is true
โ€ข do...while - loops through a block of code once, and then
repeats the loop as long as a special condition is true
โ€ข for - loops through a block of code a specified number of
times
โ€ข foreach- loops through a block of code for each element in
an array
8/3/2017 24
Example for each
โ€ข Example:
<?php
$arr=array("one", "two", "three");
foreach ($arr as $value)
{
echo "Value: " . $value . "<br />";
?>
8/3/2017 25
cookies
โ€ข A cookie is often used to identify a user. A
cookie is a small file that the server embeds
on the user's computer.
โ€ข Each time the same computer requests a
page with a browser, it will send the cookie
too.
โ€ข With PHP, you can both create and retrieve
cookie values.
8/3/2017 26
What is a PHP Session?
โ€ข When you work with an application, you open it, do
some changes, and then you close it. This is much like a
Session. The computer knows who you are. It knows
when you start the application and when you end
โ€ข Session variables solve this problem by storing user
information to be used across multiple pages (e.g.
username, password etc). By default, session variables
last until the user closes the browser.
โ€ข Session variables hold information about one single
user, and are available to all pages in one application.
8/3/2017 27
MySQLโ€ฆ
๏ฌMySQL, the most popular Open Source SQL database
management system
๏ฌIt is developed and supported by MySQL AB. MySQL AB is a
commercial company, founded in 1995 by the MySQL
developers.
๏ฌThe MySQLยฎ software delivers a very fast, multi-threaded,
multi-user, and robust SQL (Structured Query Language)
database server.
๏ฌThe MySQL software is Dual Licensed. Users can choose to
use the MySQL software as an Open Source product and
also as commericial licence
8/3/2017 28
MySQLโ€ฆ
โ€ข MySQL is a very popular, open source
database.
โ€ข Officially pronounced โ€œmy Ess Que Ellโ€ (not
my sequel).
โ€ข Handles very large databases; very fast
performance.
8/3/2017 29
MySQL storage enginesโ€ฆ
โ€ข MyISAM โ€“default engine
โ€ข InnoDB โ€“ features like foreign key,locking
โ€ข MERGE โ€“ integration of table
โ€ข MEMORY (HEAP) โ€“ suit for short time storage
โ€ข BDB (BerkeleyDB)- hash based storage
โ€ข EXAMPLE โ€“ used for programmers
โ€ข ARCHIVE โ€“to store large amount of data
โ€ข CSV โ€“ to store data in text files
โ€ข BLACKHOLE โ€“only for testing purpose
โ€ข ISAM โ€“ to store non transactional tables
8/3/2017 30
THANK YOU8/3/2017 31

More Related Content

Similar to Introduction to webprogramming using PHP and MySQL (20)

PPTX
PHP Hypertext Preprocessor
adeel990
ย 
PPT
Php unit i
prakashvs7
ย 
ODP
PHP BASIC PRESENTATION
krutitrivedi
ย 
PPTX
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
ย 
PPTX
Php reports sumit
Sumit Biswas
ย 
PDF
PHP Basics
Roohul Amin
ย 
PPTX
PHP ITCS 323
Sleepy Head
ย 
PPTX
PHP language presentation
Annujj Agrawaal
ย 
PPT
PHP and MySQL
bmani
ย 
PDF
Web Design & Development - Session 7
Shahrzad Peyman
ย 
PPTX
Php unit i
BagavathiLakshmi
ย 
PPTX
Php introduction and configuration
Vijay Kumar Verma
ย 
PPT
Osp ii presentation
presse_jkp
ย 
PPTX
Lecture1 introduction by okello erick
okelloerick
ย 
PPTX
Web programming using PHP and Introduction with sample codes
DivyaKS12
ย 
PPTX
Introduction to php
shanmukhareddy dasi
ย 
PDF
4 Basic PHP
Jalpesh Vasa
ย 
PPTX
php.pptx
nusky ahamed
ย 
PPT
slidesharenew1
truptitasol
ย 
PPT
sdfsdfsdf
truptitasol
ย 
PHP Hypertext Preprocessor
adeel990
ย 
Php unit i
prakashvs7
ย 
PHP BASIC PRESENTATION
krutitrivedi
ย 
Chapter onehsfhjfgjhdjhdhfsGfhghsgasg (2).pptx
berihun18
ย 
Php reports sumit
Sumit Biswas
ย 
PHP Basics
Roohul Amin
ย 
PHP ITCS 323
Sleepy Head
ย 
PHP language presentation
Annujj Agrawaal
ย 
PHP and MySQL
bmani
ย 
Web Design & Development - Session 7
Shahrzad Peyman
ย 
Php unit i
BagavathiLakshmi
ย 
Php introduction and configuration
Vijay Kumar Verma
ย 
Osp ii presentation
presse_jkp
ย 
Lecture1 introduction by okello erick
okelloerick
ย 
Web programming using PHP and Introduction with sample codes
DivyaKS12
ย 
Introduction to php
shanmukhareddy dasi
ย 
4 Basic PHP
Jalpesh Vasa
ย 
php.pptx
nusky ahamed
ย 
slidesharenew1
truptitasol
ย 
sdfsdfsdf
truptitasol
ย 

Recently uploaded (20)

PDF
How DeepSeek Beats ChatGPT: Cost Comparison and Key Differences
sumitpurohit810
ย 
PDF
From Chaos to Clarity: Mastering Analytics Governance in the Modern Enterprise
Wiiisdom
ย 
PDF
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
ย 
PDF
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
ย 
PPTX
Wondershare Filmora Crack 14.5.18 + Key Full Download [Latest 2025]
HyperPc soft
ย 
PDF
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
ย 
PDF
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
ย 
PDF
IDM Crack with Internet Download Manager 6.42 Build 41
utfefguu
ย 
PPTX
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
ย 
PPTX
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
ย 
PDF
Dealing with JSON in the relational world
Andres Almiray
ย 
PPTX
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
ย 
PDF
Telemedicine App Development_ Key Factors to Consider for Your Healthcare Ven...
Mobilityinfotech
ย 
PPTX
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
ย 
PDF
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
ย 
PPTX
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
ย 
PPTX
NeuroStrata: Harnessing Neuro-Symbolic Paradigms for Improved Testability and...
Ivan Ruchkin
ย 
PPTX
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
ย 
PDF
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
ย 
PPTX
For my supp to finally picking supp that work
necas19388
ย 
How DeepSeek Beats ChatGPT: Cost Comparison and Key Differences
sumitpurohit810
ย 
From Chaos to Clarity: Mastering Analytics Governance in the Modern Enterprise
Wiiisdom
ย 
>Nitro Pro Crack 14.36.1.0 + Keygen Free Download [Latest]
utfefguu
ย 
capitulando la keynote de GrafanaCON 2025 - Madrid
Imma Valls Bernaus
ย 
Wondershare Filmora Crack 14.5.18 + Key Full Download [Latest 2025]
HyperPc soft
ย 
Writing Maintainable Playwright Tests with Ease
Shubham Joshi
ย 
Alur Perkembangan Software dan Jaringan Komputer
ssuser754303
ย 
IDM Crack with Internet Download Manager 6.42 Build 41
utfefguu
ย 
How Can Recruitment Management Software Improve Hiring Efficiency?
HireME
ย 
CV-Project_2024 version 01222222222.pptx
MohammadSiddiqui70
ย 
Dealing with JSON in the relational world
Andres Almiray
ย 
IObit Uninstaller Pro 14.3.1.8 Crack Free Download 2025
sdfger qwerty
ย 
Telemedicine App Development_ Key Factors to Consider for Your Healthcare Ven...
Mobilityinfotech
ย 
EO4EU Ocean Monitoring: Maritime Weather Routing Optimsation Use Case
EO4EU
ย 
What Is an Internal Quality Audit and Why It Matters for Your QMS
BizPortals365
ย 
Perfecting XM Cloud for Multisite Setup.pptx
Ahmed Okour
ย 
NeuroStrata: Harnessing Neuro-Symbolic Paradigms for Improved Testability and...
Ivan Ruchkin
ย 
Quality on Autopilot: Scaling Testing in Uyuni
Oscar Barrios Torrero
ย 
The Rise of Sustainable Mobile App Solutions by New York Development Firms
ostechnologies16
ย 
For my supp to finally picking supp that work
necas19388
ย 
Ad

Introduction to webprogramming using PHP and MySQL

  • 1. M D ANANDA RAJ, Assistant Professor, Department of computer science Loyola College, chennai-600 034 [email protected] 8/3/2017 1 Introduction to Web Programming using PHPand MYSQL
  • 2. Contents โ€ข Introduction โ€ข History โ€ข Important concepts โ€ข Php โ€ข Mysql โ€ข Database concepts 8/3/2017 2
  • 3. What is Scripting language? โ€ข Scripting language is the one which is used to develop contents in the web โ€ข Write the code by using predefined tags <html> contents </html> โ€ข Example : โ€ข HTML, JAVASCRIPT, VBSCRIPT, CSS , XML 8/3/2017 3
  • 4. What is Client & Server Client: client is the system which is looking for some service Eg: the system end user using in the lab Server: server is the system which is providing service for the clients (end user) Eg: server in the computer lab 8/3/2017 4
  • 5. Client sideโ€ฆ โ€ข Client side scripting language executed from the client machine(System) example : HTML , CSS, JAVASCRIPT, VBSCRIPT - Not secured - any user can view the original by seeing the view source option in the browser - any user can view the source code and modify 8/3/2017 5
  • 6. Server side โ€ฆ โ€ข Server side scripting language executed from the server machine(System) example : ASP , PHP , JSP - Very much secured - User cannot view the original source code by seeing the view source option in the browser it will show only the html code - user cannot modify the source code 8/3/2017 6
  • 7. web contents โ€ข Web can be classified in to two types 1.static page -contents will not change remain as it is -user input interaction not possible 2. Dynamic page : - Contents can be updated very easily - user input and interaction is possible 8/3/2017 7
  • 8. What is Open source? โ€ข In software development Open source is the concept or philosophy that promotes free distribution of software product without any license fees. โ€ข Example: open source โ€ข Operating System: Linux โ€ข Script language : PHP,PERL, PYTHON โ€ข Browser : Mozilla Firefox โ€ข Photo Editor : GIMP โ€ข Office : Open Office 8/3/2017 8
  • 9. Open source development model ๏‚žView/Modify the source code of an application or software. ๏‚žhe source code of an application or software. ๏‚žOpen source software is released to the development community and undergoes a secondary phase of evolution, but closed source software is developed in isolation with a small team of developers. ๏‚žDeveloper support and large community to help. ๏‚žOpen Source is more secure and bugs and vulnerabilities are fixed often. ๏‚ž source software is released to the development community and undergoes a secondary phase of evolution, but closed source software is developed in isolation with a small team of developers. ๏‚žDeveloper support and large community to help. ๏‚žOpen Source is more secure and bugs and vulnerabilities are fixed often. 8/3/2017 9
  • 10. Advantagesโ€ฆ โ€ข Free source code โ€ข No need pay license fees โ€ข No need to depend on vendors โ€ข Easy to fix the error with online support โ€ข Support from forum all around the world โ€ข Updated software version โ€ข Quality and customizable software โ€ข Cost cheaper than licensed software 8/3/2017 10
  • 11. Disadvantagesโ€ฆ โ€ข Users need to update very frequently โ€ข Incompatibility issue with software and hardware โ€ข Bad codes โ€ข Software quality assurance process is not transparent โ€ข No financial benefit for the developers 8/3/2017 11
  • 12. What is wamp? โ€ข WAMP is a web server used to execute php and mysql in client machine โ€ข A- APACHE โ€ข M- MySQL โ€ข P- PHP โ€ข W- WINDOWS It is โ€œ APACHE MYSQL PHP FOR WINDOWS LAMP : APACHE MYSQL PHP FOR LINUX 8/3/2017 12
  • 14. PHP-Introduction โ€ข PHP == โ€˜Hypertext Preprocessorโ€™ โ€ข Open-source, server-side scripting language โ€ข Used to generate dynamic web-pages โ€ข PHP scripts reside between reserved PHP tags โ€“ This allows the programmer to embed PHP scripts within HTML page โ€“ Free to download and use 8/3/2017 14
  • 15. Overview of PHPโ€ฆ โ€ข Easy learning โ€ข Syntax Perl- and C-like syntax. Relatively easy to learn. โ€ข Large function library โ€ข Embedded directly into HTML โ€ข Interpreted, no need to compile โ€ข Supports many databases like oracle, MySQL etc 8/3/2017 15
  • 16. Phpโ€ฆ โ€ข Interpreted language, scripts are parsed at run-time rather than compiled โ€ข Executed on the server-side โ€ข Source-code not visible by client โ€“ โ€˜View Sourceโ€™ in browsers does not display the PHP code โ€ข Various built-in functions allow for fast development โ€ข Compatible with many popular databases 8/3/2017 16
  • 17. History of phpโ€ฆ ๏‚žIn 1994 developed by Rasmus Lerdorf developed he called the Personal Home Page or PHP ๏‚žPHP 2 released 1997 (PHP now stands for Hypertext Processor) ๏‚žPHP3 released in 1998 (2 versions) ๏‚žPHP4 released in 2000 (6 versions). ๏‚žPHP5.0.0 released July 13, 2004 (1000s of libraries and functions ๏‚žPHP5.0.5 released Sept. 6, 2005 for maintenance and bug fixes (21 versions) ๏‚žPHP 6.0 is the latest version 8/3/2017 17
  • 18. Features of phpโ€ฆ โ€ข Simplicity โ€ข Portability โ€ข Speed โ€ข Open source โ€ข Extensible โ€ข Database support 8/3/2017 18
  • 19. Hello.php โ€ข Open the note pad <html> <?php Echo โ€œhello good morningโ€; ?> </html> Save this code as hello.php under c:wampwwwanandhello.php 8/3/2017 19
  • 20. Data types supported by PHP: โ€ข Integers 0,1,2,3etc โ€ข Float/ Double โ€“ real numbers 0.1, 0.2, 0.3, etc โ€ข String โ€“ โ€˜Aโ€™, โ€œLoyola Collegeโ€ etc โ€ข Boolean โ€“ True or False โ€ข Array โ€“ set of values โ€“ {0,1,2,3}or {0.1,0.2,0.3}or {โ€˜Aโ€™, โ€˜Bโ€™, โ€˜Cโ€™} or {โ€œkumarโ€, Santhoshโ€, โ€œKarthickโ€} etc 8/3/2017 20
  • 21. Variable declaration Variables are used for storing values, such as numbers, strings or function results, so that they can be used many times in a script .All variables in PHP start with a $ sign symbol. Syntax: $var_name = value; <?php $txt = "Hello World!"; $number = 16; ?> Note : PHP a variable does not need to be declared before being set.PHP automatically converts the variable to the correct data type, depending on how they are set. 8/3/2017 21
  • 22. PHP Variableโ€ฆ. โ€ข PHP variables must begin with a โ€œ$โ€ sign โ€ข Case-sensitive ($Name != $NAME != $NaMe) โ€ข Global and locally-scoped variables โ€“ Global variables can be used anywhere โ€“ Local variables restricted to a function or class โ€ข Certain variable names reserved by PHP โ€“ Form variables ($_POST, $_GET) โ€“ Server variables ($_SERVER) โ€“ Etc. 8/3/2017 22
  • 23. constants โ€ข PHP constants: Constants are like variables except that once they are defined they cannot be changed or undefined. The value cannot be changed during the script. โ€ข Eg: <?php define("MSG", โ€œgood morning"); echo MSG; ?> 8/3/2017 23
  • 24. Looping โ€ข Most of the time when we write code, we want the same block of code to run a number of times for this purpose we can use looping statements code to perform this task. โ€ข PHP supports the following: โ€ข while - loops through a block of code if and as long as a specified condition is true โ€ข do...while - loops through a block of code once, and then repeats the loop as long as a special condition is true โ€ข for - loops through a block of code a specified number of times โ€ข foreach- loops through a block of code for each element in an array 8/3/2017 24
  • 25. Example for each โ€ข Example: <?php $arr=array("one", "two", "three"); foreach ($arr as $value) { echo "Value: " . $value . "<br />"; ?> 8/3/2017 25
  • 26. cookies โ€ข A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer. โ€ข Each time the same computer requests a page with a browser, it will send the cookie too. โ€ข With PHP, you can both create and retrieve cookie values. 8/3/2017 26
  • 27. What is a PHP Session? โ€ข When you work with an application, you open it, do some changes, and then you close it. This is much like a Session. The computer knows who you are. It knows when you start the application and when you end โ€ข Session variables solve this problem by storing user information to be used across multiple pages (e.g. username, password etc). By default, session variables last until the user closes the browser. โ€ข Session variables hold information about one single user, and are available to all pages in one application. 8/3/2017 27
  • 28. MySQLโ€ฆ ๏ฌMySQL, the most popular Open Source SQL database management system ๏ฌIt is developed and supported by MySQL AB. MySQL AB is a commercial company, founded in 1995 by the MySQL developers. ๏ฌThe MySQLยฎ software delivers a very fast, multi-threaded, multi-user, and robust SQL (Structured Query Language) database server. ๏ฌThe MySQL software is Dual Licensed. Users can choose to use the MySQL software as an Open Source product and also as commericial licence 8/3/2017 28
  • 29. MySQLโ€ฆ โ€ข MySQL is a very popular, open source database. โ€ข Officially pronounced โ€œmy Ess Que Ellโ€ (not my sequel). โ€ข Handles very large databases; very fast performance. 8/3/2017 29
  • 30. MySQL storage enginesโ€ฆ โ€ข MyISAM โ€“default engine โ€ข InnoDB โ€“ features like foreign key,locking โ€ข MERGE โ€“ integration of table โ€ข MEMORY (HEAP) โ€“ suit for short time storage โ€ข BDB (BerkeleyDB)- hash based storage โ€ข EXAMPLE โ€“ used for programmers โ€ข ARCHIVE โ€“to store large amount of data โ€ข CSV โ€“ to store data in text files โ€ข BLACKHOLE โ€“only for testing purpose โ€ข ISAM โ€“ to store non transactional tables 8/3/2017 30