NMD202 Web Scripting Week1. Contact Information – Lecturer is a part time member of staff. Students are encouraged to use.

Slides:



Advertisements
Similar presentations
PHP I.
Advertisements

Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 11: Advanced Web Technologies.
Lecture 11 Server Side Interaction
Session 1 & 2BBK P1 Module5-May-2007 : [‹#›] PHP: The Basics.
JavaScript FaaDoOEngineers.com FaaDoOEngineers.com.
Java Script Session1 INTRODUCTION.
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.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Copyright 2009 Justin C. Klein Keane PHP Code Auditing Session 1 – PHP Foundations Justin C. Klein Keane
 2004 Prentice Hall, Inc. All rights reserved. Chapter 25 – Perl and CGI (Common Gateway Interface) Outline 25.1 Introduction 25.2 Perl 25.3 String Processing.
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: Introduction By Trevor Adams.
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”
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
PHP: Hypertext Processor Fred Durao
ALBERT WAVERING BOBBY SENG. Week Whatever: PHP  Announcements/questions/complaints.
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.
ITM352 PHP and Dynamic Web Pages: Server Side Processing.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
Website Development PHP Roundup. PHP Basics This presentation covers the key features of PHP without getting into the way we use it in collaboration with.
2010/11 : [1]Building Web Applications using MySQL and PHP (W1)PHP Recap.
Mandakini Ayushi Infotech Mandakini Kumari 22 nd July PHP Basic.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
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
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
SE3183 Advance Web Programming Programming Session 2013/2014.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Open Source Software Unit – 3 Presented By Mr. R.Aravindhan.
PHP - Basic Language Constructs CSCI 297 Scripting Languages - Day Two.
PHP Logic. Review: Variables Variables: a symbol or name that stands for a value – Data types ( Similar to C++ or Java): Int, Float, Boolean, String,
PHP. What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server.
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.
Week 4 PHP H ypertext P reprocessor Reference : Official Site :
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.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
NMD202 Web Scripting Week5. What we will cover today PHP & MySQL Displaying Dynamic Pages Exercises Modifying Data PHP Exercises Assignment 1.
Just a Little PHP Programming PHP on the Server. Common Programming Language Features Comments Data Types Variable Declarations Expressions Flow of Control.
STRUCTURE OF JSP PRESENTED BY: SIDDHARTHA SINGH ( ) SOMYA SHRIVASTAV ( ) SONAM JINDAL ( )
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
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 Tutorial. What is PHP PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
Scott Marino MSMIS Summer Session Web Site Design and Authoring Session 13 Scott Marino.
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.
1 Server Side scripting PHP. 2 What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
IST 210: PHP Logic IST 210: Organization of Data IST2101.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
Introduction to Dynamic Web Programming
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: Hypertext Preprocessor)
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 Introduction.
HYPERTEXT PREPROCESSOR BY : UMA KAKKAR
IntroductionToPHP Static vs. Dynamic websites
PHP: Hypertext Preprocessor
Hypertext Preprocessor
Presentation transcript:

NMD202 Web Scripting Week1

Contact Information – Lecturer is a part time member of staff. Students are encouraged to use to make an appointment.

Resources Website – to be provided Set Text - Yank, K., C Build your own Database Driven Website using PHP & MySQL., Sitepoint, Collingwood, Victoria Recommended Text - Valade, J.;C PHP and MySQL, Your Visual Blueprint for Creating Dynamic, Database-driven Web Sites. Hungry Minds Inc, U.S.

Schedule DurationTopics Week 1 ( Jul 25) PHP Syntax Week 2 (July 31) PHP Operators, expressions, constructs Week 3 (Aug 7) PHP Forms, server validation, Week 4 (Aug 14) MySql Concepts Week 5 ( Aug 21) Handling Databases PHP Week 6 (Aug 28) File and IO operations String manipulation Week 7 (Sep 4) MVC Patterns PHP Week 8 (Sep 18) Session and Cookies Week 9 (Sep 25) PHP & Ajax Week 10 (Oct 2) Libraries Week 11 (Oct 9) Object Oriented PHP Week 12 (Oct 16) Exam

ItemFocus Valu e DeliverablesDue Date Prac Exercises Code Exercises (Week1- Week4) 10% Series of exercises Week 4 Assignment Dynamic Web Site 50%  Project Brief  Data Model  Prototype  Working System  Presentation Class  Week 5  Week 8  Week 11 Exam40%3 hour paper Assessment

Code Testing Cross browser compatibility Validate against the standards Web Best Practices

What we will cover today What is Server Side Scripting History of PHP Syntax Examples and Exercises

What is Server Side Scripting Server side scripting refers to operations (scripts) that are executed on the server before feeding information to the browser Examples: ASP, PHP, Java Servlets, JSP, CGI, etc

What is PHP Stands for Hypertext Preprocessor General Purpose Scripting language. Usually runs in a Web server Initially interpreted, compiled after PHP4 Loosely-typed (does not do type checks) Procedural or Object Oriented (you choose) PHP is case-sensitive

History of PHP Started 1994 as a set of CGI binaries written in C First Release 1995 PHP v2 PHP v3 1997, Parser has been rewrote PHP v4 2004, Zend Engine, compiler PHP v5 2008, Object Support

PHP The best feature PHP – Flexibility The worst feature PHP - Flexibility

Basic Syntax PHP only parses code within its delimiters: Or

Basic Syntax <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" " Hello World

Exercise Setup Development Environment Do the Hello World example

Basic Syntax Operators > Bigger than < Smaller than == Equal === Equal type =! Different ? Ternary ++ Increment -- Decrement && And || or

Basic Syntax Variables Variables are prefixed with a dollar symbol and a type does not need to be specified in advance

Basic Syntax Variables $x = 1; $y = 2; $z= x+y; echo z; $x = “Hello”; $y = “World”; $z= x.” “.y; echo z;

Basic Syntax Loops for ($n=0;$n<5;$n++){ echo $n; } while (condition) do something } foreach ($array as $key){ echo $key; }

Basic Syntax Conditional Structures If (condition) { do something } else { do something else }

Basic Syntax Conditional Structures switch (variable){ case x: do something break; ….. }

Basic Syntax Arrays $a = array(); $a[0]=1; $a[1]=12; $a = array(); $a[‘car1’]=‘red’; $a[‘car2’]=‘green’;

Basic Syntax Functions function show($a){ echo ($a); } show(12); function sum($a,$b=20){ return ($a+$b) } echo sum(1); echo sum(1,5);

Basic Syntax Native Functions PHP has hundreds of base functions and thousands more from extensions Google and PHP Manual are the developer’s best friends

Debugging PHP Using echo Using die() Using print_r Using debuggers ( hpeclipse.html)

Exercises Display all even numbers between 0 and 6 using an echo statement Write a function that compares two numbers and echos which one is bigger Load an array with numbers and iterate through them echoing which numbers are odd or even, use the foreach iterator Write a function that returns the current date with the full textual representation of the month ie: 12 January 2008