Web Systems Development (CSC-215)

Slides:



Advertisements
Similar presentations
1 Chapter 4 The while loop and boolean operators Samuel Marateck ©2010.
Advertisements

Making Choices in C if/else statement logical operators break and continue statements switch statement the conditional operator.
CHAPTER 5: Repetition Control Structure. Objectives  To develop algorithms that use DOWHILE and REPEAT.. UNTIL structures  Introduce a pseudocode for.
8-May-15 Additional control structures. 2 The if-else statement The if-else statement chooses which of two statements to execute The if-else statement.
Creating PHP Pages Chapter 7 PHP Decisions Making.
JavaScript Part for Repetition Statement for statement Cpecifies each of the items needed for counter-controlled repetition with a control variable.
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.
Javascript Client-side scripting. Up to now  We've seen a little about how to control  content with HTML  presentation with CSS  Javascript is a language.
Logical Operators Java provides two binary logical operators (&& and ||) that are used to combine boolean expressions. Java also provides one unary (!)
The switch StatementtMyn1 The switch Statement Sometimes there can be a multiple-choice situation, in which you need to execute a particular set of statements.
CIS3931 – Intro to JAVA Lecture Note Set 3 19-May-05.
Java Building Elements Lecture 2 Instructors: Fu-Chiung Cheng ( 鄭福炯 ) Associate Professor Computer Science & Engineering Tatung University
Chapter 10 Creating Pop-Up Windows, Adding Scrolling Messages, and Validating Forms HTML5 & CSS 7 th Edition.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Includes and Dates.
Chap 3 – PHP Quick Start COMP RL Professor Mattos.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Lecture 8: Choosing the Correct Loop. do … while Repetition Statement Similar to the while statement Condition for repetition only tested after the body.
CMPS 211 JavaScript Topic 1 JavaScript Syntax. 2Outline Goals and Objectives Goals and Objectives Chapter Headlines Chapter Headlines Introduction Introduction.
University of Palestine software engineering department Introduction to data structures Control Statements: Part 1 instructor: Tasneem Darwish.
Web Database Programming Week 3 PHP (2). Functions Group related statements together to serve “a” specific purpose –Avoid duplicated code –Easy maintenance.
Chapter 2 Functions and Control Structures PHP Programming with MySQL 2 nd Edition.
Chapter 3 Functions, Events, and Control Structures JavaScript, Third Edition.
1-Dec-15 Additional control structures. 2 The if-else statement The if-else statement chooses which of two statements to execute The if-else statement.
JavaScript, Fourth Edition
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
Chapter 15 JavaScript: Part III The Web Warrior Guide to Web Design Technologies.
Chapter 5 Classes and Methods II Lecture Slides to Accompany An Introduction to Computer Science Using Java (2nd Edition) by S.N. Kamin, D. Mickunas, E.
CHAPTER 6 Introduction to PHP5 Part I อ. ยืนยง กันทะเนตร คณะเทคโนโลยีสารสนเทศและการสื่อสาร มหาวิทยาลัยพะเยา 1.
Chapter 1 Introduction to PHP Part 1. Textbook’s Code DOWNLOADS PHP and MySQL for Dynamic Web Sites Complete Set of Scripts.
UMass Lowell Computer Science Java and Distributed Computing Prof. Karen Daniels Fall, 2000 Lecture 8 Java Fundamentals Control Structures Fri.
Chapter 1 Java Programming Review. Introduction Java is platform-independent, meaning that you can write a program once and run it anywhere. Java programs.
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.
XP Tutorial 3 New Perspectives on JavaScript, Comprehensive1 Working with Arrays, Loops, and Conditional Statements Creating a Monthly Calendar.
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,
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
PHP using MySQL Database for Web Development (part II)
Web Database Programming Using PHP
Tutorial 12 Working with Arrays, Loops, and Conditional Statements
Introduction to PHP Part 1
Web Database Programming Using PHP
Introduction to Web programming
PHP Introduction.
Conditionals & Boolean Expressions
Expressions and Control Flow in JavaScript
JavaScript: Control Statements I
Chapter 4: Making Decisions.
Chapter 19 JavaScript.
Web Systems & Technologies
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Web Systems Development (CSC-215)
Functions BIS1523 – Lecture 17.
Web Systems Development (CSC-215)
Chapter 8 JavaScript: Control Statements, Part 2
PHP Intro/Overview Bird Book pages 1-11,
6 Chapter Functions.
Web Systems Development (CSC-215)
PHP.
Objectives In this chapter, you will:
JavaScript CS 4640 Programming Languages for Web Applications
ხელმძღვანელი: დიმიტრი ქარაული
HTML Forms What are clients? What are servers?
Controlling Program Flow
SEEM 4540 Tutorial 4 Basic PHP based on w3Schools
Chapter 8 JavaScript: Control Statements, Part 2
JavaScript CS 4640 Programming Languages for Web Applications
Presentation transcript:

Web Systems Development (CSC-215) Lecture 3: Introducing PHP Wednesday 7th February 2018

Functions User defined Inbuilt PHP function An integer representation of time using Unix timestamp convention.

PHP Manual Reference

Using the function

Get date from 17 days ago

Variable Scope Local variables, e.g., arguments to a function

Out of scope

Re-arranged

Or passed as argument Longdate modified

Global Variables Avoid unless absolutely necessary because its bad programming practice.

Static Variables

Static Variables Only predetermined values allowed

Expressions

Booleans TRUE & FALSE

Literals and Variables

Expressions and Statements

Operators

Precedence

Relational Operators

Identity Operator Only 1 is printed

Not identical Only 2 is printed

Conditionals

Conditionals

Conditionals

Switch Default and break, as in C++

Loops

Loops

Loops

Class Activity Print the current date and time as per the given formatting, and then print 9 future date and time values in 12 hour increments. Maintain HTML formatting as well (h1 and p tags used). Set the correct time zone for WampServer if needed.

Lecture content adapted from chapters 2 & 3 of Learning PHP, MySQL, JavaScript, CSS & HTML5, 3rd Edition, by Robin Nixon.