Lecture 4B: Server-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.

Slides:



Advertisements
Similar presentations
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
Advertisements

Server-Side vs. Client-Side Scripting Languages
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Lecture 3B: Client-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
Introduction to Web Interface Technology (CSE2030)
Multiple Tiers in Action
Copyright © 2002 Pearson Education, Inc. Slide 4-1 Choosing the Hardware for an E-commerce Site  Hardware platform  Refers to all the underlying computing.
Introduction to Web Interface Technology (CSE2030)
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Computer Science 101 Web Access to Databases Overview of Web Access to Databases.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
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).
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
The PHP Story. PHP Story PHP is a programming language. Incorporate(join) sophisticated business logic. Widely used general purpose scripting language.
Java Server Pages (JSP) Presented by: Ananth Prasad & Alex Ivanov May 10, 2001.
Overview of JSP Technology. The need of JSP With servlets, it is easy to – Read form data – Read HTTP request headers – Set HTTP status codes and response.
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
Server Side Scripting Norman White. Where do we do processing? Client side – Javascript (embed code in html) – Java applets (send java program to run.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
ITM352 PHP and Dynamic Web Pages: Server Side Processing.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
Copyright © Curt Hill PhP History and Introduction.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
AIT 616 Fall 2002 PHP. AIT 616 Fall 2002 PHP  Special scripting language used to dynamically generate web documents  Open source – Free!!!  Performs.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
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.
Chapter 17 - Deploying Java Applications on the Web1 Chapter 17 Deploying Java Applications on the Web.
Nael Alian Introduction to PHP
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
Mini Group Presentations: php by Veronica Black + Jia Xu.
Implementation - Part 2 CPS 181s March 18, Pieces of the Site-building Puzzle Page 180, figure 4.1.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Introduction to PHP Advanced Database System Lab no.1.
1 MSCS 237 Overview of web technologies (A specific type of distributed systems)
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
ASP (Active Server Pages) by Bülent & Resul. Presentation Outline Introduction What is an ASP file? How does ASP work? What can ASP do? Differences Between.
Client-side & Server-side Scripting ©Richard L. Goldman August 5, 2003 Requires PowerPoint 2002 or later for full functionality.
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
An Introduction to JavaServer™ Pages Prepared by Nicole Swan.
PHP “Personal Home Page Hypertext Pre-processor” (a recursive acronym) Allows you to create dynamic web pages and link web pages to a database.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Copyright © 2003 T. Trappenberg Overview B 1 B. Some tools of the trade Module 1 Technology: GR01E - Electronic Commerce Overview.
NASRULLAH KHAN.  Lecturer : Nasrullah   Website :
PHP Introduction PHP is a server-side scripting language.
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
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.
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.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
Web Programming Language
A PRESENTATION ON (IN PHP,CSS,HTML)
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
PHP Introduction.
Intro to PHP.
Web Application Development Using PHP
Presentation transcript:

Lecture 4B: Server-Side Scripting IT 202—Internet Applications Based on notes developed by Morgan Benton

For Today Intro to Server-side scripting Many flavors of “Hello, World!”

Review of Client/Server Model For networked applications, processing power is a valuable resource Most of the time both servers and clients possess processing power (i.e. they each have their own CPU) The decision has to be made about whether to run application logic on the client side, or the server side of the application

Reasons for Using Server-Side Scripting Some Application logic is complex and requires data from multiple sources Responsiveness is not a priority Greater security because the code gets hidden from the user Browser independence Access to file system on the server AND client

Which Scripting Environment? A variety exist including ASP, PHP, JSP, ColdFusion Web programmers tend to develop strong preferences for one or another, but all provide similar functionality The key question is where you will be hosting your application—the cost of the environment may be the deciding factor

A typical hosting environment Web Host Machine (aka a “server”) Web Application Application Server Web Server Operating System e.g. Amazon.com website PHP, ASP, JSP, ColdFusion, etc. Apache Web Server, IIS, etc. Linux, Windows, SunOS, etc. …to the Internet… also relies on other components not shown here, such as a database server, DBMS, etc. Dell, Gateway, etc.

Steps for writing server-side scripts 1. Get an account/directory on a server that hosts a scripting environment—at NJIT we have PHP, JSP, ASP, ColdFusion 2. Write pages that conform to the syntax and structure for that environment 3. Upload them to your server Hint: this is pretty much the same as for HTML except you need to be a little bit more careful about the directory where files are saved

Format for Server-Side Scripts Server-side scripts are text, just like the other languages we’ve studied this semester. Generally an (ASP, PHP,…) document looks just like HTML only it has some special opening and closing tags The most common opener/closer tags are

Many Flavors of ‘Hello! World’ The next pages will show a ‘Hello! World’ program in ASP, JSP, PHP, and ColdFusion

Active Server Pages—ASP Hello World! In ASP <% Response.write(“Hello World!”) %> The above is saved as hello_world.asp and uploaded to a Web server running an ASP environment like IIS.

Java Servelet Pages—JSP The above is saved as hello_world.jsp and uploaded to a Web server running a JSP environment like Tomcat.

PHP Hypertext Preprocessor Hello World! In PHP The above is saved as hello_world.php and uploaded to a Web server running a PHP environment like PHP for Apache.

ColdFusion Hello World! In CF #hw# The above is saved as hello_world.cfm and uploaded to a Web server running a CF environment like CF Server.

So which one should I use??? There are a number of factors: How much money do you have? What skillset do you have among your programmers? What other components (i.e. DBMS, platform) are you using? Where will the application be deployed?

About ASP Runs on IIS which is Microsoft and therefore only runs in Windows Defaults to VBScript, but also supports JavaScript Powerful, robust, supported Not free Limited availability at NJIT—see me

About JSP Runs on the Tomcat Server which anyone can download and run from either a Unix or Windows environtment Integrated with the Java programming language Powerful, robust, supported Free You can run Tomcat from your AFS account

About PHP Runs on PHP from either Unix or Windows environment Syntax and usage similar to C++/Java Powerful, robust, supported Free Already enabled for NJIT AFS accounts, or could be by ing

About ColdFusion Runs on ColdFusion server and more recently on major J2EE servers Uses proprietary, but powerful and “easy to learn” scripting language Very powerful, robust, supported Definitely not free Only 1 server that I know about at NJIT— see me for access

Let’s do it! Here’s an example of actually creating, uploading and testing a “hello world” page using PHP. The main thing to notice is what code gets output to your browser.