SEEM4570 System Design and Implementation. Lecture 6 Game Part II
|
|
- Lewis Mitchell
- 5 years ago
- Views:
Transcription
1 SEEM4570 System Design and Implementation Lecture 6 Game Part II
2 Preparation We continue the code in the last lecture (Lecture 06) Gabriel Fung 2
3 Programming with Client-Server System In practice, a game usually store some important data in a centralized database system at the game server. E.g. scores of different players so that a ranking board can be displayed Gabriel Fung 3
4 Revise game.js Revise the method runtime of the object gamejs: runtimer: function(){ else{ $.ajax{ type: 'POST, data: {"score":currentscore}, url: xxxxxx", success: function(data){ console.log("score is sent to the server. + data); }, error: function(e){ console.log("error when sending the score to the server."); } } } } 2017 Gabriel Fung 4
5 Revise game.js (cont d) You will get the following screen with error message. No worry, that s completely normal because we did not write the server side handling yet Gabriel Fung 5
6 MariaDB and PHP In this course, we will use MariaDB as the database management system and PHP as the server side script Gabriel Fung 6
7 MariaDB Setup Follow your Tutorial Note 1, you should setup a XAMPP server with MariaDB. Alternatively, you can use SEEM department server. We already setup the environment for you. If you choose this approach, then in the following slides, please skill the one Create A User 2017 Gabriel Fung 7
8 Create A Database Login to PHPMyAdmin, and setup your own database. In this demo, our database is called seem4570.y17_t1.cordova 2017 Gabriel Fung 8
9 Create A User If you create your own server (not SEEM provided one), then you need to create a user. Make sure the host is Gabriel Fung 9
10 Create a Table In our database, create a table to store the information. Our table called player_score and contains 3 columns: id int Primary key Autoincrement time Current timestamp score int 2017 Gabriel Fung 10
11 PHP PHP stands for PHP: Hypertext Preprocessor A widely-used, open source scripting language PHP scripts executed on the server JavaScript executed on the client side (e.g. phone). Free to download and use Runs on different platforms Windows, Linux, Unix, Mac OS X, etc. Compatible with almost all servers used today Apache, IIS, etc. Easy to learn and runs efficiently on the server side 2017 Gabriel Fung 11
12 Important Note We will cover the very basic elements of PHP that would be just enough for running our game: Read data from the clients Connect to MariaDB and read/write data from/to it. Send data to the clients 2017 Gabriel Fung 12
13 Basic PHP Syntax The default file extension for PHP files is ".php". A PHP script starts with <?php and ends with?>: <?php?> A PHP can contain PHP codes and any other text. <?php?> <?php..?> 2017 Gabriel Fung 13
14 PHP Variables Similar to JavaScript, PHP is dynamic typing, i.e., you do not need to define the variable data types. A variable is denoted by "$". <?php $x = 5; $y = 6; $z = $x+$y; $a = "Hello"; $b = array();?> 2017 Gabriel Fung 14
15 PHP Arrays There are many ways to create arrays: Assign values during initialization: $cars = array("volvo","bmw"); $nameandage = array("peter"=>35,"ben"=>37); Assign values after initialization: $cars = array(); $cars[0]="volvo"; $cars[1]="bmw"; $nameandage = array(); $nameandage['peter']=35; $nameandage ['Ben']=37; 2017 Gabriel Fung 15
16 PHP and Database Communication To communicate with MariaDB using PHP, there are two modules: Mysql module It uses the concept of "function" to develop Mysqli module i statnds for improvement It uses the concept of OO to develop (so it supports OOP object oriented programming. We will talk about OOP later. According to official PHP, MySQLi is a preferred option Gabriel Fung 16
17 Object Oriented vs. Procedural Almost all mysqli methods offer you two way to use it: Object Oriented Style Procedural Style Both their functionalities are identical, except the syntax are different. We will use Object Oriented Style whenever possible in this course as it is usually more robust 2017 Gabriel Fung 17
18 Connect to Database Before we can access data from MariaDB, we must connect to it first. Create a file called upload_score.php: <?php $con = new mysqli(" ", "username","password", "database"); if ($con->connect_error){ // Check connection } echo "Failed to connect to MySQL: ".$con->connect_error; $con->close(); // close the connection is good practice?> 2017 Gabriel Fung 18
19 Connect to Database (cont d) Open a browser, type the URL to make sure the connection is OK (no message means OK). If you use your own server, the address should be: If you use SEEM server, the address should be: Gabriel Fung 19
20 Read Data From Client To read the POST data from client, we use a system variable called $_POST. Suppose in our game.js, we have: data: {"name":"mary", "score":100}, Then the above JSON data is stored in the system variable $_POST, so that: $_POST["name"] stored Mary $_POST["score"] stored Gabriel Fung 20
21 Insert Data Into Database To insert data, we use the method query(). Revise upload_score.php: <?php $con = new mysqli(" ", "username","password", "database"); $score = $_POST["score"]; $status = $con->query("insert INTO player_ score (score) VALUES ($score)"); if(!$status){ // make sure the insert is successful } echo ("Error in inserting the score"); $con->close(); // close the connection is good practice?> 2017 Gabriel Fung 21
22 Insert Data Into Database (cont d) In case you are inserting string into database, please make sure you encapsulate the string using the method real_escape_string ; otherwise there will be serious of security problem: Example: $_POST["name"] = $con-> real_escape_string($_post["name"]); 2017 Gabriel Fung 22
23 Putting All Together Go back to game.js, make sure you type the URL correctly. You should get the following screen: 2017 Gabriel Fung 23
24 Ranking Page The page ranking.html shows the ranking of the people who played the game. Outline: In the server, create a page get_scores.php : Get the top 10 scores from the table player_score and order by the column score in descending order: SELECT * FROM player_score ORDER BY score desc LIMIT 10 ; In ranking.js, use AJAX to connect to get_scores.php, get the scores and display the results 2017 Gabriel Fung 24
25 Get Data From Database One very handy method is to retrieve all data and put into an associative array, then return to the user as JSON (if the data size is small). In get_scores.php: <?php $con = ; $result = $con->query("select * FROM "); $con->close(); // close the connection is good practice $data = $result->fetch_array(mysqli_assoc); echo json_encode($data);?> 2017 Gabriel Fung 25
26 Get Data From Database (cont d) In ranking.js: var rankingjs = { init: function() { } $.ajax({ }); type: 'GET', datatype: 'json', url: success: function(data){ } console.log(data); for(var i=0; i<data.length; i++){ } console.log(data[i]['time'] + ": " + data[i]['score']); 2017 Gabriel Fung 26
27 Ranking Page Detail An Exercise For You For the details of the ranking.html and ranking.js, they will be left as an exercise for you Gabriel Fung 27
28 Enhancement The following enhancement is left as an exercise for you. Now, there is no way to identify who submitted the score. Having a name column in the player_score table is great. Ask the player to type his/her name using a text field once the game is completed: <input id= player_name type= text name= player_name > In jquery, you can get the value of this text field by: var playername = $( #player_name ).val(); So you can submit this information to the server: data: { score : currentscore, name : $( #player_name ).val()} 2017 Gabriel Fung 28
29 What You Learned Create MariaDB databases, tables and users Interact with MariaDB using PHP Basic client-server programming 2017 Gabriel Fung 29
SEEM4570 System Design and Implementation. Lecture 5 Loading
SEEM4570 System Design and Implementation Lecture 5 Loading Loading Page When you clicked different pages, it may show some flicks. The reason is it takes time to load CSS and render the content. You can
More informationSEEM4570 System Design and Implementation. Lecture 4 AJAX and Demo
SEEM4570 System Design and Implementation Lecture 4 AJAX and Demo Prerequisite Please follow lecture note 3 up to P. 19 to set up your app environment. We build everything on top of it. In index.html,
More informationStatic Webpage Development
Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction
More informationphp Mr. Amit Patel Hypertext Preprocessor Dept. of I.T.
php Hypertext Preprocessor Mr. Amit Patel Dept. of I.T..com.com PHP files can contain text, HTML, JavaScript code, and PHP code PHP code are executed on the server, and the result is returned to the browser
More informationWeb Engineering (Lecture 08) WAMP
Web Engineering (Lecture 08) WAMP By: Mr. Sadiq Shah Lecturer (CS) Class BS(IT)-6 th semester WAMP WAMP is all-in-one Apache/MySQL/PHP package WAMP stands for: i) Windows ii) iii) iv) Apache MySql PHP
More informationAmpliación de Bases de Datos
1. Introduction to In this course, we are going to use: Apache web server PHP installed as a module for Apache Database management system MySQL and the web application PHPMyAdmin to administrate it. It
More informationSEEM4570 System Design and Implementation. Lecture 0 Introduction
SEEM4570 System Design and Implementation Lecture 0 Introduction Course Information Instructor Dr. Gabriel Fung Email: pcfung@se.cuhk.edu.hk Office: ERB610 Tutors: Yuewen Cao ywcao@se.cuhk.edu.hk Xu Li
More informationPrincess Nourah bint Abdulrahman University. Computer Sciences Department
Princess Nourah bint Abdulrahman University Computer Sciences Department 1 And use http://www.w3schools.com/ PHP Part 1 Objectives Introduction to PHP Computer Sciences Department 4 Introduction HTML CSS
More informationJquery Ajax Json Php Mysql Data Entry Example
Jquery Ajax Json Php Mysql Data Entry Example Then add required assets in head which are jquery library, datatable js library and css By ajax api we can fetch json the data from employee-grid-data.php.
More informationPHP Development - Introduction
PHP Development - Introduction Php Hypertext Processor PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports many
More informationWeb development using PHP & MySQL with HTML5, CSS, JavaScript
Web development using PHP & MySQL with HTML5, CSS, JavaScript Static Webpage Development Introduction to web Browser Website Webpage Content of webpage Static vs dynamic webpage Technologies to create
More informationDATABASE SYSTEMS. Introduction to web programming. Database Systems Course, 2016
DATABASE SYSTEMS Introduction to web programming Database Systems Course, 2016 AGENDA FOR TODAY Client side programming HTML CSS Javascript Server side programming: PHP Installing a local web-server Basic
More informationSoftware. Full Stack Web Development Intensive, Fall Lecture Topics. Class Sessions. Grading
Full Stack Web Development Intensive, Fall 2017 There are two main objectives to this course. The first is learning how to build websites / web applications and the assets that compose them. The second
More informationWhat is PHP? [1] Figure 1 [1]
PHP What is PHP? [1] PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is free to download and use Figure
More informationPHP and MySgi. John Wiley & Sons, Inc. 24-HOUR TRAINER. Andrea Tarr WILEY
PHP and MySgi 24-HOUR TRAINER Andrea Tarr WILEY John Wiley & Sons, Inc. INTRODUCTION xvii LESSON 1: SETTING UP YOUR WORKSPACE 3 Installing XAMPP 3 Installing XAMPP on a Windows PC 4 Installing XAMPP on
More informationHello everyone! Page 1. Your folder should look like this. To start with Run your XAMPP app and start your Apache and MySQL.
Hello everyone! Welcome to our PHP + MySQL (Easy to learn) E.T.L. free online course Hope you have installed your XAMPP? And you have created your forms inside the studio file in the htdocs folder using
More informationContents. Demos folder: Demos\14-Ajax. 1. Overview of Ajax. 2. Using Ajax directly. 3. jquery and Ajax. 4. Consuming RESTful services
Ajax Contents 1. Overview of Ajax 2. Using Ajax directly 3. jquery and Ajax 4. Consuming RESTful services Demos folder: Demos\14-Ajax 2 1. Overview of Ajax What is Ajax? Traditional Web applications Ajax
More informationMultimedia im Netz (Online Multimedia) Wintersemester 2014/15. Übung 11 (Hauptfach)
Multimedia im Netz (Online Multimedia) Wintersemester 2014/15 Übung 11 (Hauptfach) Ludwig-Maximilians-Universität München Online Multimedia WS 2014/15 - Übung 11-1 Today s Agenda Announcements & miscellaneous
More informationPHP 5 Introduction. What You Should Already Know. What is PHP? What is a PHP File? What Can PHP Do? Why PHP?
PHP 5 Introduction What You Should Already Know you should have a basic understanding of the following: HTML CSS What is PHP? PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open
More informationPHP. MIT 6.470, IAP 2010 Yafim Landa
PHP MIT 6.470, IAP 2010 Yafim Landa (landa@mit.edu) LAMP We ll use Linux, Apache, MySQL, and PHP for this course There are alternatives Windows with IIS and ASP Java with Tomcat Other database systems
More informationMultimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 07 Minor Subject
Multimedia im Netz Online Multimedia Winter semester 2015/16 Tutorial 07 Minor Subject Ludwig-Maximilians-Universität München Online Multimedia WS 2015/16 - Tutorial 06 (NF) - 1 Today s Agenda Recap AJAX
More informationWhat is SQL? Toolkit for this guide. Learning SQL Using phpmyadmin
http://www.php-editors.com/articles/sql_phpmyadmin.php 1 of 8 Members Login User Name: Article: Learning SQL using phpmyadmin Password: Remember Me? register now! Main Menu PHP Tools PHP Help Request PHP
More informationThe MANUAL. 1 P a g e
The MANUAL 1 P a g e http://wasimrlis.blogspot.in https://coprofessionals.wordpress.com 2 P a g e Guided to search tools are used to help library users to find the resources they are seeking. Originally
More informationPHP Online Training. PHP Online TrainingCourse Duration - 45 Days. Call us: HTML
PHP Online Training PHP is a server-side scripting language designed for web development but also used as a generalpurpose programming language. PHP is now installed on more than 244 million websites and
More informationPHP & MySQL For Dummies, 4th Edition PDF
PHP & MySQL For Dummies, 4th Edition PDF Here's what Web designers need to know to create dynamic, database-driven Web sites To be on the cutting edge, Web sites need to serve up HTML, CSS, and products
More informationOOP with PHP. Roman Bednarik
Roman Bednarik rbednari@cs.joensuu.fi lecture outline What is PHP Why use OOP with PHP OOP with PHP Advanced topics on OOP and PHP OOP with PHP what is PHP? - development PHP = PHP Hypertext Preprocessor
More informationCSCE 120: Learning To Code
CSCE 120: Learning To Code Module 11.0: Consuming Data I Introduction to Ajax This module is designed to familiarize you with web services and web APIs and how to connect to such services and consume and
More informationWebomania Solutions Pvt. Ltd. 2017
OpenDocMan Webomania Solutions Pvt. Ltd. 2017 OpenDocMan stands for Open Source Document Management System(DMS). OpenDocMan is totally free, web-based programming written in PHPdesigned to comply with
More informationMul$media im Netz (Online Mul$media) Wintersemester 2014/15. Übung 06 (Haup-ach)
Mul$media im Netz (Online Mul$media) Wintersemester 2014/15 Übung 06 (Haup-ach) Ludwig- Maximilians- Universität München Online Mul6media WS 2014/15 - Übung 06-1 Today s Agenda Flashback: 5 th Tutorial
More informationSyllabus INFO-GB Design and Development of Web and Mobile Applications (Especially for Start Ups)
Syllabus INFO-GB-3322 Design and Development of Web and Mobile Applications (Especially for Start Ups) Fall 2015 Stern School of Business Norman White, KMEC 8-88 Email: nwhite@stern.nyu.edu Phone: 212-998
More informationPart II IT Infrastructure (Computer Software)
Part II IT Infrastructure (Computer Software) DCS COMSATS Institute of Information Technology Rab Nawaz Jadoon Assistant Professor COMSATS IIT, Abbottabad Pakistan Management Information Systems (MIS)
More informationSEEM4570 System Design and Implementation. Lecture 11 From Design to Implementation
SEEM4570 System Design and Implementation Lecture 11 From Design to Implementation Introduction We learned programming and we learned UML, but separately. Now, the question is how can we translate a design
More informationwelcome to BOILERCAMP HOW TO WEB DEV
welcome to BOILERCAMP HOW TO WEB DEV Introduction / Project Overview The Plan Personal Website/Blog Schedule Introduction / Project Overview HTML / CSS Client-side JavaScript Lunch Node.js / Express.js
More informationNo Schema Type For Mysql Type Date Drupal
No Schema Type For Mysql Type Date Drupal I made a custom entity with a date field stored as datetime in mysql. It is important that your data is represented, as documented for your data type, e.g. a date
More informationSchool of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University
School of Information and Computer Technology Sirindhorn International Institute of Technology Thammasat University ITS351 Database Programming Laboratory Laboratory #1: HTML & CSS Objective: - To introduce
More informationCleveland State University Department of Electrical and Computer Engineering. CIS 408: Internet Computing
Cleveland State University Department of Electrical and Computer Engineering CIS 408: Internet Computing Catalog Description: CIS 408 Internet Computing (-0-) Pre-requisite: CIS 265 World-Wide Web is now
More informationPHP for PL/SQL Developers. Lewis Cunningham JP Morgan Chase
PHP for PL/SQL Developers Lewis Cunningham JP Morgan Chase 1 What is PHP? PHP is a HTML pre-processor PHP allows you to generate HTML dynamically PHP is a scripting language usable on the web, the server
More informationMediaWiki Tutorial. Step 1:Install MediaWiki. Download files
MediaWiki Tutorial Step 1:Install MediaWiki Download files MediaWiki requires that a web server and a MySQL DBMS and PHP scripted are installed prior to use. It is recommended for first time users to install
More informationIntroduction to Databases and SQL
Introduction to Databases and SQL Files vs Databases In the last chapter you learned how your PHP scripts can use external files to store and retrieve data. Although files do a great job in many circumstances,
More informationCENG 256 Internet Programming Draft
CENG 256 Internet Programming Draft Note: This draft is for discussion. can be added later. It does not contain the regular boilerplate text for outlines, which COURSE OUTLINE ACADEMIC YEAR 2014/2015 Course
More informationChapter 7:- PHP. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.
Chapter 7:- PHP Compiled By:- Assistant Professor, SVBIT. Outline Starting to script on server side, Arrays, Function and forms, Advance PHP Databases:-Basic command with PHP examples, Connection to server,
More informationBasic PHP. Lecture 19. Robb T. Koether. Hampden-Sydney College. Mon, Feb 26, 2108
Basic PHP Lecture 19 Robb T. Koether Hampden-Sydney College Mon, Feb 26, 2108 Robb T. Koether (Hampden-Sydney College) Basic PHP Mon, Feb 26, 2108 1 / 27 1 PHP 2 The echo Statement 3 Variables 4 Operators
More informationCSC 443: Web Programming
1 CSC 443: Web Programming Haidar Harmanani Department of Computer Science and Mathematics Lebanese American University Byblos, 1401 2010 Lebanon Today 2 Course information Course Objectives A Tiny assignment
More informationCSCB20 Week 8. Introduction to Database and Web Application Programming. Anna Bretscher* Winter 2017
CSCB20 Week 8 Introduction to Database and Web Application Programming Anna Bretscher* Winter 2017 *thanks to Alan Rosselet for providing the slides these are adapted from. Web Programming We have seen
More informationWeb Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen
https://www.halvorsen.blog Web Programming HTML CSS JavaScript Step by step Exercises Hans-Petter Halvorsen History of the Web Internet (1960s) World Wide Web - WWW (1991) First Web Browser - Netscape,
More informationLet's Play... Try to name the databases described on the following slides...
Database Software Let's Play... Try to name the databases described on the following slides... "World's most popular" Free relational database system (RDBMS) that... the "M" in "LAMP" and "XAMP" stacks
More informationPersonalized Movie Database System
Grand Valley State University ScholarWorks@GVSU Technical Library School of Computing and Information Systems 2015 Personalized Movie Database System Jayaprakash Garaga Grand Valley State University Follow
More informationBasics of Web. First published on 3 July 2012 This is the 7 h Revised edition
First published on 3 July 2012 This is the 7 h Revised edition Updated on: 03 August 2015 DISCLAIMER The data in the tutorials is supposed to be one for reference. We have made sure that maximum errors
More informationCourse Topics. The Three-Tier Architecture. Example 1: Airline reservations. IT360: Applied Database Systems. Introduction to PHP
Course Topics IT360: Applied Database Systems Introduction to PHP Database design Relational model SQL Normalization PHP MySQL Database administration Transaction Processing Data Storage and Indexing The
More informationThe PHP language. Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web
Web programming The PHP language Our objective Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web Access data inserted by users into HTML forms Interact
More informationLet's Look Back. We talked about how to create a form in HTML. Forms are one way to interact with users
Introduction to PHP Let's Look Back We talked about how to create a form in HTML Forms are one way to interact with users Users can enter information into forms which can be used by you (programmer) We
More informationWeb Programming Paper Solution (Chapter wise)
Introduction to web technology Three tier/ n-tier architecture of web multitier architecture (often referred to as n-tier architecture) is a client server architecture in which presentation, application
More informationIERG 4210 Tutorial 07. Securing web page (I): login page and admin user authentication Shizhan Zhu
IERG 4210 Tutorial 07 Securing web page (I): login page and admin user authentication Shizhan Zhu Content for today Phase 4 preview From now please pay attention to the security issue of your website This
More informationServer side basics CS380
1 Server side basics URLs and web servers 2 http://server/path/file Usually when you type a URL in your browser: Your computer looks up the server's IP address using DNS Your browser connects to that IP
More informationSample Copy. Not For Distribution
PHP Mysql For Advanced Learning i First published in India with the support of EDUCREATION PUBLISHING RZ 94, Sector - 6, Dwarka, New Delhi - 110075 Shubham Vihar, Mangla, Bilaspur, Chhattisgarh - 495001
More informationIN Development in Platform Ecosystems Lecture 3: json, ajax, APIs
IN5320 - Development in Platform Ecosystems Lecture 3: json, ajax, APIs 3rd of September 2018 Department of Informatics, University of Oslo Magnus Li - magl@ifi.uio.no 1 Today s lecture 1. Objects and
More informationReview. Fundamentals of Website Development. Web Extensions Server side & Where is your JOB? The Department of Computer Science 11/30/2015
Fundamentals of Website Development CSC 2320, Fall 2015 The Department of Computer Science Review Web Extensions Server side & Where is your JOB? 1 In this chapter Dynamic pages programming Database Others
More informationCS Final Exam Review Suggestions - Spring 2018
CS 328 - Final Exam Review Suggestions p. 1 CS 328 - Final Exam Review Suggestions - Spring 2018 last modified: 2018-05-03 Based on suggestions from Prof. Deb Pires from UCLA: Because of the research-supported
More informationCourse Syllabus. Course Title. Who should attend? Course Description. PHP ( Level 1 (
Course Title PHP ( Level 1 ( Course Description PHP '' Hypertext Preprocessor" is the most famous server-side programming language in the world. It is used to create a dynamic website and it supports many
More informationBirkbeck (University of London)
Birkbeck (University of London) MSc Examination Department of Computer Science and Information Systems Internet and Web Technologies (COIY063H7) 15 Credits Date of Examination: 20 May 2015 Duration of
More informationCS50 Quiz Review. November 13, 2017
CS50 Quiz Review November 13, 2017 Info http://docs.cs50.net/2017/fall/quiz/about.html 48-hour window in which to take the quiz. You should require much less than that; expect an appropriately-scaled down
More informationMySQL: Access Via PHP
MySQL: Access Via PHP CISC 282 November 15, 2017 phpmyadmin: Login http://cisc282.caslab. queensu.ca/phpmyadmin/ Use your NetID and CISC 282 password to log in 2 phpmyadmin: Select DB Clicking on this
More informationCSCI 6312 Advanced Internet Programming
CSCI 6312 Advanced Internet Programming Section 01, Spring 2018, W, 5:55pm - 8:25pm Instructor: Emmett Tomai Office: ENGR 3.2100 Phone: 665-7229 Email: emmett.tomai@utrgv.edu Office hours: W 1 3pm, TR
More informationPHP WITH ANGULAR CURRICULUM. What you will Be Able to Achieve During This Course
PHP WITH ANGULAR CURRICULUM What you will Be Able to Achieve During This Course This course will enable you to build real-world, dynamic web sites. If you've built websites using plain HTML, you realize
More informationIntroduction. Server-side Techniques. Introduction. 2 modes in the PHP processor:
Introduction Server-side Techniques PHP Hypertext Processor A very popular server side language on web Code embedded directly into HTML documents http://hk2.php.net/downloads.php Features Free, open source
More informationNow go to bash and type the command ls to list files. The unix command unzip <filename> unzips a file.
wrangling data unix terminal and filesystem Grab data-examples.zip from top of lecture 4 notes and upload to main directory on c9.io. (No need to unzip yet.) Now go to bash and type the command ls to list
More informationThe OWASP Foundation
Application Bug Chaining July 2009 Mark Piper User Catalyst IT Ltd. markp@catalyst.net.nz Copyright The Foundation Permission is granted to copy, distribute and/or modify this document under the terms
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Review Content Management (cont.) Replace all txt files with database tables Expand PHP/MySQL SELECT, UPDATE & DELETE queries Permit full editorial control over content
More informationComputer Science Department
California State University, Dominguez Hills Computer Science Department Syllabus CS255 Dynamic Web Programming Dr. Jason Isaac Halasa Office Hours: MW 12:45-2:30 and 3:45-5:30 and by Appointment Office
More informationMore Programming Languages. Spring 2014 Carola Wenk
More Programming Languages Spring 2014 Carola Wenk Web Scripting We ve seen how (relatively) easy it is to create a new language. This suggests that languages can actually be application-specific. Let
More informationGet in Touch Module 1 - Core PHP XHTML
PHP/MYSQL (Basic + Advanced) Web Technologies Module 1 - Core PHP XHTML What is HTML? Use of HTML. Difference between HTML, XHTML and DHTML. Basic HTML tags. Creating Forms with HTML. Understanding Web
More informationMarketplace. User Guide (for Tenants) Date
Date 2018-02-28 Contents Contents 1 What Is Marketplace?... 1 2 How Can I View the Marketplace Product and Store Information?... 2 3 How Can I Use Products Provided in Marketplace?... 5 4 How Can I Manage
More informationLecture 4. Wednesday, January 27, 2016
Lecture 4 Wednesday, January 27, 2016 PHP through Apache Last week, we talked about building command line scripts This week, we will transition to building scripts that will run through the web server,
More informationWeb Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel
Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel Introduction: PHP (Hypertext Preprocessor) was invented by Rasmus Lerdorf in 1994. First it was known as Personal Home Page. Later
More informationUser Interaction: jquery
User Interaction: jquery Assoc. Professor Donald J. Patterson INF 133 Fall 2012 1 jquery A JavaScript Library Cross-browser Free (beer & speech) It supports manipulating HTML elements (DOM) animations
More informationModule 6 Node.js and Socket.IO
Module 6 Node.js and Socket.IO Module 6 Contains 2 components Individual Assignment and Group Assignment Both are due on Wednesday November 15 th Read the WIKI before starting Portions of today s slides
More informationTutorials Php Y Jquery Mysql Database Without Refreshing Code
Tutorials Php Y Jquery Mysql Database Without Refreshing Code Code for Pagination using Php and JQuery. This code for pagination in PHP and MySql gets. Tutorial focused on Programming, Jquery, Ajax, PHP,
More informationCreate-A-Page Design Documentation
Create-A-Page Design Documentation Group 9 C r e a t e - A - P a g e This document contains a description of all development tools utilized by Create-A-Page, as well as sequence diagrams, the entity-relationship
More informationCore PHP. PHP output mechanism. Introducing. Language basics. Installing & Configuring PHP. Introducing of PHP keywords. Operators & expressions
Core PHP Introducing The origin of PHP PHP for web Development & Web Application PHP History Features of PHP How PHP works with the server What is server & how it works Installing & Configuring PHP PHP
More informationWeb Application Security
Web Application Security Rajendra Kachhwaha rajendra1983@gmail.com September 23, 2015 Lecture 13: 1/ 18 Outline Introduction to AJAX: 1 What is AJAX 2 Why & When use AJAX 3 What is an AJAX Web Application
More informationUniversity College of Southeast Norway ASP.NET. Web Programming. Hans-Petter Halvorsen,
University College of Southeast Norway Hans-Petter Halvorsen, 2016.11.01 ASP.NET Web Programming http://home.hit.no/~hansha Table of Contents 1 Introduction... 4 1.1 Visual Studio... 4 1.2 C#... 5 1.3.NET
More informationPHP & MySQL In Easy Steps Ebooks Free
PHP & MySQL In Easy Steps Ebooks Free PHP and MySQL in easy steps will teach the user to write PHP server-side scripts and how to make MySQL database queries. It has an easy-to-follow style that will appeal
More informationHow To Start Mysql Use Linux Command Line Client In Xampp
How To Start Mysql Use Linux Command Line Client In Xampp It also assumes that you're familiar with the MySQL command-line client and that you And since both Amazon and Bitnami have a free tier, you can
More informationweek8 Tommy MacWilliam week8 October 31, 2011
tmacwilliam@cs50.net October 31, 2011 Announcements pset5: returned final project pre-proposals due Monday 11/7 http://cs50.net/projects/project.pdf CS50 seminars: http://wiki.cs50.net/seminars Today common
More informationClient Side Scripting. The Bookshop
Client Side Scripting The Bookshop Introduction This assignment is a part of three assignments related to the bookshop website. Currently design part (using HTML and CSS) and server side script (using
More informationPHP / MYSQL DURATION: 2 MONTHS
PHP / MYSQL HTML Introduction of Web Technology History of HTML HTML Editors HTML Doctypes HTML Heads and Basics HTML Comments HTML Formatting HTML Fonts, styles HTML links and images HTML Blocks and Layout
More informationLecture 3: Web Servers / PHP and Apache. CS 383 Web Development II Monday, January 29, 2018
Lecture 3: Web Servers / PHP and Apache CS 383 Web Development II Monday, January 29, 2018 Server Configuration One of the most common configurations of servers meant for web development is called a LAMP
More informationIC PHP Developer Fundamentals Program Overview
IC PHP Developer Fundamentals Program Overview New Certification Program by What is PHP PHP is a recursive backronym of: PHP Hypertext Preprocessor Scripting language for web development. Server-side,
More informationCS101 Lecture 04: How the Web Works Publishing Web pages. What You ll Learn Today
CS101 Lecture 04: How the Web Works Publishing Web pages Aaron Stevens 28 January 2011 1 What You ll Learn Today How does the WWW work? What are web servers, anyway? So I got some HTML pages and stuff.
More informationPhp And Mysql Manual Simple Yet Powerful Web Programming
Php And Mysql Manual Simple Yet Powerful Web Programming It allows you to create anything from a simpledownload EBOOK. Beginning PHP 6, Apache, MySQL 6 Web Development Free Ebook Offering a gentle learning
More informationUse of PHP for DB Connection. Middle and Information Tier. Middle and Information Tier
Use of PHP for DB Connection 1 2 Middle and Information Tier PHP: built in library functions for interfacing with the mysql database management system $id = mysqli_connect(string hostname, string username,
More informationSSC - Web applications and development Introduction and Java Servlet (I)
SSC - Web applications and development Introduction and Java Servlet (I) Shan He School for Computational Science University of Birmingham Module 06-19321: SSC Outline Outline of Topics What will we learn
More informationDynamic Select Option Menu Using Ajax And PHP. Wednesday, Mar 11, 2015
Page 1 of 7 TalkersCode.com HTML CSS JavaScript jquery PHP MySQL Web Development Tutorials Dynamic Select Option Menu Using Ajax And PHP. Wednesday, Mar 11, 2015 Share 4 Stum Tags:- Ajax jquery PHP MySQL
More informationBasic PHP Lecture 17
Basic PHP Lecture 17 Robb T. Koether Hampden-Sydney College Fri, Feb 24, 2012 Robb T. Koether (Hampden-Sydney College) Basic PHPLecture 17 Fri, Feb 24, 2012 1 / 30 1 PHP 2 Basic PHP 3 The Extended echo
More informationPHP: Software Training Employability Programme
PHP: Software Training Employability Programme Duration: 300Hours Prerequisites There are no Pre-requisites for this course. A Basic Knowledge of Programming Language is Advantageous. Basic Foundation
More informationMysql Tutorial Create Database Username Password Through Phpmyadmin
Mysql Tutorial Create Database Username Password Through Phpmyadmin Convert plain text to MD5 Hash and edit your MySQL Database. Every WordPress blog uses a MySQL Database which can be accessed through
More informationC H A P T E R 1. Drilling Down on PHP
C H A P T E R 1 Setting Up the PHP Development Environment Getting a working development environment put together can be intimidating, especially for the absolute beginner. To follow along with the project
More informationQuiz 1 Review Session. November 17th, 2014
Quiz 1 Review Session November 17th, 2014 Topics (non-exhaustive) pointers linked lists hash tables trees tries stacks queues TCP/IP HTTP HTML CSS PHP MVC SQL HTTP statuses DOM JavaScript jquery Ajax security...
More informationThis course is designed for web developers that want to learn HTML5, CSS3, JavaScript and jquery.
HTML5/CSS3/JavaScript Programming Course Summary Description This class is designed for students that have experience with basic HTML concepts that wish to learn about HTML Version 5, Cascading Style Sheets
More informationLearn Web Development CodersTrust Polska course outline. Hello CodersTrust! Unit 1. HTML Structuring the Web Prerequisites Learning pathway.
Learn Web Development CodersTrust Polska course outline Hello CodersTrust! Syllabus Communication Publishing your work Course timeframe Kick off Unit 1 Getting started with the Web Installing basic software
More information