PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

1 Database Driven Web Application Clients Application Servers including web servers Database Server Traditional client-server (2-tier architecture): client:
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer

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.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Web Programming Introduction to PHP COM Objectives To understand what PHP is and how a PHP script works with a Web Browser and a Web Server To learn.
E-Commerce The technical side. LAMP Linux Linux Apache Apache MySQL MySQL PHP PHP All Open Source and free packages. Can be installed and run on most.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
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).
8/17/2015CS346 PHP1 Module 1 Introduction to 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.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
PHP: Hypertext Processor Fred Durao
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
AIT 616 Fall 2002 PHP. AIT 616 Fall 2002 PHP  Special scripting language used to dynamically generate web documents  Open source – Free!!!  Performs.
PHP. Why should we learn web programming? No need write socket programming. - You can forget TCP/IP & OSI layers. - Web server handles socket tasks for.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
INTERNET APPLICATION DEVELOPMENT For More visit:
PHP PHP: Hypertext Preprocessing Preston Brinks and Sean McKenzie.
PHP By Jonathan Foss.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
PHP OVERVIEW. C ONTENT Introduction of PHP History and development Basics of PHP programming.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Overview: 1. Discussion of the basic architecture of a web application. 2. Discussion of the relevance of using MySQL and PHP in a web application.
Introduction to PHP Advanced Database System Lab no.1.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
PHP Open source language for server-side scripting Works well with many databases (e.g., MySQL) Files end in.php,.php3 or.phtml Runs on all major platforms.
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.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
IT ELECTIVE 2.  Web server Can refer to either the hardware (the computer) or the software (the computer application) that helps to deliver content that.
PHP A very brief introduction PHP1. PHP = PHP: Hypertext Processor A recursive acronym! PHP scripts are executed on the server side Executed by (a plugin.
PHP Introduction PHP is a server-side scripting language.
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.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
PHP Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
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.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
CGS 3066: Web Programming and Design Spring 2017
Introduction to Dynamic Web Programming
Ben Dahlin LCSC Technology Development Coordinator
PHP / MySQL Introduction
PHP Introduction.
Web Systems Development (CSC-215)
PHP.
PHP and Forms.
HYPERTEXT PREPROCESSOR BY : UMA KAKKAR
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Introduction to PHP.
PHP an introduction.
Web Application Development Using PHP
Presentation transcript:

PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva

WHAT IS PHP?  General purpose  Server-side web development  Console application

BACKGROUND  First created in 1994 by Rasmus Lerdorf  Designed to streamline web tasks  Designed to access databases for storing data.  Used for web forms  First public release in 1995

BACKGROUND  Used primarily as website scripting  Text Interpreter/filter  Installed on over 20 million websites and domains  Can install multiple versions  Current version 5.4  Object-Oriented

HISTORY  Originally named “Personal Homepage Tools”  Rewritten in 1997 using C, released publicly  Renamed to “Hypertext Preprocessor”  Version 4 introduced command line functionality  Version 5 rewrote Object support  Version 6 has been postponed

LICENSING  Open source  PHP License  Term “PHP” cannot be used directly in a project.

OPERATING ENVIRONMENTS  Windows  Mac  Linux  Almost any others  Built from source  Web servers  Apache  IIS  Lighttpd

STACKS  Comes bundled with many Linux Distributions  Bundles for  Mac: MAMP (Mac, Apache, MySQL, PHP)  Linux: LAMP (Linux, Apache, MySQL, PHP)  Windows: WAMP …

HOW IT WORKS  Client Request sent to Web server  Web server directs to PHP filter  PHP processes data and sends to web server  Web server sends back to client

SYNTAX  Similar to major programming languages  C  Java  Can be embedded inside other languages such as HTML

SYNTAX : DECLARATIONS  Declared PHP code with delimiters   ASP Style   Code is only executed between these delimiters

SYNTAX: VARIABLES  Loosely typed, unlike C/Java // Create an integer and set equal to 3 $myVariable = 3; Prefixed name with ‘$’ Notice no type specified, this can be a string value of “3”, character ‘3’ or integer value of 3. Depends upon notation! Need to be careful with variable types!

SYNTAX: COMMENTING  Similar to other langues  // This is a single line comment  /* This is a block style comment */

SYNTAX: FUNCTIONS  Functions declarations similar to C/Java Function myFunction($value1, $value2) { return $value1 + $value2; } Can be value returning or not!

SYNTAX: LOOPS  Similar to C/Java  For … While … Do While … for each $i = 0; While ( $i != 5 ) { echo “Number is: “. $i. “ ; $i++; } Notice the ‘.’!

SYNTAX: FILE HANDLING  Can Open and write to file system  Used to read/write from a server for web content  Built in file support for:  XML  FTP  Zip  Cookies

SYNTAX: GET/POST  Can get data using $_Get[“ “]  Useful for retrieving data from url.  Can send data using $_Post[“ “]  Useful for submitting user forms such as request information forms.

SYNTAX: OBJECTS  PHP is Object-Oriented  Can create classes and objects of any type  Similar to C/Java  Can have private/public methods and data members  Arrow notation instead of dot notation

SYNTAX: MAIL  Built in support  Create text based  Send via 1 function.

FILE EXTENSIONS  Standard extension:.php  Can have others .phtml .php5  If multiple versions are installed,.php5 will refer to version 5 installed

USAGE  Command line  Dynamic websites  Content Management  Can be used for Desktop applications  GUI controls

DATABASE SUPPORT  Built to work primarily with MySQL  Capable of working with others:  MS SQL  Oracle  Postgres  PDO Driver

SECURITY  Very little security holes have been found with core PHP application  Security risks come from each individual programmer, not the PHP filter!  Bad programming habits

WEB PRESENCE  20 Million domains/websites  Comes pre installed with many Linux distributions.  Content Management Systems

WEB PRESENCE: CMS  Many Content Management Systems are built with PHP  Joomla  Wordpress  Drupal  Far more built with PHP than others such as.Net

COMMUNITY SUPPORT  Need help? Google it.  Since PHP is so widely used, there is great community support  Content Management Systems are sometimes community built

SCRIPT AVAILABILITY  Community Support  Open Source 

DEVELOPMENT  Code in Notepad  IDE Support  Netbeans  Zend Studio  Eclipse  Codelobster

CONCLUSION  General Scripting lanaguage  Over 20 million domains  Command line/Web server-side  Various database support  Thousands of pre-built scripts  Open source

QUESTIONS?