PHP - Hypertext Pre-processor
Scripting Language for Web Development
PHP is probably the most popular scripting
language on the web. It is used to enhance
web pages.
 Using PHP, you can do t...
Script:


A “script” is a collection of program or sequence of
instructions that is interpreted or processed out by

anot...
PHP - Introduction
• PHP stands for PHP: Hypertext Preprocessor.
• Developed by Rasmus Lerdorf in 1994
• It is a powerful ...
What is PHP?


Used to generate dynamic web-pages.



PHP scripts reside between reserved PHP tags


This allows the pr...
What is PHP (cont’d)


Interpreted language, scripts are parsed at run-time
rather than compiled beforehand



Executed ...
What does PHP code look like?


Structurally similar to C/C++



Supports procedural and object-oriented
paradigm (to so...
Introduction to PHP


PHP is perfectly suited for Web development and can be
embedded directly into the HTML code.



PH...
Introduction to PHP
What is a PHP File?
• PHP files have a file extension of
".php", ".php3", or ".phtml"
• PHP files can ...
Introduction to PHP
What you need to develop PHP
Application:
 Install Apache (or IIS) on your own
server, install PHP, a...
Benefits of PHP


PHP is an open source software & costs nothing, it is free to
download and use.



PHP is a server-sid...
What you need to get started with PHP







Before you can write and test your PHP scripts,
there's one thing you'll...
Contd.,
We're going to be using some software
called Wampserver.
 This allows you to test your PHP scripts on
your own co...
Benefits of PHP


PHP is an open source software & costs nothing, it is free to
download and use.



PHP is a server-sid...
How PHP is Processed


When a PHP document is requested of a server, the server will
send the document first to a PHP pro...
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Php   hypertext pre-processor
Upcoming SlideShare
Loading in …5
×

Php hypertext pre-processor

4,072 views
3,860 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
4,072
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
37
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Php hypertext pre-processor

  1. 1. PHP - Hypertext Pre-processor Scripting Language for Web Development
  2. 2. PHP is probably the most popular scripting language on the web. It is used to enhance web pages.  Using PHP, you can do things like create username and password login pages, check details from a form, create forums, picture galleries, surveys, and a whole lot more. 
  3. 3. Script:  A “script” is a collection of program or sequence of instructions that is interpreted or processed out by another program rather than by the computer processor.    Client-side Server-side In server-side scripting, (such as PHP, ASP) the script is processed by the server Like: Apache, ColdFusion, ISAPI and Microsoft's IIS on Windows, JSP, PHP,PERL, Tcl and Python.  Client-side scripting such as JavaScript runs on the web browser.
  4. 4. PHP - Introduction • PHP stands for PHP: Hypertext Preprocessor. • Developed by Rasmus Lerdorf in 1994 • It is a powerful server-side scripting language for creating dynamic and interactive websites. • It is an open source software, which is widely used and free to download and use. • It is an efficient alternative to competitors such as Microsoft's ASP.
  5. 5. What is PHP?  Used to generate dynamic web-pages.  PHP scripts reside between reserved PHP tags  This allows the programmer to embed PHP scripts within HTML pages  Personal Home Pages(Old Definition)  An alternative explanation is that the initials come from the earliest version of the program, which was called Personal Home Page Tools
  6. 6. What is PHP (cont’d)  Interpreted language, scripts are parsed at run-time rather than compiled beforehand  Executed on the server-side  Source-code not visible for client  ‘View Source’ in browsers does not display the PHP code  Various built-in functions allow for fast development
  7. 7. What does PHP code look like?  Structurally similar to C/C++  Supports procedural and object-oriented paradigm (to some degree)  All PHP statements end with a semi-colon  Each PHP script must be enclosed in the reserved PHP tag <?php … ?>
  8. 8. Introduction to PHP  PHP is perfectly suited for Web development and can be embedded directly into the HTML code.  PHP is often used together with Apache (web server) on various operating systems. It can be used with Microsoft's IIS on Windows.  PHP supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
  9. 9. Introduction to PHP What is a PHP File? • PHP files have a file extension of ".php", ".php3", or ".phtml" • PHP files can contain text, HTML tags and scripts • PHP files are returned to the browser as plain HTML
  10. 10. Introduction to PHP What you need to develop PHP Application:  Install Apache (or IIS) on your own server, install PHP, and MySQL OR  Install Wampserver2 (a bundle of PHP, Apache, and MySql server) on your own server/machine
  11. 11. Benefits of PHP  PHP is an open source software & costs nothing, it is free to download and use.  PHP is a server-side scripting language and is used for websites and web applications.  PHP scripts are executed on the server.  PHP supports a wide range of databases.  PHP runs on various platforms like Linux, Windows, Unix etc.  PHP supports most web servers (for example Apache, IIS).  PHP converses with several network protocols.
  12. 12. What you need to get started with PHP      Before you can write and test your PHP scripts, there's one thing you'll need - a server! Fortunately, you don't need to go out and buy one. In fact, you won't be spending any extra money. That's why PHP is so popular! But because PHP is a server-sided scripting language, you either have to get some web space with a hosting company that supports PHP, or make your computer affect that it has a server installed. This is because PHP is not run on your PC - it's executed on the server. The results are then sent back to the client PC (your computer).
  13. 13. Contd., We're going to be using some software called Wampserver.  This allows you to test your PHP scripts on your own computer.  It installs everything you need, if you have a Windows PC. We'll explain how to get it installed in a moment, and where to get it from. 
  14. 14. Benefits of PHP  PHP is an open source software & costs nothing, it is free to download and use.  PHP is a server-side scripting language and is used for websites and web applications.  PHP scripts are executed on the server.  PHP supports a wide range of databases.  PHP runs on various platforms like Linux, Windows, Unix etc.  PHP supports most web servers (for example Apache, IIS).  PHP converses with several network protocols.
  15. 15. How PHP is Processed  When a PHP document is requested of a server, the server will send the document first to a PHP processor  Two modes of operation  Copy mode in which plain HTML is copied to the output  Interpret mode in which PHP code is interpreted and the output from that code sent to output  The client never sees PHP code, only the output produced by the code

×