Easy to Learn
Best suited for rapid application development
Easy to implement
PHP community is a big support for the programmers
Runs on almost every platform
It is free PHP is the most
used server side
programming
language
PHP stands for Hypertext Preprocessor.
PHP is an interpreted language, i.e., there is no need for compilation.
PHP is a server-side scripting language.
PHP is faster than other scripting languages, for example, ASP and JSP.
Web Browser is a Client
Web Server is a Server
A web page is a plain text document with formatting instructions of
Hypertext Markup Language (HTML) which is interpreted by web browser
Web pages are transported and accessed by HyperText Transfer Protocol
Web browser is a software application for retrieving, Presenting and
traversing information resources on the world wide web
Each resource on World Wide Web is identified by Uniform Resource
Locator (URL)
Examples of browser’s are Mozilla Firefox, Google Chrome, IE, Safari,
Opera etc
Web server can refer to either the hardware (the computer) or the software
(the computer application) that helps to deliver content that can be accessed
through the internet.
Use of web server is to host web sites, data storage and enterprise
applications.
The primary function of web server is to deliver web pages on the request
to client
This means delivery of HTML documents and any additional content that
may be included by a document such as images, style sheets and java
scripts
Apache is the most commonly used web server software( according to
Netcraft statistics) and Microsoft’s Internet Information Service (IIS) is
also commonly used
A Client, commonly a web browser, initiates communication by making a
request for a specific resource using HTTP and the server responds with
the content of that resource or an error message if unable to do so.
A website is hosted on a computer system known as a web server, also
called an HTTP server, and these terms can also refer to the software that
runs on these systems and that retrieves and delivers the web pages in
response to requests from the website users
One conversation means HTTP request from browser and HTTP response
back from server
IN 1994, Tim Berners-Lee decide to
constitute the World Wide Web
Consortium (W3C) to regulate the
development of the many
technologies involved (HTTP,
HTML, etc.) through a
standardization process.
A static webpage is a web pag that is delivered to the user exactly as stored
Static web page displays the same information for all users from all
contexts
Static web pages are often HTML documents stored as files in the file
system and made available by the web server over http.
A dynamic web page is generated by some web application
Dynamic web page displays user specific content.
They are generated by program which could be written in PHP
An application server is a software framework that provides an
environment in which applications can run
A database server is a computer program that provides database services to
other computer programs or computers, as defined by the client server
model
The term may also refer to a computer dedicated to running such a program
Some examples of database servers are Oracle, DB2, SQL server, MySQL
The Sql query language is a more or less same in all the database servers
WAMP: Windows Apache MySql PHP
LAMP: Linux Apache MySql PHP
Go to www.wampserver.com/en/
PHp files have a file extension of “.php”
PHP file may contain
◦ HTML(Everything is HTML code in the file by default)
◦ CSS (code in style tag)
◦ Javascript (code in script tag)
◦ PHP (code in<?php……..?>)
PHP script can be used any number of times in pphp file
Every piece of php script in the page is enclosed in <?php ………..?>
Variables are used to store constants
These constants could be strings, numbers or arrays
When a variable is declared, it can be used over and over again in your script
All variables in PHP start with a $ symbol sign
<?php
$tst=“computer”;
$x=5;
?>
In PHP the variable is declared automativcally when you use it
A variable name must start with an alphabet or an underscore “_”
A variable name can only contain alphanumeric characters and
underscore(a-z,A-Z,0-9, and _ )
A variable name should not contain spaces
In PHP, a variable does not need to be declared before adding a values to it
PHP automatically converts the variable to correct data type, depending on
its value