Website Development with PHP and MySQL Introduction.

Slides:



Advertisements
Similar presentations
IS 6116 Introduction – 10 Jan Lecturer Details Aonghus Sugrue Website: aonghussugrue.wordpress.com
Advertisements

E-Commerce CMM503 – Lecture 8 Stuart Watt Room C2.
DT228/3 Web Development WWW and Client server model.
Languages for Dynamic Web Documents
 2003 Prentice Hall, Inc. All rights reserved. Chapter 21 – Web Servers (IIS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3 System.
Copyright 2004 Monash University IMS5401 Web-based Systems Development Topic 2: Elements of the Web (g) Interactivity.
Server-Side vs. Client-Side Scripting Languages
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Introduction to Web Application Architectures Web Application Architectures 18 th March 2005 Bogdan L. Vrusias
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
DT211/3 Internet Development Application Internet Development Application.
Introduction to Web Interface Technology (CSE2030)
Julien Thibault / Phil Brewster / Kristina Doing-Harris
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
ECA 228 Internet/Intranet Design I Intro to the Web.
Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course materials.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
Web Development & Design Foundations with XHTML Chapter 9 Key Concepts.
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.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
1 Web Developer & Design Foundations with XHTML Chapter 6 Key Concepts.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Web Administration.
M. Taimoor Khan * Java Server Pages (JSP) is a server-side programming technology that enables the creation of dynamic,
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Introduction to ASP.NET. Prehistory of ASP.NET Original Internet – text based WWW – static graphical content  HTML (client-side) Need for interactive.
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Dr. Azeddine Chikh IS444: Modern tools for applications development.
Project Four Forms Discuss form processing Describe the difference between client-side and server-side form processing Add a horizontal rule to a Web page.
Chapter 1: Introduction to Web
Nic Shulver, Intro: Developing Server Applications What is a server? Many types of server – File server – file: networked file.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
CIS 451: Servers, CGI and Log Files Dr. Ralph D. Westfall January, 2009.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 21 - Web Servers (IIS, PWS and Apache) Outline 21.1 Introduction 21.2 HTTP Request Types 21.3.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Web Pages with Features. Features on Web Pages Interactive Pages –Shows current date, get server’s IP, interactive quizzes Processing Forms –Serach a.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.
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.
ECMM6018 Enterprise Networking for Electronic Commerce Tutorial 7
WHAT IS SERVER SIDE SCRIPTING? Server-side scripting is a web server technology in which a user's request is verified by running a script directly on the.
 Previous lessons have focused on client-side scripts  Programs embedded in the page’s HTML code  Can also execute scripts on the server  Server-side.
Introduction and Principles Web Server Scripting.
WEB SERVER SOFTWARE FEATURE SETS
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
Unit 1 – Web Concepts Instructor: Brent Presley.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
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.
Basics Components of Web Design & Development Basics, Components, Design and Development.
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
Tonga Institute of Higher Education IT 141: Information Systems
WWW and HTTP King Fahd University of Petroleum & Minerals
Introduction and Principles
Introduction to Web programming
PHP / MySQL Introduction
Database Driven Websites
CoreFTP.
Chapter 27 WWW and HTTP.
Tonga Institute of Higher Education IT 141: Information Systems
CoreFTP.
Tonga Institute of Higher Education IT 141: Information Systems
Web Application Development Using PHP
Presentation transcript:

Website Development with PHP and MySQL Introduction

Important information Just in case you forgot Steve Wade CW3/

Introduction to the Module This module builds on the Web Authoring module, extending the range of skills and techniques developed to include server-side scripting and database integration.

Assumed knowledge XHTML JavaScript CSS Be able to use Dreamweaver to create a static website

Code Static XHTML – Pages/data do not change without designer input – All users see the same page Client side script (e.g. JavaScript) – Data still stays the same – Some customisation possible (e.g. colours, image changes) – Validation of user input Server side script (e.g. CGI, ASP, PHP, ColdFusion) – Pages can be ‘made’ on the fly based on variables (e.g. search input, previous choices made by the user on their last visit, inputs from other sites or databases) – Page is constructed at the server end, then sent as simple html to the client

How does it work? HTML First consider an HTML page: – You go to a webpage e.g. – The browser goes and find the Uni. website – Once found it sends a request for the index.htm file – The server finds that page and sends it to the browser – Once received the browser looks at the HTML code, reads it and converts it to a pretty, colourful, but static page

How does it work? CGI After HTML came CGI: – HTML is one way (only receives), so something was needed to send information back to the server. forms and CGI (Common Gateway Interface) were created – Forms used to get information from the user, then that information is sent to the server where a separate program is run to deal with it – Great for small apps like a guestbook, but downside is every time someone sends something to the server, a whole instance of the CGI program is created. E.g. 5 people on site equals 5 programs running. Imagine if hundreds of people wanted to connect at the same time?!?

How does it work? Server API’s CGI too slow, so Server Application Programming Interface born. ISAPI is the Microsoft version Similar to CGI, ISAPI much more efficient. Doesn’t launch new version for every visitor

How does it work? ASP/PHP etc And then came ASP/PHP/ColdFusion Solved all the problems of CGI and ISAPI, and they are simpler to learn and easier to use CGI and ISAPI written in Perl or C ASP/PHP/CFM simply write code in the HTML, side by side – As with JavaScript

How does PHP work? You go to a webpage e.g. The browser goes and finds mydomain.com Once found it sends a request for the index.php file The server finds that page and executes it, which means it looks through the pages and runs any code in the page After the code has run, all php is removed from the result (so people cannot steal it) leaving a pure HTML page The HTML page is sent to the browser for rendering

PHP HTML HTTP Web serverClient

Why server side Content sites, catalogues (imagine news.bbc.co.uk with static code?!) Community features (forums etc) (instead of mailto link, have a form on your site to be filled in) Technical support (search your problem, solutions stored/updated in a database) Web delivered business applications (e.g shopping trolleys) Directories (e.g. uni has an online phonebook) Surveys, polls, tests (storing results and generating reports) Personalisation Etc etc…

Alternative Server Side Options ASP.NET (and the older v3.0) – Microsoft – Windows Server ColdFusion – Macromedia – Runs on a windows server with ColdFusion server installed JSP – Java Server Pages

Installing a server on your machine Easier to get a package (Apache, PHP, MySQL) – – (the one I use) –

Inside Uni PHP, MySQL ASP.NET,

Working with Helios There are many different ftp clients that can be used to upload files to a web server. We will be using FileZilla. It is installed on the machines in Canalside West and it is an Open Source application that you can download for free and use at home. Select start>programs>FileZilla FTP Client. FileZilla will open Near the top of the interface enter the following settings Host: helios.hud.ac.uk Username: Your student number e.g. u Password: Date of Birth e.g. 01jan90

Uploading a File Don’t specify a port Click “quick connect”. In the panels beneath, the left hand panel will show the files on the local machine. The right-hand panel will show the files on the server. On the right-hand panel open the web folder On the left hand panel browse to a PHP file you have created Select the file and press ‘enter’, a copy of the PHP file will be transferred the helios server and placed into the web directory

Viewing the Page Open a web browser Enter the following url (but change the student number and name of the file to your own) You should then be viewing the webpage you have just uploaded.

Tutorial tasks Make sure you can access Have a go at the first PHP exercises