Lecture (05) PHP 01. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2016, Web Programming
|
|
- Merryl Harper
- 5 years ago
- Views:
Transcription
1 Lecture (05) PHP 01 By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2016, Web Programming intro PHP is server side scripting system PHP stands for "PHP: Hypertext Preprocessor" Syntax based on Perl, Java, and C Very good for creating dynamic content Powerful, but somewhat risky! If you want to focus on one system for dynamic content, this is a good one to choose ٢
2 Php script Typically file ends in.php this is set by the web server configuration Separated in files with the <?php tag php commands can make up an entire file, or can be contained in html this is a choice. Program lines end in ";" or you get an error Server recognizes embedded script and executes Result is passed to browser, source isn't visible ٣ Variables Typed by context (but one can force type), so it's loose Begin with "$" Assigned by value $var1= "Bob"; $var2= $var1; ٤
3 $mr_coats = 10; $mrs_shoes = 25; We can then add up the coats and the shoes. You add up in PHP like this: $total_clothes = $mr_coats + $mrs_shoes; ٥ Putting Text into variables $coats1 = "Winter Coats"; notice the double quotation marks around our text. use single quotes instead of double Quotes $coats1 = 'Winter Coats'; ٦
4 Testing variables with PHP <html> <head> <title>outputting text</title> </head> <body> <?php print("it Worked!"); </body> </html> ٧ comments // TESTING VARIABLES /* TESTING VARIABLES Use this type of comment if you want to spill over to more than one line. Notice how the comment begin and end. /* ٨
5 Joining direct text and variable data The full stop (period or dot, to some) is used for this. <?php $first_number = 10; $direct_text = 'My variable contains the value of '; print ($direct_text. $first_number); > ٩ ١٠
6 Adding up in PHP To add up in PHP, the plus symbol (+) is used. <?php $first_number = 10; $second_number = 20; $sum_total = $first_number + $second_number; $direct_text = 'The two variables added together = '; print ($direct_text. $sum_total); > ١١ ١٢
7 Subtract, and Multiply <H2> subtraction</h2> <?php $first_number = 10; $second_number = 20; $third_number = 100; $sum_total = $third_number $second_number + $first_number; print ($sum_total); <H2> Multiplication</H2> <?php $first_number = 10; $second_number = 20; $third_number = 100; $sum_total = $third_number * $second_number * $first_number; print ($sum_total); ١٣ ١٤
8 PHP and division <?php $first_number = 10; $second_number = 20; $sum_total = $second_number / $first_number; print ($sum_total); > <?php $first_number = 10; $second_number = 20; $third_number = 100; $sum_total = $third_number $second_number / $first_number; print ($sum_total); > ١٥ ١٦
9 Floating point numbers <?php $first_number = 1.2; $second_number = 2.5; $sum_total = $second_number + $first_number; print ($sum_total); > ١٧ ١٨
10 Displaying images <?PHP print ("<IMG SRC =images/monkey.jpg height=50% width=50%>"); ١٩ ٢٠
11 If Statements <?PHP $cat_image = 1; $monkey_image = 0; if ($cat_image == 1) { print ("<IMG SRC =images/cat.jpg>"); { if ($monkey== 1) { print ("<IMG SRC =images/monkey.jpg>"); { > ٢١ ٢٢
12 if else Statements <?PHP $cat_image = 1; $monkey_image = 0; if ($cat_image == 1) { print ("<IMG SRC =images/cat.jpg>"); else { print ("<IMG SRC =images/monkey.jpg>"); ٢٣ ٢٤
13 If elseif else <?PHP $cat_image = 1; $monkey_image = 0; if ($cat_image == 1) { print ("<IMG SRC =images/cat.jpg>"); else if ($monkey_image == 1){ print ("<IMG SRC =images/monkey.jpg>"); else { print ("No value of 1 detected"); ٢٥ ٢٦
14 Comparison Operators ٢٧ <?PHP $correct_username = 'admin'; $what_visitor_typed = 'user'; if ($what_visitor_typed!= $correct_username) { print("you're not a valid user of this site!"); ٢٨
15 ٢٩ <?PHP $correct_username = admin ; $what_visitor_typed = user ; if ($what_visitor_typed!= $correct_username) { print("you're not a valid user of this site!"); else { print("welcome back, friend!"); ٣٠
16 ٣١ The Switch Statement <?php $picture = cat ; switch ($picture) { case cat : print( cat Picture'); print ("<IMG SRC =images/cat.jpg>"); break; case monkey': print( monkey Picture'); print ("<IMG SRC =images/monkey.jpg>"); break; { > ٣٢
17 ٣٣ Logical Operators ٣٤
18 <?php $username ='user'; $password ='password'; if ($username =='user' && $password =='password') { print("welcome back!"); else { print("invalid Login Detected"); ٣٥ ٣٦
19 Boolean Values <?php $true_value = true; $false_value = false; print ("true_value = ". $true_value); print("<br>"); print (" false_value = ". $false_value); ٣٧ ٣٨
20 <?php $true_value = 1; $false_value = 0; print ("true_value = ". $true_value); print("<br>"); print (" false_value = ". $false_value); ٣٩ ٤٠
21 Operator Precedence a List ٤١ For Loops <?PHP $counter = 0; $start = 1; for($start=1; $start < 11; $start++) { $counter = $counter + 1; print $counter. "<BR>"; { > ٤٢
22 ٤٣ <?PHP $times = 5; $start = 1; $end = 10; for($start; $start <= $end; $start++) { $answer = $start * $times; print $start. " multiplied by ". $times. " = ". $answer. "<BR>"; ٤٤
23 ٤٥ While Loops <?PHP $counter = 1; while ($counter < 11) { print (" counter = ". $counter. "<BR>"); $counter++; ٤٦
24 ٤٧ <?PHP $start = 1; $times = 2; $answer = 0; while ($start < 11) { $answer = $start * $times; print ($start. " times ". $times. " = ". $answer. "<BR>"); $start++; ٤٨
25 ٤٩ Do While loops <?PHP $start = 1; $times = 2; $answer = 0; do { $answer = $start * $times; print ($start. " times ". $times. " = ". $answer. "<BR>"); $start++; while ($start < 11); ٥٠
26 ٥١ The break statement <?PHP $Interrupts = true; $counter = 1; while ($counter < 11) { print(" counter = " + $counter + "<BR>"); if ($Interrupts == true) break; $counter++; ٥٢
27 ٥٣ Thanks,.. See you next week (ISA), ٥٤
Lecture (04) Boolean Algebra and Logic Gates
Lecture (4) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 26, Logic Design Boolean algebra properties basic assumptions and properties: Closure law A set S is
More informationLecture (04) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee
Lecture (4) Boolean Algebra and Logic Gates By: Dr. Ahmed ElShafee Boolean algebra properties basic assumptions and properties: Closure law A set S is closed with respect to a binary operator, for every
More informationCSC Web Programming. Introduction to JavaScript
CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its
More informationWeb Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel
Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel Introduction: PHP (Hypertext Preprocessor) was invented by Rasmus Lerdorf in 1994. First it was known as Personal Home Page. Later
More informationServer side basics CS380
1 Server side basics URLs and web servers 2 http://server/path/file Usually when you type a URL in your browser: Your computer looks up the server's IP address using DNS Your browser connects to that IP
More informationLecture (06) Design and Configuration LAN Practicing, working on CISCO equipment. By: Dr. Ahmed ElShafee
Lecture (06) Design and Configuration LAN Practicing, working on CISCO equipment By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II Part I ٢ ٣ SW01 steps firstly connect
More informationB. V. Patel Institute of BMC & IT 2014
Unit 1: Introduction Short Questions: 1. What are the rules for writing PHP code block? 2. Explain comments in your program. What is the purpose of comments in your program. 3. How to declare and use constants
More informationURLs and web servers. Server side basics. URLs and web servers (cont.) URLs and web servers (cont.) Usually when you type a URL in your browser:
URLs and web servers 2 1 Server side basics http://server/path/file Usually when you type a URL in your browser: Your computer looks up the server's IP address using DNS Your browser connects to that IP
More informationPHP Personal Home Page PHP: Hypertext Preprocessor (Lecture 35-37)
PHP Personal Home Page PHP: Hypertext Preprocessor (Lecture 35-37) A Server-side Scripting Programming Language An Introduction What is PHP? PHP stands for PHP: Hypertext Preprocessor. It is a server-side
More informationLecture 12. PHP. cp476 PHP
Lecture 12. PHP 1. Origins of PHP 2. Overview of PHP 3. General Syntactic Characteristics 4. Primitives, Operations, and Expressions 5. Control Statements 6. Arrays 7. User-Defined Functions 8. Objects
More informationPHP and MySQL for Dynamic Web Sites. Intro Ed Crowley
PHP and MySQL for Dynamic Web Sites Intro Ed Crowley Class Preparation If you haven t already, download the sample scripts from: http://www.larryullman.com/books/phpand-mysql-for-dynamic-web-sitesvisual-quickpro-guide-4thedition/#downloads
More informationPHP. Interactive Web Systems
PHP Interactive Web Systems PHP PHP is an open-source server side scripting language. PHP stands for PHP: Hypertext Preprocessor One of the most popular server side languages Second most popular on GitHub
More informationBasic PHP Lecture 17
Basic PHP Lecture 17 Robb T. Koether Hampden-Sydney College Fri, Feb 24, 2012 Robb T. Koether (Hampden-Sydney College) Basic PHPLecture 17 Fri, Feb 24, 2012 1 / 30 1 PHP 2 Basic PHP 3 The Extended echo
More informationThe PHP language. Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web
Web programming The PHP language Our objective Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web Access data inserted by users into HTML forms Interact
More informationIndex. alt, 38, 57 class, 86, 88, 101, 107 href, 24, 51, 57 id, 86 88, 98 overview, 37. src, 37, 57. backend, WordPress, 146, 148
Index Numbers & Symbols (angle brackets), in HTML, 47 : (colon), in CSS, 96 {} (curly brackets), in CSS, 75, 96. (dot), in CSS, 89, 102 # (hash mark), in CSS, 87 88, 99 % (percent) font size, in CSS,
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Review Ch. 5: JavaScript An Object-Based Language Ch. 6: Programming the Browser Review Data Types & Variables Data Types Numeric String Boolean Variables Declaring
More informationLecture (03) Arrays. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering
Lecture (03) Arrays By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Spring 2018, HUM107 Introduction to Engineering Characters and Strings Strings are defined by delimiting text with single quotation
More informationWeb Engineering (Lecture 08) WAMP
Web Engineering (Lecture 08) WAMP By: Mr. Sadiq Shah Lecturer (CS) Class BS(IT)-6 th semester WAMP WAMP is all-in-one Apache/MySQL/PHP package WAMP stands for: i) Windows ii) iii) iv) Apache MySql PHP
More informationBasic PHP. Lecture 19. Robb T. Koether. Hampden-Sydney College. Mon, Feb 26, 2108
Basic PHP Lecture 19 Robb T. Koether Hampden-Sydney College Mon, Feb 26, 2108 Robb T. Koether (Hampden-Sydney College) Basic PHP Mon, Feb 26, 2108 1 / 27 1 PHP 2 The echo Statement 3 Variables 4 Operators
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Review Data Types & Variables Decisions, Loops, and Functions Review gunkelweb.com/coms469 Review Basic Terminology Computer Languages Interpreted vs. Compiled Client
More informationCOMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017)
COMS W3101: SCRIPTING LANGUAGES: JAVASCRIPT (FALL 2017) RAMANA ISUKAPALLI RAMANA@CS.COLUMBIA.EDU 1 LECTURE-1 Course overview See http://www.cs.columbia.edu/~ramana Overview of HTML Formatting, headings,
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Project One PHP Preview Project One Grading Methodology Return Project One & Evaluation Sheet Project One Evaluation Methodology Consider each project in and of itself
More informationExam Review Lectures. Tim Capes. November 29, 2011
Exam Review Lectures Tim Capes November 29, 2011 Exam Breakdown Eight total questions: Exam Breakdown Eight total questions: Number systems questions (10) Exam Breakdown Eight total questions: Number systems
More informationcis20.2-spring2010-sklar-lecii.4 1
cis20.2 design and implementation of software applications 2 spring 2010 lecture # II.4 today s topics: introduction to php on-line documentation http://www.php.net (php home page) http://www.php.net/manual/en/
More informationHTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية
HTML Mohammed Alhessi M.Sc. Geomatics Engineering Wednesday, February 18, 2015 Eng. Mohammed Alhessi 1 W3Schools Main Reference: http://www.w3schools.com/ 2 What is HTML? HTML is a markup language for
More informationCGS 3066: Spring 2015 JavaScript Reference
CGS 3066: Spring 2015 JavaScript Reference Can also be used as a study guide. Only covers topics discussed in class. 1 Introduction JavaScript is a scripting language produced by Netscape for use within
More informationDC71 INTERNET APPLICATIONS JUNE 2013
Q 2 (a) With an example show text formatting in HTML. The bold text tag is : This will be in bold. If you want italics, use the tag, as follows: This will be in italics. Finally, for
More informationCERTIFICATE IN WEB PROGRAMMING
COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING
More informationServer side basics CSC 210
1 Server side basics Be careful 2 Do not type any command starting with sudo into a terminal attached to a university computer. You have complete control over you AWS server, just as you have complete
More informationLecture (03) VLANs 4.0 PC2 PC1 PC4 PC3. By: Dr. Ahmed ElShafee. Topology. Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II IP
Lecture (03) VLANs By: Dr. Ahmed ElShafee 4.0 ١ Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II ٢ Topology Gateway Gateway PC1 DNS Port status Band width Duplex On PC2 DNS Port status Band
More informationHTML HTML/XHTML HTML / XHTML HTML HTML: XHTML: (extensible HTML) Loose syntax Few syntactic rules: not enforced by HTML processors.
HTML HTML/XHTML HyperText Mark-up Language Basic language for WWW documents Format a web page s look, position graphics and multimedia elements Describe document structure and formatting Platform independent:
More informationIntroduction. Following are the types of operators: Unary requires a single operand Binary requires two operands Ternary requires three operands
Introduction Operators are the symbols which operates on value or a variable. It tells the compiler to perform certain mathematical or logical manipulations. Can be of following categories: Unary requires
More informationJavaScript CS 4640 Programming Languages for Web Applications
JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation
More informationVirtueMart Product Scroller Module
VirtueMart Product Scroller Module Introduction: VirtueMart provides a module (mod_productscroller_1.1.5.j15.zip) in the complete installation package of VirtueMart. mod_productscroller_1.1.5.j15.zip:
More informationSelected Sections of Applied Informatics
Selected Sections of Applied Informatics M.Sc. Marcin Koniak koniakm@wt.pw.edu.pl http://www2.wt.pw.edu.pl/~a.czerepicki Based on lecture: Dr inż. Andrzej Czerepicki a.czerepicki@wt.pw.edu.pl 2018 HTML
More informationJavaScript: Introduction, Types
JavaScript: Introduction, Types Computer Science and Engineering College of Engineering The Ohio State University Lecture 19 History Developed by Netscape "LiveScript", then renamed "JavaScript" Nothing
More informationPython Games. Session 1 By Declan Fox
Python Games Session 1 By Declan Fox Rules General Information Wi-Fi Name: CoderDojo Password: coderdojowireless Website: http://cdathenry.wordpress.com/ Plans for this year Command line interface at first
More informationWhat is PHP? [1] Figure 1 [1]
PHP What is PHP? [1] PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is free to download and use Figure
More informationHTML OBJECTIVES WHAT IS HTML? BY FAITH BRENNER AN INTRODUCTION
HTML AN INTRODUCTION BY FAITH BRENNER 1 OBJECTIVES BY THE END OF THIS LESSON YOU WILL: UNDERSTAND HTML BASICS AND WHAT YOU CAN DO WITH IT BE ABLE TO USE BASIC HTML TAGS BE ABLE TO USE SOME BASIC FORMATTING
More informationChapter 3 - Simple JavaScript - Programming Basics. Lesson 1 - JavaScript: What is it and what does it look like?
Chapter 3 - Simple JavaScript - Programming Basics Lesson 1 - JavaScript: What is it and what does it look like? PP presentation JavaScript.ppt. Lab 3.1. Lesson 2 - JavaScript Comments, document.write(),
More informationCSCB20 Week 8. Introduction to Database and Web Application Programming. Anna Bretscher* Winter 2017
CSCB20 Week 8 Introduction to Database and Web Application Programming Anna Bretscher* Winter 2017 *thanks to Alan Rosselet for providing the slides these are adapted from. Web Programming We have seen
More informationStudent, Perfect Final Exam May 25, 2006 ID: Exam No CS-081/Vickery Page 1 of 6
Student, Perfect Final Exam May 25, 2006 ID: 9999. Exam No. 3193 CS-081/Vickery Page 1 of 6 NOTE: It is my policy to give a failing grade in the course to any student who either gives or receives aid on
More informationLecture (08) DHCP server L3 switch By: Dr. Ahmed ElShafee Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II
Lecture (08) DHCP server L3 switch By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II Topology 01 ٢ Topology 01 4 DHCP servers ٣ G Floor F0Dest1 F0Edge1 F0AP1 R0 F0AP3
More informationBEFORE CLASS. If you haven t already installed the Firebug extension for Firefox, download it now from
BEFORE CLASS If you haven t already installed the Firebug extension for Firefox, download it now from http://getfirebug.com. If you don t already have the Firebug extension for Firefox, Safari, or Google
More informationLecture (03) VLANs. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II 4.0
Lecture (03) VLANs By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Fall 2015, Practical App. Networks II 4.0 ٢ Topology ٣ item Configuration item Configuration PC1 PC2 IP 10.0.2.1 IP 10.0.2.2 item Configuration
More informationProgramming for Engineers Introduction to C
Programming for Engineers Introduction to C ICEN 200 Spring 2018 Prof. Dola Saha 1 Simple Program 2 Comments // Fig. 2.1: fig02_01.c // A first program in C begin with //, indicating that these two lines
More informationHTML. Based mostly on
HTML Based mostly on www.w3schools.com What is HTML? The standard markup language for creating Web pages HTML stands for Hyper Text Markup Language HTML describes the structure of Web pages using markup
More informationCOMP284 Scripting Languages Lecture 14: JavaScript (Part 1) Handouts
COMP284 Scripting Languages Lecture 14: JavaScript (Part 1) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool
More informationPHP: The Basics CISC 282. October 18, Approach Thus Far
PHP: The Basics CISC 282 October 18, 2017 Approach Thus Far User requests a webpage (.html) Server finds the file(s) and transmits the information Browser receives the information and displays it HTML,
More informationM275 - Web Development using PHP and MySQL
Arab Open University Faculty of computer Studies M275 - Web Development using PHP and MySQL Chapter 6 Flow Control Functions in PHP Summary This is a supporting material to chapter 6. This summary will
More information3 The Building Blocks: Data Types, Literals, and Variables
chapter 3 The Building Blocks: Data Types, Literals, and Variables 3.1 Data Types A program can do many things, including calculations, sorting names, preparing phone lists, displaying images, validating
More informationJackson State University Department of Computer Science CSC / Advanced Information Security Spring 2013 Lab Project # 3
Jackson State University Department of Computer Science CSC 439-01/539-02 Advanced Information Security Spring 2013 Lab Project # 3 Use of CAPTCHA (Image Identification Strategy) to Prevent XSRF Attacks
More informationJavaScript CS 4640 Programming Languages for Web Applications
JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation
More informationA Balanced Introduction to Computer Science, 3/E
A Balanced Introduction to Computer Science, 3/E David Reed, Creighton University 2011 Pearson Prentice Hall ISBN 978-0-13-216675-1 Chapter 4 JavaScript and Dynamic Web Pages 1 Static vs. Dynamic Pages
More informationCOMP284 Scripting Languages Lecture 9: PHP (Part 1) Handouts
COMP284 Scripting Languages Lecture 9: PHP (Part 1) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool Contents
More informationIntroduction to Visual Basic and Visual C++ Arithmetic Expression. Arithmetic Expression. Using Arithmetic Expression. Lesson 4.
Introduction to Visual Basic and Visual C++ Arithmetic Expression Lesson 4 Calculation I154-1-A A @ Peter Lo 2010 1 I154-1-A A @ Peter Lo 2010 2 Arithmetic Expression Using Arithmetic Expression Calculations
More informationPHP 1. Introduction Temasek Polytechnic
PHP 1 Introduction Temasek Polytechnic Background Open Source Apache License Free to redistribute with/without source code http://www.apache.org/license.txt Backed by Zend Corporation http://www.zend.com
More information(Refer Slide Time: 01:41) (Refer Slide Time: 01:42)
Internet Technology Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture No #14 HTML -Part II We continue with our discussion on html.
More informationLecture (04) Using VLANs to segment LANs. Dr. Ahmed M. ElShafee. Dr. Ahmed ElShafee, ACU Spring 2014, Practical Applications in Computer Networks 4.
Lecture (04) Using VLANs to segment LANs Dr. Ahmed M. ElShafee ١ 4.0 ٢ Topology ٣ item Configuration item Configuration Gateway Gateway PC1 DNS Port status Band width Duplex On PC2 DNS Port status Band
More informationOrdinary Differential Equation Solver Language (ODESL) Reference Manual
Ordinary Differential Equation Solver Language (ODESL) Reference Manual Rui Chen 11/03/2010 1. Introduction ODESL is a computer language specifically designed to solve ordinary differential equations (ODE
More informationLESSON 3. In this lesson you will learn about the conditional and looping constructs that allow you to control the flow of a PHP script.
LESSON 3 Flow Control In this lesson you will learn about the conditional and looping constructs that allow you to control the flow of a PHP script. In this chapter we ll look at two types of flow control:
More informationENGR 101 Engineering Design Workshop
ENGR 101 Engineering Design Workshop Lecture 2: Variables, Statements/Expressions, if-else Edgardo Molina City College of New York Literals, Variables, Data Types, Statements and Expressions Python as
More informationVariable and Data Type I
The Islamic University of Gaza Faculty of Engineering Dept. of Computer Engineering Intro. To Computers (LNGG 1003) Lab 2 Variable and Data Type I Eng. Ibraheem Lubbad February 18, 2017 Variable is reserved
More informationINTERNET PROGRAMMING. Software Engineering Branch / 4 th Class Computer Engineering Department University of Technology
INTERNET PROGRAMMING Software Engineering Branch / 4 th Class Computer Engineering Department University of Technology OUTLINES PHP Basic 2 ARCHITECTURE OF INTERNET database mysql server-side programming
More informationChapter 3 - Introduction to Java Applets
1 Chapter 3 - Introduction to Java Applets 2 Introduction Applet Program that runs in appletviewer (test utility for applets) Web browser (IE, Communicator) Executes when HTML (Hypertext Markup Language)
More informationJavaScript Functions, Objects and Array
JavaScript Functions, Objects and Array Defining a Function A definition starts with the word function. A name follows that must start with a letter or underscore, followed by any number of letters, digits,
More informationControlled Assessment Task. Question 1 - Describe how this HTML code produces the form displayed in the browser.
Controlled Assessment Task Question 1 - Describe how this HTML code produces the form displayed in the browser. The form s code is displayed in the tags; this creates the object which is the visible
More informationINFS 2150 Introduction to Web Development and e-commerce Technology. Programming with JavaScript
INFS 2150 Introduction to Web Development and e-commerce Technology Programming with JavaScript 1 Objectives JavaScript client-side programming Example of a JavaScript program The element
More informationObjectives. Introduction to JavaScript. Introduction to JavaScript INFS Peter Y. Wu, RMU 1
Objectives INFS 2150 Introduction to Web Development and e-commerce Technology Programming with JavaScript JavaScript client-side programming Example of a JavaScript program The element
More informationJavaScript code is inserted between tags, just like normal HTML tags:
Introduction to JavaScript In this lesson we will provide a brief introduction to JavaScript. We won t go into a ton of detail. There are a number of good JavaScript tutorials on the web. What is JavaScript?
More informationLecture (00) Preface. Dr. Ahmed M. ElShafee. Dr. Ahmed ElShafee, ACU Spring 2014, Network I
Lecture (00) Preface Dr. Ahmed M. ElShafee 1 Dr. Ahmed ElShafee, ACU Spring 2014, Network I Agenda Network & data communication. Perspectives on Networking Eight simple steps to develop a computer network
More informationWorking with JavaScript
Working with JavaScript Creating a Programmable Web Page for North Pole Novelties 1 Objectives Introducing JavaScript Inserting JavaScript into a Web Page File Writing Output to the Web Page 2 Objectives
More informationThe first sample. What is JavaScript?
Java Script Introduction JavaScript is the most popular scripting language on the internet, and works in all major browsers, such as Internet Explorer, Firefox, Chrome, Opera, and Safari. In this lecture
More informationCSCE 110 Programming I Basics of Python: Variables, Expressions, Input/Output
CSCE 110 Programming I Basics of Python: Variables, Expressions, Input/Output Dr. Tiffani L. Williams Department of Computer Science and Engineering Texas A&M University Spring 2011 Python Python was developed
More informationIntro to Programming. Unit 7. What is Programming? What is Programming? Intro to Programming
Intro to Programming Unit 7 Intro to Programming 1 What is Programming? 1. Programming Languages 2. Markup vs. Programming 1. Introduction 2. Print Statement 3. Strings 4. Types and Values 5. Math Externals
More informationUnit 3. Operators. School of Science and Technology INTRODUCTION
INTRODUCTION Operators Unit 3 In the previous units (unit 1 and 2) you have learned about the basics of computer programming, different data types, constants, keywords and basic structure of a C program.
More informationIntroduction to JavaScript Programming Test Bank Chapter 1 with XML and PHP
Test Bank for Introduction to JavaScript Programming 1 st Edition by rake Link download full: http://testbankcollection.com/download/test-bank-for-introduction-to-javascriptprogramming-with-xml-and-php-1st-edition-by-drake
More informationCopyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 11 Introduction to PHP
Chapter 11 Introduction to PHP 11.1 Origin and Uses of PHP Developed by Rasmus Lerdorf in 1994 PHP is a server-side scripting language, embedded in XHTML pages PHP has good support for form processing
More informationquiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a , 2-sided cheat she
quiz 1 details wed nov 17, 1pm see handout for locations covers weeks 0 through 10, emphasis on 7 onward closed book bring a 8.5 11, 2-sided cheat sheet 75 minutes 15% of final grade resources old quizzes
More informationIterative Statements. Iterative Statements: Examples. Counter-Controlled Loops. ICOM 4036 Programming Languages Statement-Level Control Structure
ICOM 4036 Programming Languages Statement-Level Control Structure Selection Statement Iterative Statements Unconditional Branching Guarded Commands This lecture covers review questions 8-16 This lecture
More informationCreating HTML files using Notepad
Reference Materials 3.1 Creating HTML files using Notepad Inside notepad, select the file menu, and then Save As. This will allow you to set the file name, as well as the type of file. Next, select the
More informationCS313D: ADVANCED PROGRAMMING LANGUAGE
CS313D: ADVANCED PROGRAMMING LANGUAGE Computer Science department Lecture 2 : C# Language Basics Lecture Contents 2 The C# language First program Variables and constants Input/output Expressions and casting
More informationPHP Development - Introduction
PHP Development - Introduction Php Hypertext Processor PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many
More informationMobile Site Development
Mobile Site Development HTML Basics What is HTML? Editors Elements Block Elements Attributes Make a new line using HTML Headers & Paragraphs Creating hyperlinks Using images Text Formatting Inline styling
More informationProject 2: After Image
Project 2: After Image FIT100 Winter 2007 Have you ever stared at an image and noticed that when it disappeared, a shadow of the image was still briefly visible. This is called an after image, and we experiment
More informationLesson: 6 Database and DBMS an Introduction. Lesson: 7 HTML Advance and features. Types of Questions
REVISION TEST 2 [50 MARKS] Lesson: 6 Database and DBMS an Introduction Lesson: 7 HTML Advance and features Types of Questions 1. Fill in the blanks [5 x 5 = 5] 2. True or False [5 x 1 = 5] 3. Choose the
More informationAgenda. My Introduction. CIS 154 Javascript Programming
CIS 154 Javascript Programming Brad Rippe brippe@fullcoll.edu Agenda Brief Javascript Introduction Course Requirements Brief HTML review On to JavaScript Assignment 1 Due Next week Helpful Tools Questions/Comments
More information7 Control Structures, Logical Statements
7 Control Structures, Logical Statements 7.1 Logical Statements 1. Logical (true or false) statements comparing scalars or matrices can be evaluated in MATLAB. Two matrices of the same size may be compared,
More information(Refer Slide Time: 01:40)
Internet Technology Prof. Indranil Sengupta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur Lecture No #25 Javascript Part I Today will be talking about a language
More informationCHAPTER 2 MARKUP LANGUAGES: XHTML 1.0
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document
More informationCisco IOS Shell. Finding Feature Information. Prerequisites for Cisco IOS.sh. Last Updated: December 14, 2012
Cisco IOS Shell Last Updated: December 14, 2012 The Cisco IOS Shell (IOS.sh) feature provides shell scripting capability to the Cisco IOS command-lineinterface (CLI) environment. Cisco IOS.sh enhances
More informationIT430- E-COMMERCE Solved MCQ(S) From Midterm Papers (1 TO 22 Lectures) BY Arslan Arshad
IT430- E-COMMERCE Solved MCQ(S) From Midterm Papers (1 TO 22 Lectures) BY Arslan Arshad OCT 21,2016 BS110401050 BS110401050@vu.edu.pk Arslan.arshad01@gmail.com AKMP01 IT430 - E-COMMERCE Midterm Papers
More informationAttributes & Images 1 Create a new webpage
Attributes & Images 1 Create a new webpage Open your test page. Use the Save as instructions from the last activity to save your test page as 4Attributes.html and make the following changes:
More informationA340 Laboratory Session #5
A340 Laboratory Session #5 LAB GOALS Creating multiplication table using JavaScript Creating Random numbers using the Math object Using your text editor (Notepad++ / TextWrangler) create a web page similar
More informationWeek 13 Thursday (with Page 5 corrections)
Week 13 Thursday (with Page 5 corrections) Quizzes: HTML/CSS and JS available and due before 10 pm next Tuesday, May 1 st. You may do your own web research to answer, but do not ask classmates, friends,
More informationLecture 2 Unix and PHP. INLS 523 Web Databases Spring 2013 Rob Capra
Lecture 2 Unix and PHP INLS 523 Web Databases Spring 2013 Rob Capra Server-Side Scripting Server-side scripting Scripts run on the server Scripts return HTML to the client Apache Open-source Perl and PHP
More informationPicasa 1 https://www.google.com/a/ww-p.org/ Enter your WW-P network ID and Password -> Sign In You will get the screen below. Please note that because K-12 education accounts are unable to utilize the
More informationLecture (03) Binary Codes Registers and Logic Gates
Lecture (03) Binary Codes Registers and Logic Gates By: Dr. Ahmed ElShafee Binary Codes Digital systems use signals that have two distinct values and circuit elements that have two stable states. binary
More informationLaboratory (03) DHCP service
Laboratory (03) DHCP service By: Dr. Ahmed ElShafee ١ Dr. Ahmed ElShafee, ACU : Fall 2015, Networks II Laboratory Agenda Introduction to DHCP Windows Server 2008 DHCP Install Environment WINS service Configuring
More information