IntroductionToPHP Static vs. Dynamic websites

Slides:



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

Server-Side vs. Client-Side Scripting Languages
Session 6 Server-side programming - ASP. An ASP page is an HTML page interspersed with server-side code. The.ASP extension instead of.HTM denotes server-side.
B.Sc. Multimedia ComputingMedia Technologies Database Technologies.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
2440: 141 Web Site Administration Web Server-Side Programming Professor: Enoch E. Damson.
1 CS428 Web Engineering Lecture 18 Introduction (PHP - I)
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
PHP By Dr. Syed Noman Hasany. PHP PHP was originally created by Rasmus Lerdorf in PHP stands for PHP: Hypertext Preprocessor (a recursive acronym).
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
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.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
Server- Side technologies Client-side vs. Server-side scripts PHP basic ASP.NET basic ColdFusion.
Mandakini Ayushi Infotech Mandakini Kumari 22 nd July PHP Basic.
PHP - Hypertext Preprocessor. Introduction PHP is a powerful server-side scripting language for creating dynamic and interactive websites. PHP is a powerful.
Languages in WEB Presented by: Jenisha Kshatriya BCM SS09.
Basics of Web Databases With the advent of Web database technology, Web pages are no longer static, but dynamic with connection to a back-end database.
IDK0040 Võrgurakendused I harjutus 06: PHP: Introduction Deniss Kumlander.
INTERNET APPLICATION DEVELOPMENT For More visit:
Nael Alian Introduction to PHP
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
PHP. What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server.
Introduction to PHP Advanced Database System Lab no.1.
What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server PHP supports.
Web Server Administration Chapter 7 Installing and Testing a Programming Environment.
Web Architecture Introduction
David Lawrence 7/8/091Intro. to PHP -- David Lawrence.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
PHP Introduction PHP is a server-side scripting language.
An Investigation into using a Document Management System Presented by: Bijal RanaSupervisor: John Ebden.
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.
 Web pages originally static  Page is delivered exactly as stored on server  Same information displayed for all users, from all contexts  Dynamic.
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 14 Web Database Programming Using PHP.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
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.
PHP is a server scripting language, and a powerful tool for making dynamic and interactive Web pages. PHP is a widely-used, free, and efficient alternative.
1 Server Side scripting PHP. 2 What is PHP? PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
A pache M ySQL P hp Robert Mudge Reference:
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.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
PHP using MySQL Database for Web Development (part II)
Web Programming Language
Introduction to Dynamic Web Programming
Chapter 5 Scripting Language
CSC 301 Web Programming Charles Frank.
Introduction and Principles
Introduction to PHP “PHP is a server-side scripting language designed specifically for the Web. Within an HTML page, you can embed PHP code that will be.
PHP (PHP: Hypertext Preprocessor)
* Lecture # 7 Instructor: Rida Noor Department of Computer Science
Introduction to PHP “PHP is a server-side scripting language designed specifically for the Web. Within an HTML page, you can embed PHP code that will be.
ALWAR INSTITUTE OF ENGINEERING & TECHNOLOGY
Chapter 5 Scripting Language
PHP / MySQL Introduction
PHP Introduction.
Database Driven Websites
PHP.
JavaScript.
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Introduction to PHP.
PHP an introduction.
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:

IntroductionToPHP Static vs. Dynamic websites A static website is created using HTML pages which have been written in a fixed way to instruct the browser how to render the page. (What you see it what you get). Static websites are used to display fixed information which most often does not need to be updated on a regular basis. As the Web evolved, sites became more complex and were expected to display dynamic information which could not have been “hard coded” in HTML. Such as: Search results Number of visitors User login Message boards

IntroductionToPHP Dynamic websites The solution was to generate the HTML “on-the-fly” based on parameters and specifications. For example, If a user asks to see search results, a unique page would be generated specifically for him. The user would get an HTML page, but an HTML page that was tailored made for him. Since there is no way of knowing every possible search result for every possible key word, the final page is being assembled using a server-side script. The server-side script constructs the page and then it is being sent back to the client. This mean that the page result.html will look different each time based on the given

IntroductionToPHP Every client makes a request for a page. Dynamic websites Every client makes a request for a page. The server checks what the client has asked for and based on that constructs a page for him based on an existing template. The template is a page which contains HTML code and server-side code that will end up as HTML code as well, but a different HTML each time.

IntroductionToPHP Three Tier Web Applications

IntroductionToPHP Benefits Of Dynamic Content The ability to customize pages for any given user. Greater ease of modification and update. Extended functionality (login, transactions, communication etc.). Automating the site and allowing it to support itself. Less pages to manually create.

IntroductionToPHP Server-Side Scripting In order to generate dynamic pages we use a server-side scripting language. There are different types of server-side scripting languages such as PHP, ASP, ASP.NET, ColdFusion, JavaServer Pages, Perl and others. Each scripting languages is being interpreted by an application, just as Flash is used to make sense of ActionScript and have the code do things. The application which interprets the server-side script is installed on the sever just like any other application.

IntroductionToPHP Server-Side Scripting Server-side scripting languages are also operating systems dependent. PHP for example is being interpreted by an application called Apache which runs on a UNIX operating system. Each server-side scripting languages supports basic programming concepts such as variables, arrays, functions, loops, conditional statement and others. They also contain more specific elements such as special objects, commands used to communicate with the server and a database and much more.

IntroductionToPHP Server-Side Scripting & Databases When there is a need to store and retrieve information (user names, items in stock etc.) a database will be used to contain the data. Sever-side script can communicate to a database using a structured query language (SQL) which manipulates the database (add, remove, update etc.) More on that next week.

IntroductionToPHP PostgreSQL, Generic ODBC, etc.) What is PHP? 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 databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software (OSS) This means its free to use and isnʼt being controlled by a single entity. It is being developed by a group of developers PHP syntax resembles that of JavaScript and ActionScript in different ways. PHP is free to download and use

IntroductionToPHP PostgreSQL, Generic ODBC, etc.) What is PHP? 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 databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.) PHP is an open source software (OSS) This means its free to use and isnʼt being controlled by a single entity. It is being developed by a group of developers PHP syntax resembles that of JavaScript and ActionScript in different ways. PHP is free to download and use

IntroductionToPHP What is PHP? PHP files may 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 can be written in any text editor. PHP script will be located inside special tags, much like JavaScript e.g. <?php //php script here ?> PHP code can be located any where in the page. PHP is case sensitive. Every variable in PHP will have the $ symbol as a prefix e.g. $myName =“John”; Every line of code MUST be terminated with a ; symbol.

IntroductionToPHP PHP + MySQL What is MySQL? MySQL is a small database server MySQL is ideal for small and medium applications MySQL supports standard SQL MySQL compiles on a number of platforms MySQL is free to download and use PHP + MySQL PHP combined with MySQL is cross-platform (means that you can develop in Windows and serve on a Unix platform).

IntroductionToPHP Why PHP? PHP runs on different platforms (Windows, Linux, Unix, etc.) PHP is compatible with almost all servers used today (Apache, IIS, etc.) PHP is FREE to download from the official PHP resource: www.php.net PHP is easy to learn and runs efficiently on the server side

IntroductionToPHP Hosting - www.media72.co.uk What do You Need? Hosting - www.media72.co.uk You can use any hosting company you choose, but they must have at least: 1 SQL database & PHP Code Editor - www.panic.com/coda Ability to test locally - www.mamp.info