Instructor s Notes Web Data Management Web Client/Server Concepts. Web Data Management Web Client/Server Concepts

Similar documents
Ampliación de Bases de Datos

But before understanding the Selenium WebDriver concept, we need to know about the Selenium first.

Introduction to web development with PHP

Chapter 1. Introduction to web development and PHP. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C1

Let's Play... Try to name the databases described on the following slides...

Things to note: Each week Xampp will need to be installed. Xampp is Windows software, similar software is available for Mac, called Mamp.

How to Install (then Test) the NetBeans Bundle

Using the Computer Programming Environment

inforouter V8.0 Server & Client Requirements

Open Source Digitalization Application. Installation Manual

Inf 202 Introduction to Data and Databases (Spring 2010)

Internet programming Lab. Lecturer Mariam A. Salih

Setting Up a Development Server

1. Setup a root folder for the website 2. Create a wireframe 3. Add content 4. Create hyperlinks between pages and to external websites

INT213. Active Server Pages using Visual Basic Scripting

Web Architecture AN OVERVIEW

EPHP a tool for learning the basics of PHP development. Nick Whitelegg School of Media Arts and Technology Southampton Solent University

Project Title REPRESENTATION OF ELECTRICAL NETWORK USING GOOGLE MAP API. Submitted by: Submitted to: SEMANTA RAJ NEUPANE, Research Assistant,

Perceptive DataTransfer

The MANUAL. 1 P a g e

Apache Mysql And Php Installation And Configuration

Advanced Web Tutorial 10

Web Programming Paper Solution (Chapter wise)

Section 1. How to use Brackets to develop JavaScript applications

Web Site Design and Development. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

CSCI 201 Lab 1 Environment Setup

Using HTML Kit to Debug Server-Side Scripts

MultiBrowser Documentation

Application Architecture

Introduction to Web Concepts & Technologies

BrowseEmAll Documentation

20. Web Hosting 웹프로그래밍 2016 년 1 학기 충남대학교컴퓨터공학과

Apache, Php, MySql Configuration

CS 268 Lab 6 Eclipse Test Server and JSPs

Your computer, the internet, and the web. A brief overview

Web Server Setup Guide

Apache Mysql And Php Installation And Configuration

PHP. MIT 6.470, IAP 2010 Yafim Landa

School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University

Perceptive DataTransfer

Getting Started with PHP

Visual Basic Scripting

TABLE OF CONTENTS 1. INTRODUCTION DEFINITIONS Error! Bookmark not defined REASON FOR ISSUE 2 3. RELATED DOCUMENTS 2 4.

Sentences Installation Guide. Sentences Version 4.0

OpenPro Installation Instructions

Enterprise Forms Server - Hardware/Software Requirements

IISSI Presentation

PS IMAGO Portal 4.0 /// installation instructions

Http Error Code 403 Forbidden Dreamweaver Mysql

WA2402 Introduction to Responsive Web Development with HTML5, CSS3, JavaScript and jquery. Classroom Setup Guide. Web Age Solutions Inc.

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Installation Guide for the ALM Performance Tool

Announcements. PS 3 is out (see the usual place on the course web) Be sure to read my notes carefully Also read. Take a break around 10:15am

Full version is >>> HERE <<<

HighPoint Web Based Installation Guide

MASTERS COURSE IN FULL STACK WEB APPLICATION DEVELOPMENT W W W. W E B S T A C K A C A D E M Y. C O M

Planning and Designing Your Site p. 109 Design Concepts p. 116 Summary p. 118 Defining Your Site p. 119 The Files Panel p. 119 Accessing Your Remote

IISSI Presentation

COP Spring 2011 Assignment 4 Working with Servers Due Monday, 28th February in class (17H15)

COMS 469: Interactive Media II

Review. Fundamentals of Website Development. Web Extensions Server side & Where is your JOB? The Department of Computer Science 11/30/2015

JSN PowerAdmin Configuration Manual Introduction

Creating an Online Catalogue Search for CD Collection with AJAX, XML, and PHP Using a Relational Database Server on WAMP/LAMP Server

Introduction to Autodesk MapGuide EnterpriseChapter1:

ThingWorx Relational Databases Connectors Extension User Guide

Web System and Technologies (Objective + Subjective)

Build Your Own ASP.NET 4 Website Using C# & VB. Chapter 1: Introducing ASP.NET and the.net Pla;orm

Introduction to Autodesk MapGuide EnterpriseChapter1:

XAMPP Web Development Stack

Basics of Web. First published on 3 July 2012 This is the 7 h Revised edition

Syllabus INFO-GB Design and Development of Web and Mobile Applications (Especially for Start Ups)

Setting up the Master Computer

The Computer System. Hardware = Physical Computer. Software = Computer Programs. People = End Users & Programmers. people

CNIT 129S: Securing Web Applications. Ch 3: Web Application Technologies

Web Design and Development ACS-1809

CONTEST DESCRIPTION / DESCRIPTION DE CONCOURS WEB DESIGN AND DEVELOPMENT CONCEPTION ET CRÉATION DE SITES WEB SECONDARY / NIVEAUX SECONDAIRE

1) What is the first step of the system development life cycle (SDLC)? A) Design B) Analysis C) Problem and Opportunity Identification D) Development

CSC 337. Relational Databases and SQL. Rick Mercer

IDWedgeKB Serial Port and NodeJS

CENG 256 Internet Programming Draft

WA2256 Responsive Mobile Web Development with HTML5, CSS3, JavaScript, and jquery Mobile. Classroom Setup Guide. Web Age Solutions Inc.

Hello everyone! Page 1. Your folder should look like this. To start with Run your XAMPP app and start your Apache and MySQL.

Web Application Performance Testing with MERCURY LOADRUNNER

Apache Install Instructions Win7 7 Php Mysql. Phpmyadmin Linux >>>CLICK HERE<<<

BlueCielo Meridian Enterprise Server Quick start for application administrators

Vb Net Tutorial For Beginners Visual Studio 2010 Create Web Service

Software. Full Stack Web Development Intensive, Fall Lecture Topics. Class Sessions. Grading

INSTALLATION INSTRUCTIONS FOR IPYTHON ENVIRONMENT

University College of Southeast Norway ASP.NET. Web Programming. Hans-Petter Halvorsen,

Web pages are a complex undertaking. The basic web page itself isn t

(Frequently Asked Questions)

Required software. Mac OS X In this section, you ll find instructions for downloading and configuring the Arduino IDE in Mac OS X.

Moodle Plugin for CopySafe Web -- Installation for Moodle 3.5 and later --

ITP 140 Mobile Technologies. Databases Client/Server

PHP for PL/SQL Developers. Lewis Cunningham JP Morgan Chase

Excerpts of Web Application Security focusing on Data Validation. adapted for F.I.S.T. 2004, Frankfurt

Developing Web Applications

Database connection 1

Interview Questions And Answers For Experienced Candidates In Php Mysql

How To Start Mysql Use Linux Command Line Client In Xampp

Transcription:

Instructor s Web Data Management Web Client/Server Concepts Web Data Management 152-155 Web Client/Server Concepts Quick Links & Text References Client / Server Concepts Pages 4 11 Web Data Mgt Software Pages 10 11 Developing PHP Applications Pages 14 23 Installing and Using XAMPP Pages 24 25 Locating Your PHP Apps Pages 26 27 Locating MySQL Databases Pages Launch/Test PHP Pages 28 29 Launching Non-Index Pages Pages 28 29 Client / Server Concepts In Web Programming you learned to create dynamic web pages using JavaScript JavaScript was embedded in the page (or stored in an included file) Once the page loaded, its behavior was controlled by JavaScript. Though the pages were dynamic, they lacked one critical component: the ability to store data between sessions Page 1 of 7

Instructor s Web Data Management Web Client/Server Concepts Web server (server-side) applications allow you to dynamically create web pages before they are sent to the client. Code is used to access data Code is combined with HTML and data to create web pages Client (laptop above) still sends an HTTP request, but for a PHP page The web server interprets the PHP commands Requests data if needed (probably) Uses query results to create the contents of a web page Just HTML is returned to the client. If you view the source of the returned page, it contains no PHP. Page created using PHP may also contain JavaScript that can control the appearance of the form on the client. Demonstrate by sending validate form from Web Programming to HTMLFormTest. View source Page 2 of 7

Instructor s Web Data Management Web Client/Server Concepts Web Data Management Software Software is used on both the client and the server to create web data applications Browsers IE, Firefox, Safari, Opera, Chrome Web Servers Apache Open source, free web server Major component of LAMP (Linux, Apache, MySQL, PHP) IIS Microsoft s web server software. Only runs on Windows Server OS Primarily supports ASP Server-Side Languages PHP Open source, Java-like language. Available for both Apache and IIS ASP.NET Uses VB-like interface to develop pages for IIS Perl. Older, less-used open source language used to develop for Apache Python: multi-use development language that can be used to develop web pages for Apache JSP: Requires special Apache server software Database Servers MySQL: open source database software available for all servers and most operating systems Oracle: for-pay database software from Oracle DB2: for-pay database software from IBM SQL Server: for-pay database software from Microsoft Page 3 of 7

Instructor s Web Data Management Web Client/Server Concepts Developing PHP Web Site Applications PHP web sites are made up of: PHP pages (must have.php extension) HTML pages Normally, if one page is a site has the php extension, they are all given the php extension PHP pages are simply HTML pages with PHP embedded in them They do not have to have PHP in them The PHP commands will only be interpreted if the extension is php. CSS files JavaScript include files PHP include files Images and other support files PHP files, like HTML, CSS and JavaScript files are pure text. They can be developed with any text editor, like Notepad or Notepad++ To help debug PHP code, developers often use a PHP development environment Eclipse is a free, multi-language IDE that is commonly used IDEs can do on-the-fly syntax checking (to some extent), provide intellisense (popups) features IDEs often include debuggers that allow you step through your code and inspect variables Page 4 of 7

Instructor s Web Data Management Web Client/Server Concepts The real challenge is how to simulate the web and database servers. Web development is not done on actual web servers. We will use portable versions of the Apache server and MySQL database server that are available for PortableApps through a program called XAMPP XAMPP is an abbreviation for (see LAMP above) X cross-platform A Apache M MySQL P PHP P Perl This program allows you to completely simulate a web server on your USB drive and accurately develop complete web data management applications There is a version of XAMPP available for Windows that you can permanently install on your computer. I recommend using the PortableApps version so you can carry your work from home to school. Installing and Using XAMPP See separate notes for Installing and Using XAMPP Note that even though XAMPP is a PortableApps application, it does not install into the PortableApps folder it installs in the root folder of your USB drive. DO NOT move this folder! In order for the Apache web server (and all its components) to work, the xampp folder must be located in the root. Locating Your PHP Applications In order for the Apache web server to run your PHP applications, they MUST be stored in the xampp\htdocs folder. When you attempt to display a PHP page, you will be designating the page is on the local host. Apache translates this to the htdocs folder. It is possible to redefine where Apache looks for local host files, but I ve found this very unreliable (confusing) in the PortableApps environment. You CAN create subfolders in the htdocs folder and I recommend you do so for each of your PHP projects. Assign as reading and ticket. Show the folder structure of my USB drive Page 5 of 7

Instructor s Web Data Management Web Client/Server Concepts Locating Your MySQL Databases Remember if you plan to use database commands in your PHP, you must also start MySQL in the XAMPP control panel. Actually, you don t tell PHP applications or the MySQL Query Browser where to place your databases. The MySQL database server automatically places the databases where it can find them. Should you need to find your database (to back it up or transfer it to another location), you can find them in: xampp\mysql\data folder. Launching/Viewing/Testing a PHP Page Be sure your PHP file is in the proper folder (see above) To test your PHP page, first open the browser of your choice. There is no way I know of to launch a page by double-clicking it It ll launch, but PHP will not be available In the address bar enter localhost Alternatively, you can use 127.0.0.1 (must use this in Opera) This will launch the index.php page if there is one Note, like HTML pages, if the file is named index.php, you do not need to include index.php in the file name, just the folder name The web server automatically searches for the index file (or default file, php, htm, html extension) if the path ends in a folder name Note: if there is no index.php page in the root folder of localhost, entering localhost will display a directory of folders and files in localhost (htdocs) Tip: Delete all the files/folders entered into htdocs by XAMPP. Tip: Enter localhost to get the directory, then simply click the folder name of the project you want to launch. If the folder contains an index.php file it will automatically launch. I have added a Local Host Directory item to the Notepad++ Run menu to give quick access to the localhost directory. Copy the Unit 1 Demo folder to the htdocs folder. Launch it. Page 6 of 7

Instructor s Web Data Management Web Client/Server Concepts Launching Non-index.php Pages Be sure your PHP file is in the proper folder (see above) To test your PHP page, first open the browser of your choice. There is no way I know of to launch a page by double-clicking it It ll launch, but PHP will not be available In the address bar enter localhost/pagename.php Alternatively, you can use 127.0.0.1 Replace pagename with the name of your PHP page. If you want to launch a page that is not in the htdocs folder, simply insert the folder s path (must be a subfolder of htdocs) between localhost and the PHP file name localhost/volker/pagename.php Page 7 of 7