1 CS 131 Wrap Up Fall 2008 What Good is Programming?

Slides:



Advertisements
Similar presentations
ASP.NET Intro An introduction to the languages and communication of an ASP.NET system.
Advertisements

Adding Dynamic Content to your Web Site
DT228/3 Web Development WWW and Client server model.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
© 2010, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet 1.
HTML Form Processing Learning Web Design – Chapter 9, pp Squirrel Book – Chapter 11, pp
Master’s course Bioinformatics Data Analysis and Tools Lecture 6: Internet Basics Centre for Integrative Bioinformatics.
2/11/2004 Internet Services Overview February 11, 2004.
DT211/3 Internet Development Application Internet Development Application.
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
1 Web Servers (IIS and Apache) Outline 9.1 Introduction 9.2 HTTP Request Types 9.3 System Architecture 9.4 Client-Side Scripting versus Server-Side Scripting.
INTRODUCTION TO WEB DATABASE PROGRAMMING
CS 299 – Web Programming and Design CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang.
Web Design Scripting and the Web. Books on Scripting.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 HTML and CGI Scripting CSC8304 – Computing Environments for Bioinformatics - Lecture 10.
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Chapter 1: Introduction to Web
2013Dr. Ali Rodan 1 Handout 1 Fundamentals of the Internet.
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Programming the Web Web = Computer Network + Hypertext.
Introduction to Internet Programming (Web Based Application)
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
IST 210: PHP BASICS IST 210: Organization of Data IST210 1.
20-753: Fundamentals of Web Programming 1 Lecture 1: Introduction Fundamentals of Web Programming Lecture 1: Introduction.
MySQL and PHP Internet and WWW. Computer Basics A Single Computer.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Active Server Pages  In this chapter, you will learn:  How browsers and servers interacted on the Internet when the Internet first became popular 
WEB SCIENCE. What is the difference between the Internet and the World Wide Web? Internet is the entire network of connected computers and routers used.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Copyright 2000 Ethel Schuster The Web… in 15 minutes Ethel Schuster
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Programming Brian Toone 8/27/2014. Outline for today 1.Understanding the architecture of the web 2.Overview of programming languages – Client-side.
Web Architecture Introduction
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Producing a high-impact web experience by integrate Macromedia Flash and ASP By Katie Tuttle CS 330: Internet Architecture and Programming Project.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
Jan 2001C.Watters1 World Wide Web and E-Commerce Client Side Processing.
IS-907 Java EE World Wide Web - Overview. World Wide Web - History Tim Berners-Lee, CERN, 1990 Enable researchers to share information: Remote Access.
Interactive Web Tehcnologies Teppo Räisänen LIIKE/OAMK 2011.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
CS 330: Internet Architecture and Programming, Fall 2001 Professor K. Larson Professor C. Shilepsky
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
JavaScript and Ajax (Internet Background) Week 1 Web site:
COSC 2328 – Web Programming.  PHP is a server scripting language  It’s widely-used and free  It’s an alternative to Microsoft’s ASP and Ruby  PHP.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Overview Web Technologies Computing Science Thompson Rivers University.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
6/28/ A global mesh of interconnected networks (internetworks) meets these human communication needs. Some of these interconnected networks are.
Internet and World Wide Web Introduction to the Internet.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Web Programming Language
Section 6.3 Server-side Scripting
WWW and HTTP King Fahd University of Petroleum & Minerals
JavaScript and Ajax (Internet Background)
CNIT 131 Internet Basics & Beginning HTML
Database Driven Websites
Chapter 27 WWW and HTTP.
Presentation transcript:

1 CS 131 Wrap Up Fall 2008 What Good is Programming?

2 What have you learned? Data int float char bool string array struct arrays of struct Control sequential loop (for, while, while/do) selection (if, switch) Organization functions libraries Is there anything you can't represent now? yes, more complicated information structures in CS 132 Are functions enough to organize a program? no, we need better ways to encapsulate related functionality

3 Who Needs This? Programming underlies most of what you do In your world Streams are fancier input: mouse, touchpad, laser trigger, voice output: webpage, pda display, cellphone Information organization and its exploitation are less visible do you ever ask how your cellphone knows who has called? how can find a recipe for crab cakes on the web? You function at a higher level Photoshop commands versus processing an array Google instead of a programming a search But the underlying programming is what you have learned

4 What else is Computer Science? Database management how can Amazon find all books by a given author? how do they know what to suggest you buy? Web programming how does their website work so flawlessly? Software engineering how is a million line program developed? Graphics how can a program rotate an object in 3d? how can Flash transform one object into another? Computer engineering who is building the next generation of computers and gadgets? IT management Wells should have wifi everywhere and the net always up, right? Communications

5 Where is Programming on the Web? HTML for static web pages JavaScript for client-side programming the sayings at the bottom of my page Towers of Hanoi PHP/ASP/Perl for server-side programming interfaces to databases interfaces to other web services such as credit card processing

6 Client (you) Server (aurora.wells.edu) (2) Client SW (IE/Netscape/ Firefox) Server SW (Apache, IIS) (1) (3) Steps: (1) Client sends an HTTP* request message (clicks on a link) (2) Server processes the request (3) Server sends response (an HTML page) (4) Client browser interprets it * Hypertext Transfer Protocol, a format for Internet messages Client/Server Communication (HTML)

7 Example: HTML (a markup language to define how to format the content) Wells Open House Welcome to Wells Things to do Take a tour Go to a class Eat lunch The page: welcome.htmwelcome.htm

8 ) (2) Client (you) Server (e.g. aurora) Client SW (Netscape/IE/ Firefox) (1) (2) Steps: (1) Client sends HTTP request message (2) Server sends page back to the client (3) Client executes JavaScript commands that are in the page Client-Side Programming (JavaScript) JavaScript interpreter Server SW (IIS, Apache) (3)

9 Example: JavaScript Simple Alert Pick the right door and win a car: <input type="button" value="Door 1" onclick="alert('You got my goat')"> <input type="button" value="Door 2" onclick="alert('You win a car')"> The page: door.htmdoor.htm Other examples: checking form input, sudokuchecking form inputsudoku

10 ) (2) Client (you) Server (e.g. my computer) Client SW (Netscape/IE/ Firefox) (1) (3) Steps: (1) Client sends HTTP request message (2) Server processes request message and executes any client-side programming (e.g. a database interaction) (3) Server sends page back to the client Server-Side Programming (PHP) CGI program JavaScript interpreter CGI Interface Server SW (IIS, Apache)

11 Server-Side Programming Uses resources that are not on the client computer –a databaseof records –software for processing them Languages commonly used: Perl, ASP, PHP Other applications –process an online order –check the weather –find driving directions to Wells –manage your Facebook information

12 <?php require_once('Connections/cn330.php'); mysql_select_db($database_cn330, $cn330); $query_rsUsers = "SELECT * FROM tblUser"; $rsUsers = mysql_query($query_rsUsers, $cn330); $row_rsUsers = mysql_fetch_assoc($rsUsers); ?> Write User Names Display All User Names <?php do { echo $row_rsUsers['FullName']; ?> <?php } while ($row_rsUsers = mysql_fetch_assoc($rsUsers)); ?> (view the code sent to the browser) Example: PHP (WriteNames1.php)WriteNames1.php