server side with php
TRANSCRIPT
-
8/2/2019 Server Side With Php
1/13
SERVER SIDE SCRIPTING
&A LeadingServer Side Scripting :PHP
Submitted By:- Manish Panik
-
8/2/2019 Server Side With Php
2/13
SERVER-SIDE PROGRAMMING
In many cases, client-side applications will be insufficient
Heavy processing
Communication with other clients
Data available on server-side only
It may be useful to send the request to the server, and toprocess it there.
A number of technologies available: CGI, Servlets, JSP,ASP, PHP and others
We will look at PHP, ASP and JSP.
-
8/2/2019 Server Side With Php
3/13
STATIC PAGES
Retrieve file
Send file
Request file
-
8/2/2019 Server Side With Php
4/13
DYNAMIC PAGES
Do Computation
Generate HTMLpage with resultsof computation
Return dynamicallygenerated HTML file
Request service
-
8/2/2019 Server Side With Php
5/13
Development started in 1994, by Rasmus Lerdorf.
A project of the Apache Software Foundation
http://www.php.net
Open Source, free server-side HTML-embedded scripting
language Cross-platform, suitable for today's heterogeneous network
environments
PHP's syntax resembles C and Perl and is easy to learn for anyprogrammer with C or Perl background
Simpler and faster to develop in (than C and Perl)
Personal Home Page (PHP)
-
8/2/2019 Server Side With Php
6/13
PHP is mainly focused on server-side scripting, so youcan do anything any other CGI program can do, such
as collect form data, generate dynamic page content,
or send and receive cookies.
What is PHP?
PHP is a general-purpose server-side scripting language
originally designed for Web development to produce
dynamic Web pages. It is one of the first developed server-
side scripting languages to be embedded into an HTML
source document, rather than calling an external file toprocess data.
-
8/2/2019 Server Side With Php
7/13
Where does PHP fit ?
Web Browser
Internet orIntranet
page
Web
HTTPRequest
Page
WebpageWeb
Server
server
Added
functional
ity
Client-side
Active pages
JavaScript, VBScript,
Applet, ActiveX
Server-side
Dynamic pages
CGI, Server API,
ASP, JSP, PHP,
COM/DCOM,
CORBA
-
8/2/2019 Server Side With Php
8/13
Web-ClientWeb-Server
DBMS
DatabaseOutput
SQL
commands
PHP
Script
HTML-Form
(+JavaScript)
WWW
SubmitData
Call PHPinterpreter
Response Response
LAN
Web-Browser
Database
Server
Server-side execution using PHP Script
-
8/2/2019 Server Side With Php
9/13
PHP vs. JSP
PHP is faster in execution time
A recent survey in ZDnet's eWeekonline publication found thatPHP is as much as 3.5 times faster than JSP
Faster in development time flatter learning curve
PHP supports any 32-bit or better platform, whereas JSPsupports only platforms that have a Java virtual machineavailable
-
8/2/2019 Server Side With Php
10/13
PHP vs. ASP
PHP is faster
Superior Memory Management
Closer to C Style of Programming
Cross Platform Migration Strategy
Dynamic generation of UI is more flexible
-
8/2/2019 Server Side With Php
11/13
Advantages of PHP
Light-weight
Cross-platform compatible
Procedural / Object Oriented programming
Supports wide range of Databases
Supports wide variety of outputs
Supports wide variety of protocols
Extremely useful text processing features
Open source
-
8/2/2019 Server Side With Php
12/13
Disadvantages of PHP
Misperception on lack of Support.
Lack of IDE (Integrated Development Environment)
PHP has no formal error handling mechanisms.
-
8/2/2019 Server Side With Php
13/13