1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)

Slides:



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

Java Script Session1 INTRODUCTION.
Introduction to JavaScript
Introduction to PHP MIS 3501, Fall 2014 Jeremy Shafer
Languages for Dynamic Web Documents
Server-Side vs. Client-Side Scripting Languages
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
HTML Recall that HTML is static in that it describes how a page is to be displayed, but it doesn’t provide for interaction or animation. A page created.
Multiple Tiers in Action
Introduction to Web Based Application. Web-based application TCP/IP (HTTP) protocol Using WWW technology & software Distributed environment.
Website Development with PHP and MySQL Introduction.
Mgt 240 Lecture Website Construction: Software and Language Alternatives March 29, 2005.
Web Programming Introduction to PHP COM Objectives To understand what PHP is and how a PHP script works with a Web Browser and a Web Server To learn.
Web Programming Language Dr. Ken Cosh Week 1 (Introduction)
8/17/2015CS346 PHP1 Module 1 Introduction to PHP.
Web Page A page displayed by the browser. Website Collection of multiple web pages Web Browser: A software that displays web pages on client computer.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
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.
CSC 318 WEB APPLICATION DEVELOPMENT.  Introduction to Server Scripting language  Client VS Server  Introduction to PHP  PHP Files and Syntax  Function.
Intro to PHP Introduction to server-side scripts (It’s all good :D) © TAFE NSW
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
INTERNET APPLICATION DEVELOPMENT For More visit:
Introduction to Internet Programming (Web Based Application)
Nael Alian Introduction to PHP
10/5/2015CS346 PHP1 Module 1 Introduction to PHP.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
1 Welcome to CSC 301 Web Programming Charles Frank.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Intro to PHP IST2101. Review: HTML & Tags 2IST210.
Introduction to PHP Advanced Database System Lab no.1.
Introduction to Web Programming. Introduction to PHP What is PHP? What is a PHP File? What is MySQL? Why PHP? Where to Start?
CS 4720 Dynamic Web Applications CS 4720 – Web & Mobile Systems.
CSE 154 LECTURE 5: INTRO TO PHP. URLs and web servers usually when you type a URL in your browser: your computer looks up the.
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.
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.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
ASP. ASP is a powerful tool for making dynamic and interactive Web pages An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are.
1) PHP – Personal Home Page Scripting Language 2) JavaScript.
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 2: Introduction to IS2803 Rob Gleasure
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
PHP Syntax You cannot view the PHP source code by selecting "View source" in the browser - you will only see the output from the PHP file, which is plain.
Dr. Abdullah Almutairi Spring PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used,
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
IST 210: PHP Basics IST 210: Organization of Data IST2101.
PHP stands for …….. “PHP Hypertext Pre-processor” and is a server-side scripting language like ASP. PHP scripts are executed on the server PHP supports.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
Web Programming Language
Module 1 Introduction to JavaScript
Introduction to Dynamic Web Programming
Web Concepts Lesson 2 ITBS2203 E-Commerce for IT.
Active Server Pages Computer Science 40S.
PHP (PHP: Hypertext Preprocessor)
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
PHP / MySQL Introduction
PHP Introduction.
Module 1 Introduction to PHP 11/30/2018 CS346 PHP.
IntroductionToPHP Static vs. Dynamic websites
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
An Introduction to JavaScript
Introduction to PHP.
PHP an introduction.
Client-Server Model: Requesting a Web Page
Web Application Development Using PHP
Presentation transcript:

1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)

PHP is a server side scripting language. Through PHP we can develop dynamic websites. Static Websites: those websites which structure contents are not changing. User’s can’t bring changing to the contents. Dynamic Websites: those websites, whose structure and contents are changing e.g. facebook.com (user upload pictures, links, videos, comments) User is interacting with the website and change the contents or modify the contents. What is PHP?

JavaScript is another example of popular scripting language. Unlike JavaScript, PHP run on server machine, JavaScript run on client machine. Client side = User’s Browser Server side = Web Server Because PHP run on server, so we need a web server to run it on.

PHP is designed for use with HTML. –PHP can be embedded with HTML. –PHP return HTML to browser. –PHP code is our input. –Web pages is out output. PHP provides more flexibility than HTML alone because through HTML you can create only static web pages, through PHP you create dynamic web pages. PHP syntax is similar to C, Java and Perl. If you have knowledge of ASP then it will helpful to learn PHP. We can say ASP is Microsoft version of PHP.

Why use PHP? You want to know the limits of HTML, and you want to do more. PHP is Open Source/Free Software. (open source means, source code is available for every one for study, use and modify) (free software means its free of cost to download and free to use) PHP is cross platform to develop, to deploy and to use. (means we put PHP on window server, on MAC server or on Linux/Unix server.) PHP is web development specific. PHP can be object oriented, especially version 5.

INSTALLATION You will need?  Web Server  PHP  Database  Text Editor  Web Browser

Windows Installation All-in-one Packages WAMP: XAMPP:

Embedding PHP PHP is embedded in html., tells web server begin and ends the php commands. The server access the webpage, it knows to be ready for php because we have.php extension. Server still needs some extension where php start and stops, with <?php it turned on php, start filtering

VARIATION on PHP Short open tags (considered bad form)

NOTE We will embed php code in html code. Whenever we embed php code in html, the file extension will always be.php, otherwise if extension will.html. The server treats it the php code as text. PHP code will embed in anywhere of HTML code.

STRUCTURE OF BASIC PHP STATEMENT Instruction separator, this is end of this instruction echo is a function, which print something

CONCATENATION Dot (.) is used to concatenate two strings

13 Case Sensitivity in PHP Programming language constructs in PHP are mostly case insensitive. <?php echo " Explore Africa, "; Echo " South America, "; ECHO " and Australia ! "; ?>

The Operational Trail What happens, when you actually ask for a URL in your browser before you get HTML back to you. Browser hp Server Find PageHello.php Return HTML Process PHP Databases Apache

COMMENTS IN PHP Single line comments // single line comments are like this # or like this Double line comments /* our double line comment here and we can keep typing and typing */

Difference b/w Desktop and Web App Desktop software or app execute only at local system, its extension is.exe Online web apps run when a request reach to server, that request indicate a file on server that web server execute this file and send result back to client’s browser.