Web Server Administration Chapter 7 Installing and Testing a Programming Environment.

Slides:



Advertisements
Similar presentations
1 Copyright © 2002 Pearson Education, Inc.. 2 Chapter 1 Introduction to Perl and CGI.
Advertisements

Lecture plan Information retrieval (from week 11)
15 Chapter 15 Web Database Development Database Systems: Design, Implementation, and Management, Fifth Edition, Rob and Coronel.
Introduction to ASP.NET. 2 © UW Business School, University of Washington 2004 Outline Static vs. Dynamic Web Pages.NET Framework Installing ASP.NET First.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Chapter 12: ADO.NET and ASP.NET Programming with Microsoft Visual Basic.NET, Second Edition.
Introduction to Web Database Processing
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
1 C. Shahabi Application Programming for Relational Databases Cyrus Shahabi Computer Science Department University of Southern California
Introduction to Web Interface Technology (CSE2030)
Introduction to Web Interface Technology (CSE2030)
Chapter 14: Advanced Topics: DBMS, SQL, and ASP.NET
A Guide to MySQL 3. 2 Objectives Start MySQL and learn how to use the MySQL Reference Manual Create a database Change (activate) a database Create tables.
1 Foundations of Software Design Lecture 27: Java Database Programming Marti Hearst Fall 2002.
Chapter 7 Managing Data Sources. ASP.NET 2.0, Third Edition2.
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.
Advance Computer Programming Java Database Connectivity (JDBC) – In order to connect a Java application to a database, you need to use a JDBC driver. –
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
INTRODUCTION TO WEB DATABASE PROGRAMMING
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
Web Servers Web server software is a product that works with the operating system The server computer can run more than one software product such as .
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
© Yanbu University College YANBU UNIVERSITY COLLEGE Management Science Department © Yanbu University College Module 6:WEB SERVER AND SERVER SIDE SCRPTING,
A Guide to SQL, Eighth Edition Chapter Three Creating Tables.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
ASP.NET Programming with C# and SQL Server First Edition
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
True or False? Programming languages can be used to update databases and communicate with other systems. True.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
Tutorial 10 Adding Spry Elements and Database Functionality Dreamweaver CS3 Tutorial 101.
1 Web Server Administration Chapter 1 The Basics of Server and Web Server Administration.
1 PHP and MySQL. 2 Topics  Querying Data with PHP  User-Driven Querying  Writing Data with PHP and MySQL PHP and MySQL.
CIS 270—Application Development II Chapter 25—Accessing Databases with JDBC.
2440: 141 Web Site Administration Database Management Using SQL Professor: Enoch E. Damson.
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
Chapter 7 Working with Databases and MySQL PHP Programming with MySQL 2 nd Edition.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building Assignment.
CSC 411/511: DBMS Design Dr. Nan WangCSC411_L12_JDBC_MySQL 1 MySQL and JDBC.
Tutorial 7 Creating Forms. Objectives Session 7.1 – Create an HTML form – Insert fields for text – Add labels for form elements – Create radio buttons.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
SQL Queries Relational database and SQL MySQL LAMP SQL queries A MySQL Tutorial and applications Database Building.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
Web Scripting [PHP] CIS166AE Wednesdays 6:00pm – 9:50pm Rob Loy.
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
 2004 Prentice Hall, Inc. All rights reserved. 1 Segment – 6 Web Server & database.
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 Server Administration Chapter 7 Installing and Testing a Programming Environment.
CF101: Welcome to ColdFusion Simon Horwith CTO, Etrilogy Ltd.
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.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
Chapter 10 Database Management. Data and Information How are data and information related? p Fig Next processing data stored on disk Step.
8 Chapter Eight Server-side Scripts. 8 Chapter Objectives Create dynamic Web pages that retrieve and display database data using Active Server Pages Process.
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
Database Connectivity and Server-Side Scripting Chapter 12.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
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.
Relational database and SQL MySQL LAMP SQL queries
PHP / MySQL Introduction
Database Driven Websites
Chapter 8 Working with Databases and MySQL
Web Application Development Using PHP
Presentation transcript:

Web Server Administration Chapter 7 Installing and Testing a Programming Environment

Overview Understand the need for programming languages Understand database management systems (DBMSs) Install and test DBMSs Understand the Web-based programming environment Program with databases

The Need for Programming Languages Web pages with just HTML statements are static pages Pages that contain programming statements allow changes and they are called dynamic pages Programming languages can also be used to update databases and communicate with other systems

Database Management Systems (DBMSs) The purpose of a DBMS is to store data in an organized manner for further processing Structured Query Language (SQL) is the language used to define and manipulate the data Most databases are relational and organize data into tables

Database Tables A primary key uniquely defines a row of data SSN in the Employee table and Department number in the Department table A foreign key is a column in a table that is related to a primary key Department number in the Employee table

Three Categories of SQL Data Manipulation Language (DML) Used for programming and to insert, update, delete, and retrieve data Data Definition Language (DDL) Used to create tables and other related structures in a database Data Control Language (DCL) Allows you to control access to tables

Installing and Testing SQL Server As with other applications, a wizard guides you through the installation By default, it uses the user name you logged on as (typically administrator) to gain access to the system This should be changed to "Use the Local System account" for single server systems If SQL Server needs to communicate with other servers, create a special domain account

Installing and Testing SQL Server- Authentication Mode The Windows Authentication Mode controls access to the database based on Windows users The Mixed Mode allows for SQL Server Authentication This is more appropriate for Web-based systems The sa (systems administrator) account is a SQL Server user that has complete control over the databases

Installing and Testing SQL Server- Creating Tables The GUI interface is similar to Access in creating a table

Installing and Testing SQL Server- Filling Tables with Data Although SQL statements are often used to manipulate data, you can use something similar to a spreadsheet

Installing and Testing MySQL for Red Hat Linux As with other applications, you run an RPM file Start MySQL with /etc/rc.d/init.d/mysqld start The command-line interface is accessed with mysql Create a password for mysql root account with SET PASSWORD FOR root=PASSWORD('password');

Login to mysql and Create a Database To login from the shell prompt use mysql –uroot –ppassword To create a database called hr create database hr; In order to do any operations on the database such as create tables, you have to "use" it use hr;

Create Tables and Insert Data The following script creates the employee table and adds three employees create table employee ( ssn char(9) primary key, firstname varchar(20), lastname varchar(30), deptno char(2), salary numeric(6)); insert into employee values(' ','Lynn','Gweeny',10,55000); insert into employee values(' ','Elark','Kaboom',10,60000); insert into employee values(' ','John','Doh',20,45000);

Web-based Programming Environment Cookie Text that a Web site stores on your disk Common Gateway Interface (CGI) A protocol that allows the operating system to interact with the Web server Practical extraction and reporting language (Perl) First popular language for Web servers Java Server Pages (JSP) Language similar to Java

Web-based Programming Environment Active Server Pages (ASP) Script-based environment available on all IIS Web servers ASP.NET Compiled programs operate under.NET Framework.NET Framework is an integral part of Windows Server 2003 and can be installed on Windows 2000 PHP Hypertext Protocol (PHP) Popular language available on most platforms The structure of JSP, ASP, and PHP are similar

Using Forms The following HTML produces a form When the submit button is pressed, the data in the form is sent to the file designated as filename

Using ASP to Process a Form The following file displays the information from the form Notice how the items such as "first" match the text names on the form ASP uses for opening and closing tags is one way to retrieve data from the form

ASP.NET ASP.NET is one of the many languages available under the.NET Framework that can be used for the Web The programming model of ASP.NET is superior to that of ASP Has modules for data validation that differentiates between browsers Producing sophisticated reports is much easier

ASP.NET Program that Combines Form and Output

Shell Script in Linux Uses CGI First line states that the shell is being used Not common because of lack of security

Perl Script to Display Contents of a Form Notice how $cgi->param("first") is similar to ASP’s request("first")

Programming with Databases Microsoft uses two methods to bridge the gap between programming languages and databases Open Database Connectivity (ODBC) The original standard Object Linking and Embedding Database (OLEDB) Current standard which is faster and more flexible Linux often uses Java Database Connectivity (JDBC) You can also have a direct connection between the language (such as PHP) and the database (such as MySQL)

Producing a Report Connect to the database Execute a SQL select statement to retrieve data from a table Put the data in a recordset Also known as a resultset, depending on the environment Loop through the recordset and display the contents

A Report in ASP

Using Data Source Names (DSNs) DSNs are connections to databases that an administrator creates on the server They encapsulate the information on the previous slide concerning the connection information The Data Sources (ODBC) wizard is in the Control Panel Once it is created, you can create a connection with Conn.open "DSN=humanresources;uid=sa"

Programming with ASP.NET Although there is a connection and you send it a SQL select statement, the DataGrid component creates the report

Programming with PHP Note the similarity between ASP and PHP, and how different they are from ASP.NET

Summary Programming languages process data, allow you to create dynamic Web pages, and can produce other features Database management systems organize data for processing