SlideShare uma empresa Scribd logo
1 de 19
Baixar para ler offline
1 | P a g e
BCA Sem 4:- 402 PHP Material
UNIT :- 1
PART :-1 INTRODUCTION TO PHP
Web technologies:-
 The web technologyprovide the interface between web server
and web browserof client.
 The web technologyis use for developmentof device which are
connected to the network.
 It is allow the web server to send the information of html,java
script,css,php to the web browserand display.
 The web browserjob is interpreted the code in to html format and
display the web page.
 The web technologyprovide the platform for communication
between web server and web browser.
 By using web technology the client to be access high speed data
from the server.
 Figure :-
Advantage:-
 The web technologyis provide the high speed data access
between the browser and server.
 The web technologys provide the information all over the world.
2 | P a g e
Disadvantages:-
 The web technologycan be very expensive some time.
 Some time network security problem are occur.
 The web technologyis some time very complicated fro manage.
Typesof web technology:-
(1) Client side web technology:-
 The client side web technologys contain all activity (input ,process
, output) it’s called client side web technologys.
 The client are also called computerapplications. In which the web
browser are connected to the web server when it necessary.
 The user perform all operations without help of web server.
 It is very less time consuming process.
 The client side technologys are reduce the time because all
activity are perform client side.
 The most popular client side web technologys is:-
HTML,XHTML,JAVASCRIPT,VBSCRIPT,CSS,JSON,FLASHETC….
(2) Serverside web technology:-
 The server side web technology means process operations
perform from server side.
 The server are basically software program it’s also called web
server.
 The serer side technologyis use to scripting program or language
for change the web site layout.
 The most popular server side scripting language is:-
Php, asp.net, jsp, perl,python,ruby,java etc……
Web server:-
 The web server is a combination of computerhardware and
computersoftware.
 The webserver is a computersystem which are use to host the
website.
 The web server is provided the interface between admin and
client.
 The client give the requestto the web server for access the web
page and web server give the response and display the web page on
browser at the client side.
 The web page also called client server.
 The web server contain the important protocolwhich is called
http(hypertext transfer protocol).
 This protocolare use to transfer the data client to server and
server to client.
 There are following most popular web server:-
- Apache http server
3 | P a g e
- iisc(internet information server)
- Sun java system web server
- High pad
- Gswan server
Web browser:-
 The web browseris a software or applications.
 The web browserare use to display web page which are given by
web server.
 It is also allow the user to access the web page in client machine.
 The web browserare allow to translate the html code and display
the image, text, video, audio, animation in web page.
 Web browserare send the request to the web server for access
the web page and web server are give the response to the web browser
to send the web page.
 The web browserare divided into two categories:-
o Text based
o Graphics based
(1) Text based:-
 In a text based web browser are only display the text information’s
and you can not display the graphics information.
 The most popular example of text based web browseris lynx.
(2) Graphics based web browser:-
 In this web browser you can see both text information as well as
graphics.
 The best example of graphics based web browseris Google
chrome, Mozilla Firefox,safari, altavista,uc browser, opera.
Website and types of website:-
 The web site is a collectionof web pages.
 The web page is contain the differentdifferentinformation such as
text, audio, video, symbol,animation, colors etc…….
 There are two types of web site (1) static website (2) dynamic
website.
(1) Static website:-
 The static web site is collectionof web pages this web page
contain fixed information’s.
 In another word static website can not be change the data at the
run time in the static web site. Almostcode in a html format and display
the some output forever.
 The static web site are easily create and easy to run from web
server.
4 | P a g e
 The static website can not be change the data for manually
update.
Advantages:-
 Static website are less expensive for developed.
 The static web site are easy to create.
 Static web site are not required to hosting .
 The static web site are easy to manage.
Disadvantages:-
 The static web site can not ne change the information at run time.
 Static website long time maintenances are very costly.
(2) Dynamic website:-
 The dynamic website is a collectionof web pages.
 This type of web pages are change the information at run time.
 This type of web pages generate in scripting language.
 Example :- php, java etc…..
 In dynamic web page first send the requestto the web server an
after the data can be access from data base and display the data on the
web browser.
 The most popular way to create the web site in dynamic website .
 Figure:-
Advantages:-
 The dynamic website is easy to change at run time.
 The dynamic website contain the long life.
Disadvantages :-
 This web site are very expensive.
 Maintenance are difficult.
 Dynamic web site are required the maintenance regular interval.
Feature ofPHP:-
5 | P a g e
 Open source :-
- It means the software application are use by any user without any
lynx
- It means the open source software is free of cost.
 Easy to use:-
- The php are easy to learn because they can not need deeply
knowledge of programming language.
- You can learn easily because they made from basic programming
language.
 Not tag based:-
- Php is a real programming language so that it’s not tag based
language but it is a scripting language.
 Speed:-
- The php are execute very fastly when it is compile from apache
and module
 Popularity :-
- Php is a fast and more popular two tire client server model.
- Php code is supportby 25% all over the world wen browser.
 Many extension:-
- Php make easy communication with other program or application.
- It is support large number of protocol.
- Example is:- POP3[postofficeprotocol].
IMAP[internet message access protocol].
 HTML embedded:-
- Php is easily embeddedwith html.
- Php page some time called html page.
- The html all code supportby php.
 Stability:-
- Apache server are provide more stability and control on the web
page.
What is php?
 Php stands for personalhome page.
 Php is also stands for hypertext preprocessor.
 It is developed butramus leadoff in 1994.
 It is a open source language so that it can not need to any
argument.
 It is a scripting language.
 Php is a data oriented language.
 The extension of any php file is .php
 Syntax:-
<? Php
………..
6 | P a g e
………...
Code….
………
………
?>
 Note:- notpade is a editor and wammp server is give the
output.
 Version of php:-
Php 4, php 5, core php, cake php, magneto, word press, larval, joomla.
 Advantage ofphp:-
- Php is a very flexible language.
- It is a dynamic scripting language.
- It is work embeddedlanguage.
Variable:-
 The variable is a data name that can be store the value.
 Syntax:-$variable name= constant/ value;
 Example:-
o $a=10;
o $abc=”Ram”;
o $Ram=’A’;
 Note:-
o in php the variable type must be decide by the value.
 rules of variable:-
o the variable name first character must be define later or
underscore.
o Example:-$ram, $_bca
o The keyword are not allow as a variable name.
o Upper case and lower case.
o White space are not allow.
o Specialsymbol are not use.
o The variable name must be longer 31 character.
 Adding php to html syntax and variable:-
o you can add html with your php script.
o It is possible to write php scriptanywhere inside your html code
using<? Php……………..?> tag.
o Considerthe following example :-
o Step:-1 In below the program is html. This program save
any name and extensionis .php
o <html>
<Body>
<title> login form</title>
7 | P a g e
<form method=”POST”action=”welcome.php”>
<center>
<table border=”5”>
<tr>
<td>user name</td>
<td><input type=”text” name=”t1”></td>
</tr><br>
<tr>
<td>password</td>
<td><input type=”password” name=”t2”></td>
</tr><br>
<tr>
<td><input type=”submit” name=”b1” value=”login”></td>
</tr>
</table>
</center>
</form>
</body>
</html>
Output:
o Step:-2 in below programin a php format. This program save
as in above program which link given in form tag
action=”welcome.php”.
<?php
$uname=$_POST[‘t1’];
$pass=$_POST[‘t2’];
Echo”<br>”;
Echo”<br>UserName:$uname”;
Echo”<br>Password:$pass”;
?>
Output:-
Sending data from one page to another page:-
8 | P a g e
(1) Submitting from value throughGET method:-
 the default method for browserto submit information.
 A web from when the method is set to GET method, it submits he
values through URL.
 The form will send the data to a page within the site or outside the
site by formatting a query string.
 Form submission of sourcewebpage:-
o <form method=”GET” action=”welcome.php”>
 URL of destination webpage(informationalways getdisplay)
o Welcome.php?name=ram&password=ram9900
o Syntax:- $no=$_GET[“controlname”];
(2) Submitting form value through POST method:-
 By using post method of form submissionwe can send more
number or length of data.
 Sensitive information like password does not get exposed inURL
by POST method, so our login from we should use POST method to
submit data.
 Form submissionof source webpage:-
o <form method=”POST”action=”welcome.php”>
 URL of destination webpage(data alwaysget display)
o Welcome.php
o Syntax:- $no=$_POST[“controlname”];
 Sending data from one page to the other page using POST and
GET method:-
o $_POST[“controlname”]and if we use GET method then write
$_GET[“controlname”]in second page.
 we can direct print print_r($_POST)which prints all the value of
previous posted from.
Controlstatement:-
9 | P a g e
10 | P a g e
11 | P a g e
12 | P a g e
13 | P a g e
14 | P a g e
15 | P a g e
16 | P a g e
17 | P a g e
18 | P a g e
Function :-
 The large program is divided in to small part this small part is
known as function().
 In a php you can declare the function any where in the php script.
 There are two types of function(1)library function (2)user define
function
 The function define by the user is called user define function(UDF)
 Syntax:-
o Function<function name>(argument list)
{
//block of code;
}
 Example:-
Function show()
{
Echo(“hello”);
}
 There are following types of user define function:-
(1) Function with no argument and no return value.
(2) Function with no argument but return value.
(3) Function with argument and return value.
(4) Function with argument but not return value.
(1) Function with no argumentand no return value.
o in this category the calling function can not pass the argument to
the called function.
o And called function can not return any argument to the calleing
function.
o Syntax:-
<?php
Function sum()
{
Statement ;
}
Calling function
?>
(2) Function with no argumentbut return value.
o In this category the calling function can not pass any argument to
the called function.
o But called function must be return the value to the calling function.
o Syntax:-
19 | P a g e
<?php
$a, $b, $c;
Function sum()
{
$a=10;
$b=20;
$c=$a+$b;
Return $c;
}
$sum= sum();
Echo(“the sum is ”.$sum);
?>
(3) Function with argumentand return value.
o In this category we can not pass the argument calling function to
called function and called function must be return the value to calling
function
o Syntax:-
<?php
Function sum($a, $b)
{
$c=$a+$b;
Return $c;
}
$sum=sum(10,20);
Echo(“the sum is”. $sum);
?>
(4) Function with argumentbut not return value.
o in this category we can pass the argument from calling function to
calling function.
o But calling function can not return the argument to the calling
function.
o Syntax:-
<? php
Function xyz($a)
{
Echo($a);
}
Xyz(200);
Xyz();
Xyz(1000);
?>

Mais conteúdo relacionado

Semelhante a unit1 part 1 sem4 php.docx

Web application development ( basics )
Web application development ( basics )Web application development ( basics )
Web application development ( basics )Chirag Nag
 
PHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHPPHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHPLariya Minhaz
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soaTechnology Transfer
 
Introduction to web and php mysql
Introduction to web and php mysqlIntroduction to web and php mysql
Introduction to web and php mysqlProgrammer Blog
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web ApplicationSachin Walvekar
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processorSiddique Ibrahim
 
Internetandjava
InternetandjavaInternetandjava
Internetandjavamuniinb4u
 
Internetandjava
InternetandjavaInternetandjava
Internetandjavamuniinb4u
 
JavaInternetlearning
JavaInternetlearningJavaInternetlearning
JavaInternetlearningmuniinb4u
 
Javauserguide
JavauserguideJavauserguide
Javauserguidemuniinb4u
 

Semelhante a unit1 part 1 sem4 php.docx (20)

Web application development ( basics )
Web application development ( basics )Web application development ( basics )
Web application development ( basics )
 
Php unit i
Php unit i Php unit i
Php unit i
 
PHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHPPHP Unit-1 Introduction to PHP
PHP Unit-1 Introduction to PHP
 
Php
PhpPhp
Php
 
01 web 2.0 - more than a pretty face for soa
01   web 2.0 - more than a pretty face for soa01   web 2.0 - more than a pretty face for soa
01 web 2.0 - more than a pretty face for soa
 
Introduction to web and php mysql
Introduction to web and php mysqlIntroduction to web and php mysql
Introduction to web and php mysql
 
Making Of PHP Based Web Application
Making Of PHP Based Web ApplicationMaking Of PHP Based Web Application
Making Of PHP Based Web Application
 
Php hypertext pre-processor
Php   hypertext pre-processorPhp   hypertext pre-processor
Php hypertext pre-processor
 
Training ppt
Training pptTraining ppt
Training ppt
 
Internetandjava
InternetandjavaInternetandjava
Internetandjava
 
ppttips
ppttipsppttips
ppttips
 
ppt tips
ppt tipsppt tips
ppt tips
 
ppttips
ppttipsppttips
ppttips
 
Internetandjava
InternetandjavaInternetandjava
Internetandjava
 
ppttips
ppttipsppttips
ppttips
 
Java
JavaJava
Java
 
JavaInternetlearning
JavaInternetlearningJavaInternetlearning
JavaInternetlearning
 
ppttips
ppttipsppttips
ppttips
 
Javauserguide
JavauserguideJavauserguide
Javauserguide
 
Cs2305 nol
Cs2305 nolCs2305 nol
Cs2305 nol
 

Último

UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6DianaGray10
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarPrecisely
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXTarek Kalaji
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UbiTrack UK
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Will Schroeder
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsSafe Software
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1DianaGray10
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.YounusS2
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaborationbruanjhuli
 
Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemAsko Soukka
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1DianaGray10
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfDaniel Santiago Silva Capera
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024D Cloud Solutions
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesMd Hossain Ali
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsSeth Reyes
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxGDSC PJATK
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDELiveplex
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioChristian Posta
 

Último (20)

UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6UiPath Studio Web workshop series - Day 6
UiPath Studio Web workshop series - Day 6
 
AI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity WebinarAI You Can Trust - Ensuring Success with Data Integrity Webinar
AI You Can Trust - Ensuring Success with Data Integrity Webinar
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
 
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
UWB Technology for Enhanced Indoor and Outdoor Positioning in Physiological M...
 
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
Apres-Cyber - The Data Dilemma: Bridging Offensive Operations and Machine Lea...
 
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration WorkflowsIgniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
 
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1UiPath Platform: The Backend Engine Powering Your Automation - Session 1
UiPath Platform: The Backend Engine Powering Your Automation - Session 1
 
Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.Basic Building Blocks of Internet of Things.
Basic Building Blocks of Internet of Things.
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
 
Bird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystemBird eye's view on Camunda open source ecosystem
Bird eye's view on Camunda open source ecosystem
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1
 
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdfIaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
IaC & GitOps in a Nutshell - a FridayInANuthshell Episode.pdf
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024Artificial Intelligence & SEO Trends for 2024
Artificial Intelligence & SEO Trends for 2024
 
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just MinutesAI Fame Rush Review – Virtual Influencer Creation In Just Minutes
AI Fame Rush Review – Virtual Influencer Creation In Just Minutes
 
Computer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and HazardsComputer 10: Lesson 10 - Online Crimes and Hazards
Computer 10: Lesson 10 - Online Crimes and Hazards
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptx
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 

unit1 part 1 sem4 php.docx

  • 1. 1 | P a g e BCA Sem 4:- 402 PHP Material UNIT :- 1 PART :-1 INTRODUCTION TO PHP Web technologies:-  The web technologyprovide the interface between web server and web browserof client.  The web technologyis use for developmentof device which are connected to the network.  It is allow the web server to send the information of html,java script,css,php to the web browserand display.  The web browserjob is interpreted the code in to html format and display the web page.  The web technologyprovide the platform for communication between web server and web browser.  By using web technology the client to be access high speed data from the server.  Figure :- Advantage:-  The web technologyis provide the high speed data access between the browser and server.  The web technologys provide the information all over the world.
  • 2. 2 | P a g e Disadvantages:-  The web technologycan be very expensive some time.  Some time network security problem are occur.  The web technologyis some time very complicated fro manage. Typesof web technology:- (1) Client side web technology:-  The client side web technologys contain all activity (input ,process , output) it’s called client side web technologys.  The client are also called computerapplications. In which the web browser are connected to the web server when it necessary.  The user perform all operations without help of web server.  It is very less time consuming process.  The client side technologys are reduce the time because all activity are perform client side.  The most popular client side web technologys is:- HTML,XHTML,JAVASCRIPT,VBSCRIPT,CSS,JSON,FLASHETC…. (2) Serverside web technology:-  The server side web technology means process operations perform from server side.  The server are basically software program it’s also called web server.  The serer side technologyis use to scripting program or language for change the web site layout.  The most popular server side scripting language is:- Php, asp.net, jsp, perl,python,ruby,java etc…… Web server:-  The web server is a combination of computerhardware and computersoftware.  The webserver is a computersystem which are use to host the website.  The web server is provided the interface between admin and client.  The client give the requestto the web server for access the web page and web server give the response and display the web page on browser at the client side.  The web page also called client server.  The web server contain the important protocolwhich is called http(hypertext transfer protocol).  This protocolare use to transfer the data client to server and server to client.  There are following most popular web server:- - Apache http server
  • 3. 3 | P a g e - iisc(internet information server) - Sun java system web server - High pad - Gswan server Web browser:-  The web browseris a software or applications.  The web browserare use to display web page which are given by web server.  It is also allow the user to access the web page in client machine.  The web browserare allow to translate the html code and display the image, text, video, audio, animation in web page.  Web browserare send the request to the web server for access the web page and web server are give the response to the web browser to send the web page.  The web browserare divided into two categories:- o Text based o Graphics based (1) Text based:-  In a text based web browser are only display the text information’s and you can not display the graphics information.  The most popular example of text based web browseris lynx. (2) Graphics based web browser:-  In this web browser you can see both text information as well as graphics.  The best example of graphics based web browseris Google chrome, Mozilla Firefox,safari, altavista,uc browser, opera. Website and types of website:-  The web site is a collectionof web pages.  The web page is contain the differentdifferentinformation such as text, audio, video, symbol,animation, colors etc…….  There are two types of web site (1) static website (2) dynamic website. (1) Static website:-  The static web site is collectionof web pages this web page contain fixed information’s.  In another word static website can not be change the data at the run time in the static web site. Almostcode in a html format and display the some output forever.  The static web site are easily create and easy to run from web server.
  • 4. 4 | P a g e  The static website can not be change the data for manually update. Advantages:-  Static website are less expensive for developed.  The static web site are easy to create.  Static web site are not required to hosting .  The static web site are easy to manage. Disadvantages:-  The static web site can not ne change the information at run time.  Static website long time maintenances are very costly. (2) Dynamic website:-  The dynamic website is a collectionof web pages.  This type of web pages are change the information at run time.  This type of web pages generate in scripting language.  Example :- php, java etc…..  In dynamic web page first send the requestto the web server an after the data can be access from data base and display the data on the web browser.  The most popular way to create the web site in dynamic website .  Figure:- Advantages:-  The dynamic website is easy to change at run time.  The dynamic website contain the long life. Disadvantages :-  This web site are very expensive.  Maintenance are difficult.  Dynamic web site are required the maintenance regular interval. Feature ofPHP:-
  • 5. 5 | P a g e  Open source :- - It means the software application are use by any user without any lynx - It means the open source software is free of cost.  Easy to use:- - The php are easy to learn because they can not need deeply knowledge of programming language. - You can learn easily because they made from basic programming language.  Not tag based:- - Php is a real programming language so that it’s not tag based language but it is a scripting language.  Speed:- - The php are execute very fastly when it is compile from apache and module  Popularity :- - Php is a fast and more popular two tire client server model. - Php code is supportby 25% all over the world wen browser.  Many extension:- - Php make easy communication with other program or application. - It is support large number of protocol. - Example is:- POP3[postofficeprotocol]. IMAP[internet message access protocol].  HTML embedded:- - Php is easily embeddedwith html. - Php page some time called html page. - The html all code supportby php.  Stability:- - Apache server are provide more stability and control on the web page. What is php?  Php stands for personalhome page.  Php is also stands for hypertext preprocessor.  It is developed butramus leadoff in 1994.  It is a open source language so that it can not need to any argument.  It is a scripting language.  Php is a data oriented language.  The extension of any php file is .php  Syntax:- <? Php ………..
  • 6. 6 | P a g e ………... Code…. ……… ……… ?>  Note:- notpade is a editor and wammp server is give the output.  Version of php:- Php 4, php 5, core php, cake php, magneto, word press, larval, joomla.  Advantage ofphp:- - Php is a very flexible language. - It is a dynamic scripting language. - It is work embeddedlanguage. Variable:-  The variable is a data name that can be store the value.  Syntax:-$variable name= constant/ value;  Example:- o $a=10; o $abc=”Ram”; o $Ram=’A’;  Note:- o in php the variable type must be decide by the value.  rules of variable:- o the variable name first character must be define later or underscore. o Example:-$ram, $_bca o The keyword are not allow as a variable name. o Upper case and lower case. o White space are not allow. o Specialsymbol are not use. o The variable name must be longer 31 character.  Adding php to html syntax and variable:- o you can add html with your php script. o It is possible to write php scriptanywhere inside your html code using<? Php……………..?> tag. o Considerthe following example :- o Step:-1 In below the program is html. This program save any name and extensionis .php o <html> <Body> <title> login form</title>
  • 7. 7 | P a g e <form method=”POST”action=”welcome.php”> <center> <table border=”5”> <tr> <td>user name</td> <td><input type=”text” name=”t1”></td> </tr><br> <tr> <td>password</td> <td><input type=”password” name=”t2”></td> </tr><br> <tr> <td><input type=”submit” name=”b1” value=”login”></td> </tr> </table> </center> </form> </body> </html> Output: o Step:-2 in below programin a php format. This program save as in above program which link given in form tag action=”welcome.php”. <?php $uname=$_POST[‘t1’]; $pass=$_POST[‘t2’]; Echo”<br>”; Echo”<br>UserName:$uname”; Echo”<br>Password:$pass”; ?> Output:- Sending data from one page to another page:-
  • 8. 8 | P a g e (1) Submitting from value throughGET method:-  the default method for browserto submit information.  A web from when the method is set to GET method, it submits he values through URL.  The form will send the data to a page within the site or outside the site by formatting a query string.  Form submission of sourcewebpage:- o <form method=”GET” action=”welcome.php”>  URL of destination webpage(informationalways getdisplay) o Welcome.php?name=ram&password=ram9900 o Syntax:- $no=$_GET[“controlname”]; (2) Submitting form value through POST method:-  By using post method of form submissionwe can send more number or length of data.  Sensitive information like password does not get exposed inURL by POST method, so our login from we should use POST method to submit data.  Form submissionof source webpage:- o <form method=”POST”action=”welcome.php”>  URL of destination webpage(data alwaysget display) o Welcome.php o Syntax:- $no=$_POST[“controlname”];  Sending data from one page to the other page using POST and GET method:- o $_POST[“controlname”]and if we use GET method then write $_GET[“controlname”]in second page.  we can direct print print_r($_POST)which prints all the value of previous posted from. Controlstatement:-
  • 9. 9 | P a g e
  • 10. 10 | P a g e
  • 11. 11 | P a g e
  • 12. 12 | P a g e
  • 13. 13 | P a g e
  • 14. 14 | P a g e
  • 15. 15 | P a g e
  • 16. 16 | P a g e
  • 17. 17 | P a g e
  • 18. 18 | P a g e Function :-  The large program is divided in to small part this small part is known as function().  In a php you can declare the function any where in the php script.  There are two types of function(1)library function (2)user define function  The function define by the user is called user define function(UDF)  Syntax:- o Function<function name>(argument list) { //block of code; }  Example:- Function show() { Echo(“hello”); }  There are following types of user define function:- (1) Function with no argument and no return value. (2) Function with no argument but return value. (3) Function with argument and return value. (4) Function with argument but not return value. (1) Function with no argumentand no return value. o in this category the calling function can not pass the argument to the called function. o And called function can not return any argument to the calleing function. o Syntax:- <?php Function sum() { Statement ; } Calling function ?> (2) Function with no argumentbut return value. o In this category the calling function can not pass any argument to the called function. o But called function must be return the value to the calling function. o Syntax:-
  • 19. 19 | P a g e <?php $a, $b, $c; Function sum() { $a=10; $b=20; $c=$a+$b; Return $c; } $sum= sum(); Echo(“the sum is ”.$sum); ?> (3) Function with argumentand return value. o In this category we can not pass the argument calling function to called function and called function must be return the value to calling function o Syntax:- <?php Function sum($a, $b) { $c=$a+$b; Return $c; } $sum=sum(10,20); Echo(“the sum is”. $sum); ?> (4) Function with argumentbut not return value. o in this category we can pass the argument from calling function to calling function. o But calling function can not return the argument to the calling function. o Syntax:- <? php Function xyz($a) { Echo($a); } Xyz(200); Xyz(); Xyz(1000); ?>