What is PHP PHP (officially "PHP: Hypertext Preprocessor") is a server-side HTML-embedded scripting language –means that code does not need to be compiled.

Slides:



Advertisements
Similar presentations
PHP Hypertext Pre-Processor
Advertisements

PHP I.
Other Web Application Development Technologies. PHP.
Syed Arshad Sultan ,
INTRODUCTION GROUP MEMBERS Abubakr Saeed : Khurram Ali Khan :
Software Freedom Day th September 2007 Asia Pacific Institute of Information Technology Colombo, Sri Lanka. Nazly Ahmed Scripting The Web.
PHP: Hypertext Preprocessor Greg Lowe Rob White Brian Wright Mike Zywiec.
BY: ALBERTO CABEZAS 4/19/2010. INTRODUCTION: PHP is considered today as one of the most famous scripting languages. PHP is widely used as a general purpose.
Server-Side vs. Client-Side Scripting Languages
PHP/ASP Robert Nelson & Will Vanlue BA370 November 4 th, 2005.
Learning Web development. 3(+1) Tier architecture PHP script Remote services Web Server (Apache, IIS) Browser (IE, FireFox, Opera) Desktop (PC or MAC)
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Intermediate PHP (1) Data Structures, Functions, Basic OO & Error Handling.
May 11, 2011 PHP Hypertext Preprocessor. What is the technology? ✤ Server side scripting and programming language. ✤ Can be embedded in HTML ✤ Free and.
By Brian Patterson & Amanda Perez. PHP was originally created to maintain his personal homepage, hence the name PHP. Development began in 1994 and was.
May 11, 2011 PHP Hypertext Preprocessor. What is the technology? ✤ Server side scripting and programming language. ✤ Can be embedded in HTML ✤ Free and.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
PHP PHP: Hypertext Preprocessing Matt Murphy & Dublas Portillo.
PHP PHP: Hypertext Preprocessing. What is PHP? PHP is a server-side scripting language designed specifically for the Web. An open source language PHP.
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
Introduction to PHP. PHP PHP is the Hypertext Pre-processor –Script language –Embedded into HTML –Runs as Apache module –Can use DB (MySQL, Oracle, Microsoft.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
PHP - Hypertext Preprocessor Yaron Benita De Paul University.
Script Programming Sutep JUNKHIAW
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Mandakini Ayushi Infotech Mandakini Kumari 22 nd July PHP Basic.

Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
PHP was created by Rasmus Lerdorf in It was initially server-side, traffic tracking script. PHP 2 (1995) Added database support, file uploads, regular.
PHP Professor Waterman. Agenda What is PHP Versions HTML Dynamic Web sites Interactive Web Sites Installing PHP Transfer pages to a Web hosting service.
Pradeep Tallogu Deepak Avanna Sharath Madathil
PHP PHP: Hypertext Preprocessing Preston Brinks and Sean McKenzie.
PHP TUTORIAL. HISTORY OF PHP  PHP as it's known today is actually the successor to a product named PHP/FI.  Created in 1994 by Rasmus Lerdorf, the very.
Nael Alian Introduction to PHP
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
PHP and MySQL by Example COMP YL Professor Mattos.
Technical Review - PHP Jang Jaeseok. Overview Introduction  What is PHP?  History of PHP  What can do with PHP?  Advantages of PHP PHP syntax.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
PHP Features. Features Clean syntax. Object-oriented fundamentals. An extensible architecture that encourages innovation. Support for both current and.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Introduction to PHP Advanced Database System Lab no.1.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
WEB DEVELOPMENT WITH PHP/MYSQL. WEB DEVELOPMENT COURSE HAS DIFFERENT NAME IN DIFFERENT INSITUTES, THIS IS A CORE COURSE FOR BS/MS STUDENTS. THIS IS ALSO.
1 CSC 301 Web Programming Charles Frank. PHP – Stands for:  Personal Home Page (originally),  PHP: Hypertext Preprocessor (now; follows GNU’s recursive.
Yasar Hussain Malik - NISTE. PHP Origins Rasmus Lerdorf PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP Hypertext Processor’ Other key.
PHP Introduction PHP is a server-side scripting language.
1Introduction to PHP 5 Presented by Brett Buddin.
1 PHP Pattadon Sintusak ID PHP Programmingintroduction2 Content History of PHP What’s PHP? Purpose of PHP Structure of PHP Language Reference.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
Presenting By A-ONE INFOTECH.  A-one InfoTech is a professional web design company located in Chandigarh, India. We specialized in web design, web development,
Introduction to PHP and MySQL – Creating Database-Driven Websites
A PRESENTATION ON (IN PHP,CSS,HTML)
And Why You Should Use It In You Websites
Introduction to PHP “PHP is a server-side scripting language designed specifically for the Web. Within an HTML page, you can embed PHP code that will be.
Introduction to PHP “PHP is a server-side scripting language designed specifically for the Web. Within an HTML page, you can embed PHP code that will be.
PHP / MySQL Introduction
Skulbong Taisawapak ID:
IntroductionToPHP Static vs. Dynamic websites
Introduction to PHP.
Web Application Development Using PHP
Presentation transcript:

What is PHP PHP (officially "PHP: Hypertext Preprocessor") is a server-side HTML-embedded scripting language –means that code does not need to be compiled before it gets used it gets processed on the fly as necessary –has the capability of executing the script on the server and serving the output as a HTML File –it is responsible for manipulating the data which is filled in the entire web forms, any where in the net. – advantage of interacting with the databases and to perform all types of server manipulations directly

History of PHP

PHP/FI (Personal Home Page/Forms Interpreter) is the first release of PHP written by Rasmus Lerdorf in –It was inititally a simple set of Perl scripts for tracking accesses to his online resume. PHP/FI evolved into PHP 1.0 and 2.0, advanced piece of software that understood complex scripts. –Php 2.0 was released in 1997 and it had around 50,000 domains in which it was installed in.

History (cont’n) PHP 3.0 was created by Andi Gutmans and Zeev Suraski in 1997 as a complete rewrite of the original PHP/FI 2.0. –was the first version that closely resembles PHP as we know it today. PHP 3.0 had strong extensibility features, with solid infrastruscture for lots of databases and API’s. –It attracted dozens of developers to join in and submit new existing modules. –by the end of 1998 it was installed on hundreds of thousands of websites.

History (cont) PHP 4.0 officially released may based on the ZEND engine, a rewrite of PHP’s core to achieve improved performance of complex applications, and improve modularity of PHP’s code base - May 2003, almost 13 million domains were using PHP according to Netcraft survey and PHP.nets figures

Features PHP has support for most of the web servers today. –Apache, Microsoft IIS, PWS, Netscape and iPlanet servers, Oreilly Website Pro server, Caudium, Xitami, OmniHTTPd, and many others. PHP has support for a wide range of databases –Adabas D, Ingres, Oracle (OCI7 and OCI8), dBase, InterBase, Ovrimos, Empress, FrontBase, FilePro (read-only), mSQL,Solid, Hyperwave, Direct MS-SQL, Sybase, IBM DB2, MySQL, Velocis, Informix, ODBC, Unix dbm

Features You can very rapidly develop web applications in PHP PHP applications are very stable and do not depend on the browser technologies

Features Dynamically typed language, so it makes it extremely easy and fast to develop in. PHP has Zend optimizer which speeds up the performance PHP has a very large user base and developer base  Open Source - PHP is open source, you can modify the actual language to your needs.

Disadvantages Primitive Error Handling It is a Dynamically typed language, so it makes it extremely easy to hang yourself if you don't know what you are doing Some of the function names do not have a consistent naming scheme. Object orientation is really syntatic sugar. Objects are only slightly more than assoicative arrays with functions bound to them. Lacks Database Abstraction

Sample Programs

Example1 A basic PHP script:

Example 2 text.html Who is your favorite author? text.php <?php echo "Your favorite author is: $Author"; ?>

Example 3 Number.html I would like to know: the factorial of if the following number is prime the number following

Example 3 con’t number.php <?php function fact($Value){ if($Value<=1) return 1; else return $Value*fact($Value-1); } function isPrime($Value) { $Count = 2; do{ $Remainder = $Value%$Count; $Count++; }while ($Remainder !=0 AND $Count<$Value); if(($Count<$Value) OR ($Value == 0)){ echo "$Value is not prime"; } else{ echo "$Value is prime"; } switch($opt1){ case "fact": echo "$Value has a factorial of". fact($Value); break; case "prime": echo isPrime($Value); break; case "next": echo "The next number after $Value is ". ($Value+1); break; } ?>

Links php manual: compiler url asp?url=/library/en- us/dnaspp/html/phpvsaspnet.asp (asp vs Php) asp?url=/library/en- us/dnaspp/html/phpvsaspnet.asp