Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP.

Slides:



Advertisements
Similar presentations
1 Chapter 12 Working With Access 2000 on the Internet.
Advertisements

IS 360 Course Introduction. Slide 2 What you will Learn (1) The role of Web servers and clients How to create HTML, XHTML, and HTML 5 pages suitable for.
Cloud Computing Lecture #7 Introduction to Ajax Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under a.
Multiple Tiers in Action
Dynamic Web Pages Bert Wachsmuth. Review  Internet, IP addresses, ports, client-server, http, smtp  HTML, XHTML, XML  Style Sheets, external, internal,
INTRO TO MAKING A WEBSITE Mark Zhang.  HTML  CSS  Javascript  PHP  MySQL  …That’s a lot of stuff!
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.
It’s World Wide! I NTRODUCTION TO T HE WEB 1 Photo courtesy:
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
Introduction to PHP and Server Side Technology. Slide 2 PHP History Created in 1995 PHP 5.0 is the current version It’s been around since 2004.
Introduction to AJAX AJAX Keywords: JavaScript and XML
JavaScript & jQuery the missing manual Chapter 11
1 CS 3870/CS 5870 Static and Dynamic Web Pages ASP.NET and IIS.
Server-side Scripting Powering the webs favourite services.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
CSS/Photoshop Layouts – Quiz #7 Lecture Code:
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Databases & SQL Lecture Code:
JavaScript – Quiz #9 Lecture Code:
Feedback #2 (under assignments) Lecture Code:
Website Development with PHP and MySQL Saving Data.
1 Welcome to CSC 301 Web Programming Charles Frank.
1 © Netskills Quality Internet Training, University of Newcastle HTML Forms © Netskills, Quality Internet Training, University of Newcastle Netskills is.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
Dynamic web content HTTP and HTML: Berners-Lee’s Basics.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
1 CSC 301 Web Programming Charles Frank. PHP – Stands for:  Personal Home Page (originally),  PHP: Hypertext Preprocessor (now; follows GNU’s recursive.
הרצאה 4. עיבוד של דף אינטרנט דינמי מתוך Murach’s PHP and MySQL by Joel Murach and Ray Harris.  דף אינטרנט דינמי משתנה עפ " י הרצת קוד על השרת, יכול להשתנות.
 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.
Module: Software Engineering of Web Applications Chapter 2: Technologies 1.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
Introduction and Principles Web Server Scripting.
Creating Databases applications for the Web: week 2 Basic HTML review, forms HW: Identify unique source for asp, php, Open Source, MySql, Access.
JavaScript and Ajax (Internet Background) Week 1 Web site:
 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.
AJAX CS456 Fall Examples Where is AJAX used? Why do we care?
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.
1/7/2016www.infocampus.co.in1. 1/7/2016www.infocampus.co.in2 Web Development training gives you and all-round training in both the design and the development.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
National College of Science & Information Technology.
BRANDING YOURSELF FINAL DRAFT.
Web Programming Language
Tonga Institute of Higher Education IT 141: Information Systems
Web Technologies Computing Science Thompson Rivers University
JavaScript and Ajax (Ajax Tutorial)
Introduction to Dynamic Web Programming
CSC 301 Web Programming Charles Frank.
Lecture 11. Web Standards Continued
PHP / MySQL Introduction
Database Driven Websites
Web Systems & Technologies
IS 360 Course Introduction
Web Browser server client 3-Tier Architecture Apache web server PHP
Tonga Institute of Higher Education IT 141: Information Systems
Web Systems Development (CSC-215)
PHP and Forms.
Tonga Institute of Higher Education IT 141: Information Systems
PHP Forms and Databases.
Web Technologies Computing Science Thompson Rivers University
Client-Server Model: Requesting a Web Page
PHP By Prof. B.A.Khivsara Note: The material to prepare this presentation has been taken from internet and are generated only for students reference and.
Web Application Development Using PHP
Presentation transcript:

Web Design: Basic to Advanced Techniques Fall 2010 Mondays 7-9pm 200 Sutardja-Dai Hall Introduction to PHP

Last Week… We learned that JavaScript is awesome Functions Manipulation Effects/Animations Events/Callbacks GET/POST AJAX

Event handling Mouse click $(“#blah").click(function() { alert("Hello world!"); }); Hover $('#blah').mouseover(function() { alert(“Hello world!”); }); Keyup/down/press, onfocus/blur, etc. For more, check out the Jquery API:

Callbacks Piece of executable code that is passed as an argument to other code Allows us control timing of function calls Allows us to execute X only if Y was sucessful. Just like the jQuery.click() $("p").click(function () { $(this).slideUp(); });

Callbacks If you do some AJAX call that returns data $.post(URL, input, function(output){ alert(output); }

What is PHP? Client Side Web Browser HTTP Request (visit website) Interpret and render received files Server Side Web Server Serve Website Send HTML and CSS files Send images Execute JavaScript Send JavaScript code PHP and MySQL Runs in your browser – on the client side

PHP: Hypertext Preprocessor Server-side Scripting language (like JavaScript, unlike HTML and CSS) Dynamically writes HTML pages Has access to server system’s resources Database Image processors Anything else the system can run

PHP Use Cases Customization Facebook shows you your profile despite sending the same file to everyone Authentication Login PHP can choose to hide your Facebook profile from those that are unauthorized to view it Access Database on your Behalf When you use Yelp, Yelp does not have html files for every search you could possibly make saved. It generates the pages on the fly.

Chain of Events Client Requests File Web Server sees the file is.php PHP Parses.php file requested and writes HTML HTML The result after the php code has been parsed Received by Client JavaScript Included in the HTML file is executed by client Client to Server Via Internet Server to Client Via Internet

PHP Generates HTML Files PHP dynamically writes HTML files which are then downloaded and rendered by the user User AUser B Profile.php w/ php code Profile.php w/ php code parsed for User A Profile.php w/ php code parsed for User B

Client Never Sees PHP Server View of.phpClient View of.php

Exchange of Data Browser Server HTML, CSS, JS, images Request for files Login, password, cookies, …

PHP and User Input

GET variables Passed via URL in the form of &myVar=value POST variables The result of form submission Can be a single word, a check box, a selector, a file Cookies Set by the server Key, value pairs

PHP and User Input ClientServer cookie(user_id, 10) $_COOKIE[‘user_id’] $_POST[‘user_id’] $_GET[‘user_id’]

GET View Profile Could use PHP to dynamically create this link too…

POST