PHP: Hypertext Preprocessor Greg Lowe Rob White Brian Wright Mike Zywiec.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Software Freedom Day th September 2007 Asia Pacific Institute of Information Technology Colombo, Sri Lanka. Nazly Ahmed Scripting The Web.
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.
Learning Web development. 3(+1) Tier architecture PHP script Remote services Web Server (Apache, IIS) Browser (IE, FireFox, Opera) Desktop (PC or MAC)
The Apache Web Server  Started in April 1996 as an open source multiplatform web server (Windows, FreeBSD, UNIX, and Linux compatible).  Now the world’s.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
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.
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.
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
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.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
UFCEKG-20-2 Data, Schemas & Applications Lecture 4 Server Side Scripting & PHP.
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
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.

Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
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.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
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 By Sergio Rodriguez By Sergio Rodriguez. PHP G PHP: Hypertext Preprocessor G Scripting language G PHP: Hypertext Preprocessor G Scripting language.
PHP OVERVIEW. C ONTENT Introduction of PHP History and development Basics of PHP programming.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Introduction to PHP Advanced Database System Lab no.1.
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.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
PHP Introduction PHP is a server-side scripting language.
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
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.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
PHP Training With Live SSDN Technologies SSDN Technologies To request free demo session please mail us at or call us at
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
By bscshelp.com 1.  It is a group assignment.  Complete Website design Using Html and Css.  Due date: 10 th December, 2014 (Hard Deadline) 2.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
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.
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.
CGS 3066: Web Programming and Design Spring 2017
CSC 301 Web Programming Charles Frank.
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 PHP PHP STAND FOR HYPERTEXT PRE-PROCESSOR. PHP PHP PHP STAND FOR HYPERTEXT PRE-PROCESSOR.
PHP / MySQL Introduction
Module 1 Introduction to PHP 11/30/2018 CS346 PHP.
IntroductionToPHP Static vs. Dynamic websites
Introduction to PHP.
Web Application Development Using PHP
Presentation transcript:

PHP: Hypertext Preprocessor Greg Lowe Rob White Brian Wright Mike Zywiec

Introduction PHP stands for “PHP: Hypertext Preprocessor” Server-side scripting language Syntactically similar to C Utilized by approximately 33% of web domains on the web

History 1995 – Rasmus Lerdorf wrote the Personal Home Page/Form Interpreter: PHP/FI Wanted to create a HTML-centric language as opposed to PERL which was PERL-centric Code was inside the HTML document and written within Tags Example: Hey, you are using Netscape! Hey, you are using Netscape! <!--endif-->

History Lerdorf was not satisfied with PHP/FI so he wrote PHP/FI v.2 Embedded commands within tags Same syntax used today

History 1997—Zeev Suraski and Andi Gutmans contacted Lerdorf in an effort to combine their already written engine with PHP/FI v.2 After agreeing, the three and some others finished the release of PHP v.3 PHP v.3 gained: Limited Object Oriented Support Limited Object Oriented Support More speed More speed Numerous DB support (MySQL, ODBC, Oracle, …) Numerous DB support (MySQL, ODBC, Oracle, …) Extensibility Extensibility Allowed for programmers to write their own modules for the language

History Zeev and Andy went to work on what is now called the Zend Engine The Zend Engine + PHP v3 = PHP4(2000)

History PHP v Better Objected Oriented Support Better Objected Oriented Support Better Error Checking Better Error Checking Java Style try{} catch{} SimpleXML SimpleXML Easy interaction with XML Documents

Installing PHP Web Environment Command Line Interface

Command Line PHP Scripting Can execute code from command line in three ways: Executing file Executing file Code from command line Code from command line Passed code from standard input Passed code from standard input

Advantages of CLI Installation Same code can work on Unix or Windows machines ‘#!/usr/bin/php’ ‘#!/usr/bin/php’ Web-independent development

For Server-Side Scripting Prepackaged solutions Manually compiling & configuring Works for Apache 1.3.x/2.0, IIS

Known Issues IIS Delicacy (Security) Delicacy (Security)Apache 2.0 (Thread safety, high-traffic areas) 2.0 (Thread safety, high-traffic areas)

PHP Strengths: Ready to use tools to interface with many databases and web utilities. (MySQL, Oracle, Etc.) Easily extensible. PHP is modular and it is simple to create utilities to extend the capabilities of the language. PEAR project (

PHP Strengths: Server Side processing No client side software

PHP Weaknesses: Weakly typed variables. Poor error detection / warning. Really only suitable for web applications.

PHP <?php // Print a greeting if the form was submitted if ($_POST['user']) { print "Hello, "; // Print what was submitted in the form parameter called 'user' // Print what was submitted in the form parameter called 'user' print $_POST['user']; print "!"; } else { // Otherwise, print the form print <<<_HTML_ Your Name: Your Name: <br/> _HTML_; _HTML_;}?>

PHP Your Name: Your Name: <br/> </form> Then when I click on enter the returned information is: Hello, greg! Example-1-05.php

PHP require 'DB.php'; $db = if (DB::isError($db)) { die("connection error: ". $db->getMessage( )); } // Eggplant with Chili Sauce is spicy $db->query("UPDATE dishes SET is_spicy = 1 WHERE dish_name = 'Eggplant with Chili Sauce"); WHERE dish_name = 'Eggplant with Chili Sauce"); // Lobster with Chili Sauce is spicy and pricy $db->query("UPDATE dishes SET is_spicy = 1, price=price * 2 WHERE dish_name = 'Lobster with Chili Sauce'"); WHERE dish_name = 'Lobster with Chili Sauce'");

PHP <?php print 'strftime() says: '; print strftime('%c'); print "\n"; print 'date() says:'; print date('r'); ?>1example-9-01

PHP <?php function page_header2($color) { print ' Welcome to my site '; print ' Welcome to my site '; print ' '; print ' ';}page_header2('cc00cc');}?>1example-5-04.php

PHP Example-A-03.php

PHP