PHP PHP: Hypertext Preprocessing. What is PHP? PHP is a server-side scripting language designed specifically for the Web. An open source language PHP.

Slides:



Advertisements
Similar presentations
PHP Hypertext Pre-Processor
Advertisements

IS 6116 Introduction – 10 Jan Lecturer Details Aonghus Sugrue Website: aonghussugrue.wordpress.com
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.
PHP/ASP Robert Nelson & Will Vanlue BA370 November 4 th, 2005.
PHP CSCE 330 February 6, 2003 Group Members: Antwan B. Phan George Hwang Luat Vu Programming Language Presentation.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
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.
1 CS6320 – Why Servlets? L. Grewe 2 What is a Servlet? Servlets are Java programs that can be run dynamically from a Web Server Servlets are Java programs.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
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.
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.
The PHP Story. PHP Story PHP is a programming language. Incorporate(join) sophisticated business logic. Widely used general purpose scripting language.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
COMP An Introduction to Computer Programming : University of the West Indies COMP6015 An Introduction to Computer Programming Lecture 03.
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.
Powerpoint Templates Page 1 Powerpoint Templates Web Programming PHP MySql Ikbal Jamaludin.
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.
PHP - Hypertext Preprocessor Yaron Benita De Paul University.
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Mandakini Ayushi Infotech Mandakini Kumari 22 nd July PHP Basic.

PHP was created by Rasmus Lerdorf in It was initially server-side, traffic tracking script. PHP 2 (1995) Added database support, file uploads, regular.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
PHP Professor Waterman. Agenda What is PHP Versions HTML Dynamic Web sites Interactive Web Sites Installing PHP Transfer pages to a Web hosting service.
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.
What is PHP? PHP (recursive acronym for "PHP: Hypertext Preprocessor") is a widely-used Open Source general- purpose scripting language that is especially.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
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.
PHP vs ASP.NET By: Colin Cramer. Overview HistoryCostPopularitySupportScalability.
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.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
An introduction to PHP web programming ITWP103.
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.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
PHP Training With Live SSDN Technologies SSDN Technologies To request free demo session please mail us at or call us at
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,
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Introduction to PHP and MySQL – Creating Database-Driven Websites
A PRESENTATION ON (IN PHP,CSS,HTML)
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 PHP PHP STAND FOR HYPERTEXT PRE-PROCESSOR. PHP PHP PHP STAND FOR HYPERTEXT PRE-PROCESSOR.
PHP / MySQL Introduction
Skulbong Taisawapak ID:
IntroductionToPHP Static vs. Dynamic websites
Introduction to PHP.
Presentation transcript:

PHP PHP: Hypertext Preprocessing

What is PHP? PHP is a server-side scripting language designed specifically for the Web. An open source language PHP code can be embedded within an HTML page, which will be executed each time that page is visited. Example code (all equivalent): – Short Style: – XML Style: – Script Style: echo “ Hello World! ” ; – ASP Style:

History of PHP Created by Rasmus Lerdorf in 1994 Originally a set of Perl scripts used by Lerdorf to show off his résumé as well as collect information on his website, such as the site ’ s traffic info. Lerdorf later transcribed these Perl scripts into a set of CGI binaries written in C, and in doing so, combined it with his own Form Interpreter to create PHP/FI.

History of PHP PHP/FI grew in popularity, but did not become widely known until two program developers named Zeev Suraski and Andi Gutmans, developed a new parser in the summer of 1997, which led to the development of PHP 3.0. The newest version out is PHP 5, which uses an engine developed by Suraski and Gutmans, known as the Zend II Engine. (Zend I was used by PHP 4)

PHP Programming Paradigms Uses both procedural and object oriented paradigms Procedural PHP – Has been in use since the creation of PHP, its primary paradigm. – Allows for easy and quick learning of the PHP language. – Similar to other popular languages such as Visual Basic, C++, and Fortran.

PHP Programming Paradigms Object Oriented PHP – Similar to Java, example of an object class: <?php class BaseClass { function __construct() { echo "In BaseClass constructor "; } class SubClass extends BaseClass { function __construct() { parent::__construct(); echo "In SubClass constructor "; } $obj = new BaseClass(); $obj = new SubClass(); ?> public class BaseClass { public BaseClass() { System.out.println("In BaseClass constructor\n"); } class SubClass extends BaseClass { public SubClass() { super(); System.out.println("In SubClass constructor\n"); } public class Output { public static void main(String[] args) { Object obj; obj = new BaseClass(); obj = new SubClass(); }

Features of PHP Very Efficient – Can serve millions of hits per day. Database Integration – Supports many databases, such as mySQL and Oracle. Also has excellent XML support as of PHP 5. Built-in Libraries – Tailored to web development, one can connect to other network services, send , work with cookies, generate PDF documents, and make GIF images on the fly all with a few lines of code. It ’ s Free – Available on Easy to Learn – Very similar in syntax to C/C++/Java and Perl. Portable – Works on Unix based operating systems, on Mac OS X, as well as on versions of Microsoft Windows. Your PHP code will often work without modification on a different system running PHP.

Database Support The following is a list of supported databases in PHP 5: Adabas D InterBase PostgreSQL dBase FrontBase SQLite Empress mSQL FilePro (read-only) Solid Direct MS-SQL Sybase Hyperwave mySQL Velocis ODBC Unix dbm Informix Oracle (OCI7 and OCI8) Ingres Ovrimos IBM DB2

Differences From Java Data types are not required in variable declarations. The $ symbol precedes all variables in PHP Constants are declared using the define() method in PHP: ex. define( “ AOL", "something"); Constructors do not necessarily have to be the same name as the class name. Destructors are used in PHP to remove objects from memory after they are constructed.

What is PHP Good For? It is great for complex web page designs – E-commerce sites with heavy traffic (ex. Amazon) – Complex bulletin boards and forums (ex. phpBB) – Secure websites (ex. Novasis) – web hosts (ex. Gmail) – Working with and integrating XML into your webpage – Database management and search (ex. theFaceBook)

Simple PHP Example CISC474/11S/example/php/prod_discount/ CISC474/11S/example/php/prod_discount/