PHP: Hypertext Processor Fred Durao

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Thursday, September 19, 2013 Session 3: JavaScript.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
PHP for Server-Side Preprocessing Chapter 08. Overview and Objectives Present a brief history of the PHP language Discuss how PHP fits into the overall.
Introduction to JavaScript
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
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 Server-side Programming. PHP  PHP stands for PHP: Hypertext Preprocessor  PHP is interpreted  PHP code is embedded into HTML code  interpreter.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
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.
August Chapter 1 - Essential PHP spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science and Technology.
PHP Overview CS PHP PHP = PHP: Hypertext Preprocessor Server-side scripting language that may be embedded into HTML One goal is to get PHP files.
PHP == ‘ Hypertext Preprocessor ’ Open-source, server-side scripting language Used to generate dynamic web-pages PHP scripts reside between reserved PHP.
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.
PHP : Hypertext Preprocessor
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
Copyright © Curt Hill PhP History and Introduction.
CSC 405: Web Application And Engineering II 2.1 Web Programming with PHP Introduction to Web programming Introduction to Web programming The programming.
Advanced Web 2012 Lecture 4 Sean Costain PHP Sean Costain 2012 What is PHP? PHP is a widely-used general-purpose scripting language that is especially.
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Lecture Note 3: ASP Syntax.  ASP Syntax  ASP Syntax ASP Code is Browser-Independent. You cannot view the ASP source code by selecting "View source"
Lecture 12 PHP Basics Boriana Koleva Room: C54
AIT 616 Fall 2002 PHP. AIT 616 Fall 2002 PHP  Special scripting language used to dynamically generate web documents  Open source – Free!!!  Performs.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
INTERNET APPLICATION DEVELOPMENT For More visit:
NMED 3850 A Advanced Online Design January 26, 2010 V. Mahadevan.
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
A little PHP. Enter the simple HTML code seen below.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Client Scripting1 Internet Systems Design. Client Scripting2 n “A scripting language is a programming language that is used to manipulate, customize,
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
November 2003Bent Thomsen - FIT 6-11 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
Tutorial 10 Programming with JavaScript
Python – Part 1 Python Programming Language 1. What is Python? High-level language Interpreted – easy to test and use interactively Object-oriented Open-source.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
JavaScript - A Web Script Language Fred Durao
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Introduction to PHP Advanced Database System Lab no.1.
Fall 2004CSI University of Ottawa Introduction to PHP Basic principles and syntax.
CSE 154 LECTURE 5: INTRO TO PHP. URLs and web servers usually when you type a URL in your browser: your computer looks up the.
JavaScript Scripting language What is Scripting ? A scripting language, script language, or extension language is a programming language.
1 CSC 301 Web Programming Charles Frank. PHP – Stands for:  Personal Home Page (originally),  PHP: Hypertext Preprocessor (now; follows GNU’s recursive.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
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.
Creating Databases for Web applications Server side vs client side PHP basics Homework: Get your own versions of sending working: both html and Flash!
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
Fall 2004CSI University of Ottawa Introduction to PHP Basic principles and syntax.
CSC 405: Web Application Engineering II 2.1 Web Programming with PHP Introduction to Web programming Introduction to Web programming The programming language.
1 PHP Intro PHP Introduction After this lecture, you should be able to: Know the fundamental concepts of Web Scripting Languages in general, PHP in particular.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
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,
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
PHP Overview. What is PHP Widely available scripting language Free Alternative to Microsoft’s ASP Runs on the Web Server; not in the browser Example:
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
PHP – PHP Hypertext Processor A quick overview. How is PHP used? Embedded with HTML, e.g. Not like CGI: PHP files not an executable Used with servers.
PHP using MySQL Database for Web Development (part II)
WWW and HTTP King Fahd University of Petroleum & Minerals
CSC 301 Web Programming Charles Frank.
DBW - PHP DBW2017.
PHP (PHP: Hypertext Preprocessor)
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
HYPERTEXT PREPROCESSOR BY : UMA KAKKAR
Intro to PHP.
Tutorial 10: Programming with javascript
PHP: Hypertext Preprocessor
Presentation transcript:

PHP: Hypertext Processor Fred Durao

Origins and Uses of PHP - Origins - Rasmus Lerdorf Developed to allow him to track visitors to his Web site - PHP is an open-source product - PHP was originally an acronym for Personal Home Page, but later it became PHP: Hypertext Preprocessor - PHP is used for form handling, file processing, and database access PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

Overview of PHP - PHP is a server-side scripting language whose scripts are embedded in HTML documents - Similar to JavaScript, but on the server side - PHP syntax is similar to that of JavaScript For a browser read and interpret the PHP commands, the file must be have an extension.PHP EXAMPLE - before myPage.html - now myPage.php More at

General Syntactic Characteristics - PHP code can be specified in an HTML document internally or externally: Internally: <?php php code goes here ?> Externally: include ("myScript.inc") - the file can have both PHP and HTML - Comments - three different kinds //... #... /*... */ - Output from a PHP script is HTML that is sent to the browser. - PHP code is placed in the body of an HTML document

A little bit of “Programming” -It is the process of designing, writing, testing, debugging, and maintaining the source code of computer programs. - This source code is written in a programming language. - The code may be a modification of an existing source or something completely new. - The purpose of programming is to create a program that exhibits a certain desired behavior (customization).

A little bit of “Programming” (continue) -The details look different in different languages, but a few basic instructions appear in just about every language: - input: Get data from the keyboard, a file, or some other device. - output: Display data on the screen or send data to a file or other device. - arithmetic: Perform basic arithmetical operations like addition and multiplication. - conditional execution: Check for certain conditions and execute the appropriate sequence of statements. - repetition: Perform some action repeatedly, usually with some variation. THE program languages such as PHP, JAVA, C, JAVASCRIPT,... Implement these instructions though commands. Usually each program language has its own syntax.

PHP –> VARIABLE Variables are used for storing values, like text strings, numbers or arrays. When a variable is declared, it can be used over and over again in your script. All variables in PHP start with a $ sign symbol. Example $var_name = value;

PHP –> Control Statements - Relational operators - same as JavaScript, (including === and !== ) - Boolean operators – “OR” and “AND” - Selection statements - if, if - else, elseif - HTML can be intermingled with PHP script <?php $a = 7; $b = 7; if ($a == $b) { $a = 3 * $a; } ?>

User-Defined Functions - Syntactic form: function function_name ( formal_parameters ) { … } - General Characteristics - Functions need not be defined before they are called - The return function is used to return a value; - If there is no return, there is no returned value EXAMPLE function set_max(&$max, $first, $second) { if ($first >= $second) $max = $first; else $max = $second; }

PHP –> COMMANDS - > ECHO PHP has a number of predefined functions ready use. Echo () PHP Function - is used to output the given argument. <?php Echo "Hello"; //Outputs a string Echo $variable; //Outputs a variable Echo "Multiple things ". $on. " one line"; //Outputs a string, then a variable, then a string. All are separated with a [.] period ?>

PHP –> COMMANDS -> MAIL PHP has a number of predefined functions ready use. Mail () PHP Function - is used to send an . mail ($to, $subject, $message, $headers) // headers are optional <?php $to = $subject = 'the subject'; $message = 'hello'; $headers = 'From: "\r\n". 'Reply-To: "\r\n". mail($to, $subject, $message, $headers); ?>