University of Sunderland Lecture 1 Internet Software Architectures Lecture 1: Introduction.

Slides:



Advertisements
Similar presentations
1 COMM 1213 H1 COMP 4923 X1 JavaScript 1 (Readings: Ch. 10, 11 Knuckles)
Advertisements

Introduction to JavaScript
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
IST 221 Internet Concepts and Applications Introduction to PHP.
PHP Intro/Overview Squirrel Book pages Server-side Scripting Everything you need to know in one slide 1.Web server (with PHP “plug-in”) gets a.
Multiple Tiers in Action
Guide To UNIX Using Linux Third Edition
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.
Server & Client  Client: Your computer  Server: Powerful & Expensive computer. Requires network access.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Introduction to scripting
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”
PHP: Hypertext Processor Fred Durao
August Chapter 1 - Essential PHP spring into PHP 5 by Steven Holzner Slides were developed by Jack Davis College of Information Science and Technology.
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
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.
1 Introduction to PHP. 2 What is this “PHP” thing? Official description: “PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open Source.
Copyright © Curt Hill PhP History and Introduction.
ITD 3194 Web Application Development Chapter 4: Web Programming Language.
PHP H ypertext P re-processor. Unit 6 - PHP - Hello World! - Data types - Control structures - Operators.
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"
AIT 616 Fall 2002 PHP. AIT 616 Fall 2002 PHP  Special scripting language used to dynamically generate web documents  Open source – Free!!!  Performs.
CS346 - Javascript 1, 21 Module 1 Introduction to JavaScript CS346.
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:
Nael Alian Introduction to PHP
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
Server & Client  Client: Your computer  Server: Powerful & Expensive computer. Requires network access.
Intro to PHP – Page 1 of 43CSCI 2910 – Client/Server-Side Programming CSCI 2910 Client/Server-Side Programming Topic: Intro to PHP Reading: Chapters 1.
TUTORIAL 10: PROGRAMMING WITH JAVASCRIPT Session 2: What is JavaScript?
November 2003Bent Thomsen - FIT 6-11 IT – som værktøj Bent Thomsen Institut for Datalogi Aalborg Universitet.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
DHTML AND JAVASCRIPT Genetic Computer School LESSON 5 INTRODUCTION JAVASCRIPT G H E F.
Variables and ConstantstMyn1 Variables and Constants PHP stands for: ”PHP: Hypertext Preprocessor”, and it is a server-side programming language. Special.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Introduction to PHP Advanced Database System Lab no.1.
Introduction to Web Programming. Introduction to PHP What is PHP? What is a PHP File? What is MySQL? Why PHP? Where to Start?
Strings, output, quotes and comments
PHP - 1h. How it works Client requests document Server loads document in memory Server processes document with relevant module (PHP) Server sends XHTML.
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.
Overview of Form and Javascript fundamentals. Brief matching exercise 1. This is the software that allows a user to access and view HTML documents 2.
©John Samuel 2008 Introduction to PHP. ©John Samuel 2008 Objectives At the end of this class the student will be able to; Create and run a simple php.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
PHP Workshop ‹#› أطلق إبداعك 2 أطلق إبداعك 2 مدرس معتمد من مركز زووم PHP: The Basics.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
CST336, Dr. Krzysztof Pietroszek Week 2: PHP. 1.Introduction to PHP 2.Embed PHP code into an HTML web page 3.Generate (output HTML) web page using PHP.
Introduction to JavaScript CSc 2320 Fall 2014 Disclaimer: All words, pictures are adopted from “Simple JavaScript”by Kevin Yank and Cameron Adams and also.
 A PHP script can be placed anywhere in the document.  A PHP script starts with  The default file extension for PHP files is ".php".  A PHP file normally.
Chapter 1 Introduction to PHP Part 1. Textbook’s Code DOWNLOADS PHP and MySQL for Dynamic Web Sites Complete Set of Scripts.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
©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 using MySQL Database for Web Development (part II)
Introduction to PHP Part 1
PHP (PHP: Hypertext Preprocessor)
Server-Side Application and Data Management IT IS 3105 (Spring 2010)
PHP Introduction.
PHP Intro/Overview Bird Book pages 1-11,
PHP.
Tutorial 10: Programming with javascript
JavaScript: Introduction to Scripting
PHP an introduction.
Presentation transcript:

University of Sunderland Lecture 1 Internet Software Architectures Lecture 1: Introduction

University of Sunderland Lecture 1 Objectives By the end of this lecture the student should: Understand the structure and content of the module Understand the advantages and disadvantages of server-side scripting Understand the basic structure of PHP Understand that it is the programmer’s responsibility to ensure correct HTML and correct use of variables

University of Sunderland Lecture 1 MIC312 - Introduction 20 credits module PHP, Accessibility, Usability Networks Software agents XML, XHTML Assessed by: –1 assignment, one exam

University of Sunderland Lecture 1 MIC312 – Recommended Books Teach Yourself PHP in 24 Hours Matt Zandstra Essential PHP fast Simon Stobart

University of Sunderland Lecture 1 PHP Personal Home Page Server-side scripting Server interprets and sends HTML document to browser Available at: Server from: –(doesn’t need PHP)

University of Sunderland Lecture 1 Server-Side Scripting Advantages –Browser independent –Run programmes not supported by browser –Access data not on browser –Security

University of Sunderland Lecture 1 Server-Side Scripting Disadvantages –Requires access to server to process input –Validation more difficult than with, say, JavaScript

University of Sunderland Lecture 1 PHP Embedded within HTML tags Similar to C, Perl

University of Sunderland Lecture 1 Example Code <?php echo(“Hello World! ”); ?>

University of Sunderland Lecture 1 Example Source Hello World!

University of Sunderland Lecture 1 Example Output Hello World!

University of Sunderland Lecture 1 Programmer’s Responsibility Programmer’s responsibility to ensure html is correct echo(“Hello World ”); will produce? Hello World

University of Sunderland Lecture 1 PHP Comments: // or # for single lines /* … */ spans multiple lines

University of Sunderland Lecture 1 Variables PHP supports: –Integers –Floating point (double) –Strings –Boolean –Arrays –Objects Start with $ followed by _ or letter Is not strongly typed

University of Sunderland Lecture 1 Variables May be assigned by: –Value $var1=$var2; $var1=123; –Reference: $var1=&$var2; Output with echo statement: echo(“Value is “. $var1. ”units”); ‘.’ Concatenates a string

University of Sunderland Lecture 1 Variables Print may also be used gettype() checks type settype(var,type) changes type $var1=( type ) $var2 also changes type But: $var1=2; $var2=“hello”; $var2=$var2. $var1; is OK, as is: $var2=$var2*$var1;

University of Sunderland Lecture 1 Variables <?php $var1=123; echo("var1 was “. $var1. " "); $var1=12.3; echo("var1 is now “. $var1. " "); $var1="Hello Fred"; echo("and now it is “. $var1." "); ?> $var1=$var1+2; is also allowed here so beware!

University of Sunderland Lecture 1 Summary PHP is server-side scripting Script is interpreted by the server, which sends HTML to the browser Programmer’s responsibility to ensure HTML is correct Normal range of types allowed But PHP is not strongly typed Programmer’s responsibility to use variables correctly