Web Engineering (Lecture 08) WAMP

Similar documents
PHP 5 Introduction. What You Should Already Know. What is PHP? What is a PHP File? What Can PHP Do? Why PHP?

Introduction of PHP Created By: Umar Farooque Khan

What is PHP? [1] Figure 1 [1]

Chapter 7:- PHP. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.

Princess Nourah bint Abdulrahman University. Computer Sciences Department

Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel

PHP by Pearson Education, Inc. All Rights Reserved.

PHP. Introduction. PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server

Let's Look Back. We talked about how to create a form in HTML. Forms are one way to interact with users

php Mr. Amit Patel Hypertext Preprocessor Dept. of I.T.

CS 377 Database Systems. Li Xiong Department of Mathematics and Computer Science Emory University

Lecture 7 PHP Basics. Web Engineering CC 552

PHP. Interactive Web Systems

PHP 1. Introduction Temasek Polytechnic

INTERNET PROGRAMMING. Software Engineering Branch / 4 th Class Computer Engineering Department University of Technology

Web Engineering (Lecture 09) PHP part I

PHP Development - Introduction

PHP Personal Home Page PHP: Hypertext Preprocessor (Lecture 35-37)

Inf 202 Introduction to Data and Databases (Spring 2010)

The PHP language. Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web

Guide for Building Web Application Using PHP and Mysql

Lecture 12. PHP. cp476 PHP

Databases on the web

// Introducing PHP. Overview of Dynamic Sites with PHP and Top 5 Best Practices. WebTechNY September 10 th, 2008

Web Scripting using PHP

WINTER. Web Development. Template. PHP Variables and Constants. Lecture

SEEM4570 System Design and Implementation. Lecture 6 Game Part II

Server side basics CS380

CSCB20 Week 8. Introduction to Database and Web Application Programming. Anna Bretscher* Winter 2017

PHP and MySQL for Dynamic Web Sites. Intro Ed Crowley

What is WAMP5? Top Next

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering. Fifth Semester. Subject: Web Programming

Introduction to Web Development

PHP Hypertext Preprocessor

B. V. Patel Institute of BMC & IT 2014

COMP284 Scripting Languages Lecture 14: JavaScript (Part 1) Handouts

Web Programming Paper Solution (Chapter wise)

ISSN: [Kumar * et al., 7(3): March, 2018] Impact Factor: 5.164

Web Scraping with Python

Important Points about PHP:

Web Engineering (Lecture 06) JavaScript part 2

Course Topics. The Three-Tier Architecture. Example 1: Airline reservations. IT360: Applied Database Systems. Introduction to PHP

Python Input, output and variables. Lecture 23 COMPSCI111/111G SS 2018

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

Course Syllabus. Course Title. Who should attend? Course Description. PHP ( Level 1 (

Cleveland State University Department of Electrical and Computer Engineering. CIS 408: Internet Computing

More Programming Languages. Spring 2014 Carola Wenk

URLs and web servers. Server side basics. URLs and web servers (cont.) URLs and web servers (cont.) Usually when you type a URL in your browser:

Ch04 JavaServer Pages (JSP)

CS6501 IP Unit IV Page 1

PHP BASICS BY ALL-TECH SYSTEMS & CO

CS 11 java track: lecture 1

CSC Web Programming. Introduction to JavaScript

Agenda. 1. Brief History of PHP. 2. Getting started. 3. Examples

PHP Introduction. Some info on MySQL which we will cover in the next workshop...

Web Application Performance Testing with MERCURY LOADRUNNER

SCU SEEDs Workshop Angela Musurlian

JavaScript CS 4640 Programming Languages for Web Applications

Part I. Web Technologies for Interactive Multimedia

Programming In Java Prof. Debasis Samanta Department of Computer Science and Engineering Indian Institute of Technology, Kharagpur

Web Scripting using PHP

COMP284 Scripting Languages Lecture 9: PHP (Part 1) Handouts

CGS 3066: Spring 2015 JavaScript Reference

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

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

Ampliación de Bases de Datos

DAVID M. KROENKE and DAVID J. AUER. DATABASE CONCEPTS, 7 th Edition. Chapter Seven. Database Processing Applications. Chapter Objectives

Lecture (05) PHP 01. By: Dr. Ahmed ElShafee. Dr. Ahmed ElShafee, ACU : Spring 2016, Web Programming

Python Input, output and variables

INTERNET PROGRAMMING XML

Understanding main() function Input/Output Streams

Global Servers. The new masters

Python Input, output and variables. Lecture 22 COMPSCI111/111G SS 2016

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

Lecture 14. Introduction to JavaScript. Mr. Mubashir Ali Lecturer (Dept. of Computer Science)

OOP with PHP. Roman Bednarik

JavaScript Functions, Objects and Array

3. WWW and HTTP. Fig.3.1 Architecture of WWW

CS Homework 6. Deadline. Purpose. How to submit. Important notes. Problem 1. Spring CS Homework 6 p. 1

Introduction. Server-side Techniques. Introduction. 2 modes in the PHP processor:

PHP. MIT 6.470, IAP 2010 Yafim Landa

28-Nov CSCI 2132 Software Development Lecture 33: Shell Scripting. 26 Shell Scripting. Faculty of Computer Science, Dalhousie University

UFCEKG Lecture 4 Server Side Scripting & PHP

Today. o main function. o cout object. o Allocate space for data to be used in the program. o The data can be changed

Chapter 11 Program Development and Programming Languages

ELECTRONIC LOGBOOK BY USING THE HYPERTEXT PREPROCESSOR

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

AN INTRODUCTION TO PHP

Basic PHP. Lecture 19. Robb T. Koether. Hampden-Sydney College. Mon, Feb 26, 2108

CS Exam 1 Review Suggestions - Spring 2017

Manju Muralidharan Priya. CS4PM Web Aesthetics and Development WEEK 11

Lab 4: Basic PHP Tutorial, Part 2

Notes. Submit homework on Blackboard The first homework deadline is the end of Sunday, Feb 11 th. Final slides have 'Spring 2018' in chapter title

CMS and e-commerce Solutions. version 1.0. Please, visit us at: or contact directly by

CSE373: Data Structure & Algorithms Lecture 23: Programming Languages. Aaron Bauer Winter 2014

Sample Copy. Not For Distribution

Lecture 3: Web Servers / PHP and Apache. CS 383 Web Development II Monday, January 29, 2018

Chapter 3 Web Design & HTML. Web Design Class Mrs. Johnson

COMP284 Scripting Languages Lecture 11: PHP (Part 3) Handouts

CSc Introduction to Computing

Transcription:

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 Wamp contains Apache: wampapache PHP MySQL database: Wampmysql

Server-side scripting-1 Server-side scripting is usually used to provide interactive web sites that interface to databases or other data stores. This is different from client-side scripting where scripts are run by the web browser. From a security point of view, server-side scripts are never visible to the browser as these scripts are executed on the web server.

Server-side scripting-2 Server-side scripting are used to create dynamic web pages. PHP is a widely-used, free, and efficient alternative to competitors such as Microsoft's ASP. PHP is a widely-used, open source scripting language Web server is needed to run server side scripts. Example of web servers are i.e Apache, IIS etc.

PHP Introduction PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language PHP scripts are executed on the server PHP supports many databases (MySQL, Oracle etc.) PHP is an open source software

PHP Introduction 2 PHP files can contain text, HTML tags and scripts PHP files are returned to the browser as plain HTML PHP files have a file extension of ".php", ".php3", or ".phtml PHP is free to download and use

How to install PHP install a web server install PHP install a database, such as MySQL WAMP is alternative to all the above

3-tier Architecture 3-tier Architecture Client Web server Database

PHP Advantages PHP runs on different platforms (Windows, Linux, Unix, etc.) PHP is compatible with almost all servers used today (Apache, IIS, etc.) PHP is easy to learn and runs efficiently on the server side PHP is open source

PHP Syntax A PHP scripting block starts with <?php and ends with?> For shorthand support you can start a scripting block with <? and end with?>. It is recommend to use the standard form (<?php and?>) rather than the shorthand form. A PHP scripting block can be placed anywhere in the document.

PHP Example <html> <body> <?php echo My First Program"; print BSIT-6 ;?> </body> </html>

PHP Echo statement In PHP there are two basic ways to get output: echo and print. The echo statement can be used with or without parentheses: echo or echo(). <?php echo "<h1>php is Fun!</h1>"; echo "Hello world!<br>"; echo "This ", "string ", "was ", "made ", "with multiple parameters.";?>

PHP print statement The print statement can be used with or without parentheses: print or print(). <?php print "<h2>php is Fun!</h2>"; print "Hello world!<br>"; print "I'm about to learn PHP!";?>

Variables in PHP Variables are used for storing values, like text strings, numbers or arrays. When a variable is declared, it can be used over and over again in your script. All variables in PHP start with a $ sign symbol. Example $name = value;

Naming Rules for Variables A variable name must start with a letter or an underscore "_" A variable name can only contain alphanumeric characters and underscores (a-z, A-Z, 0-9, and _ ) A variable name should not contain spaces. A variable name should not start with a number

Variables in PHP Example <?php $txt= Agriculture University"; $value=16;?> $result=true; PHP Variable

PHP is a Loosely Typed Language In PHP, it is not needed to tell PHP which data type the variable is. PHP automatically converts the variable to the correct data type, depending on its value.e.g. $name= yahoo ; $value=8; In PHP, the variable is declared automatically when you use it

Strongly typed programming language In a strongly typed programming language, you have to declare (define) the type and name of the variable before using it. Java, C, C++ are strongly typed languages. For example in C language to declare an integer variable we write int value;

End lecture 08