Speaker: Hsiang-Ting Fang 1. What is PHP. History of PHP. Variables Data type Examples*4 Reference Exercise*3 2.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies.
Session 1 & 2BBK P1 Module5-May-2007 : [‹#›] PHP: The Basics.
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.
PHP Hypertext Preprocessor Information Systems 337 Prof. Harry Plantinga.
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.
IST 221 Internet Concepts and Applications Introduction to PHP.
Multiple Tiers in Action
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.
Introduction to PHP (Part-1) Basharat Mahmood, Department of Computer Science,CIIT,Islamabad, Pakistan. 1.
PHP Server-side Programming. PHP  PHP stands for PHP: Hypertext Preprocessor  PHP is interpreted  PHP code is embedded into HTML code  interpreter.
PHP Workshop ‹#› PHP: The Basics. PHP Workshop ‹#› What is it? PHP is a scripting language commonly used on web servers. –Stands for “PHP: Hypertext Preprocessor”
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
PHP: Hypertext Processor Fred Durao
PHP (Hypertext Preprocessor) 1. PHP References From W3 Schools: PHP.
UFCEKG-20-2 Data, Schemas & Applications Lecture 4 Server Side Scripting & PHP.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
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 Yaron Benita De Paul University.
Copyright © Curt Hill PhP History and Introduction.
1 Pertemuan 13 PHP-MySQL Last Updated: 15 th May 2010 By M. Arief
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
Mandakini Ayushi Infotech Mandakini Kumari 22 nd July PHP Basic.
An Introduction to PHP The University of Tennessee at Chattanooga C. Daniel Chase “An introduction to basic PHP use with a focus on the power of dynamic.
University of Sunderland Lecture 1 Internet Software Architectures Lecture 1: Introduction.
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 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.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
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.
Developing Web Applications with PHP RAD for the World Wide Web.
PHP By Sergio Rodriguez By Sergio Rodriguez. PHP G PHP: Hypertext Preprocessor G Scripting language G PHP: Hypertext Preprocessor G Scripting language.
Open Source Software Unit – 3 Presented By Mr. R.Aravindhan.
Variables and ConstantstMyn1 Variables and Constants PHP stands for: ”PHP: Hypertext Preprocessor”, and it is a server-side programming language. Special.
PHP Teresa Worner. What is it? PHP: Hypertext Preprocessor server-side scripting language open source cross-platform compatible with almost all servers.php.php3.phtml.
PHP PHP: Hypertext Preprocesor Personal Home Page Tools.
HTML & PHP What’s the difference?. HTML Hypertext Markup Language Key Word is “Markup” HTML is the code that makes the “screen” All web pages are made.
Just a Little PHP Programming PHP on the Server. Common Programming Language Features Comments Data Types Variable Declarations Expressions Flow of Control.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
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.
Week 4 PHP H ypertext P reprocessor Reference : Official Site :
PHP vs ASP.NET By: Colin Cramer. Overview HistoryCostPopularitySupportScalability.
1 CSC 301 Web Programming Charles Frank. PHP – Stands for:  Personal Home Page (originally),  PHP: Hypertext Preprocessor (now; follows GNU’s recursive.
Chapter 2 Programming with PHP Part 3. handle_form.php Script 2.5 on page 56 orm.html
Martin Kruliš by Martin Kruliš (v1.1)1.
Interactive Web Tehcnologies Teppo Räisänen LIIKE/OAMK 2011.
Fall 2004CSI University of Ottawa Introduction to PHP Basic principles and syntax.
1 PHP Pattadon Sintusak ID PHP Programmingintroduction2 Content History of PHP What’s PHP? Purpose of PHP Structure of PHP Language Reference.
Chapter 1 Introduction to PHP Part 1. Textbook’s Code DOWNLOADS PHP and MySQL for Dynamic Web Sites Complete Set of Scripts.
©John Samuel 2008 Introduction to PHP Note: These slides are not included in coverage for the BIF703 final exam...
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.
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,
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:
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.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 13 Scott Marino.
PHP – Hypertext Preprocessor.
First Steps in PHP Creating Very Simple PHP Scripts SoftUni Team Technical Trainers Software University
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
Introduction to Dynamic Web Programming
Development of Web Applications - Introduction
CSC 301 Web Programming Charles Frank.
Introduction to PHP Part 1
And Why You Should Use It In You Websites
Skulbong Taisawapak ID:
SEEM 4540 Tutorial 4 Basic PHP based on w3Schools
Presentation transcript:

Speaker: Hsiang-Ting Fang 1

What is PHP. History of PHP. Variables Data type Examples*4 Reference Exercise*3 2

PHP: Hypertext Preprocessor. Scripting language. Can be embedded into HyperText Markup Language ( HTML). Server-client structure. 3 [1]

PHP/FI  Created by Rasmus Lerdorf in 1995  Personal Home Page Tools  Perl script PHP2  PHP: Hypertext Preprocessor  C language 4

Must start with “$”. Other name rules are the same as C. External variable  GET/POST  COOKIE  SESSION Internal variable  phpinfo(); phpinfo();  SERVER 5

Support these data type 6 Data type How to use Integer$a = 123; $a = 0123; // Octal $a = 0x12; // Hex Float$a = 1.234; $a = 1.2e3; Array$b[0][] = 567.8; $c = array(9, 10, 'A'); String$a = ‘Hello World.’; $a = “Hello world!” ; Objectclass foo { function do_foo () { echo “Doing foo.”; } } $bar = new foo; $bar -> do_foo ();

<?php /* Edited by Claudia July 21, 2011 */ $tmp = "Hello world!" ; //This is a string echo $tmp ; #print the variable ?> 7

php <?php $an1 = "dog"; $an2 = "cat"; $an3 = "bird"; echo "What I like is a $an3. "; echo 'What I like is a $an3. ' ; echo $an1." hates ". $an2."." ; ?> 8

php Hello World! \n"; ?> 9

Template: Code:

[1]

What is the difference between POST and GET.( Example4)Example4 Show the 9*9 multiplication table like this link.link Using PHP and from to find out the greatest common divisor. linkfromlink 12