1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development.

Slides:



Advertisements
Similar presentations
FIRST SESSION - XAMPP Jeongmin Lee.  Jeongmin Lee  CS  PHD  Machine Learning, AI  Web System Development.
Advertisements

1 Configuring Internet- related services (April 22, 2015) © Abdou Illia, Spring 2015.
DT211/3 Internet Application Development Active Server Pages & IIS Web server.
PHP Programming with MySQL Slide 2-1 CHAPTER 2 Getting Started with PHP.
1 Chapter 12 Working With Access 2000 on the Internet.
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
28/1/2001 Seminar in Databases in the Internet Environment Introduction to J ava S erver P ages technology by Naomi Chen.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
Introduction to Web Interface Technology (CSE2030)
Website Development with PHP and MySQL Introduction.
Getting Started with Web Servers, PHP, and the Eclipse PDT Appendix I DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Dynamic Web site With PHP and MySQL. MySQL The combination of MySQL database and PHP scripting language is optimum for building dynamic websites. MySQL.
ECA 228 Internet/Intranet Design I Intro to the Web.
Quick Tour of the Web Technologies: The BIG picture LECTURE A bird’s eye view of the different web technologies that we shall explore and study.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
SEEM4570: XAMPP, Eclipse, Summary of Html Kangfei Zhao Room 711,ERB
SYST Web Technologies SYST Web Technologies Installing a Web Server (XAMPP)
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
Linux Operations and Administration
DAT602 Database Application Development Lecture 15 Java Server Pages Part 1.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Web Server Configuration Alokes Chattopadhyay Computer & Informatics Centre IIT Kharagpur.
Website Development & Management Introduction & Overview CIT Fall Instructor: John Seydel, Ph.D.
 2000 Deitel & Associates, Inc. All rights reserved. Chapter 24 – Web Servers (PWS, IIS, Apache, Jigsaw) Outline 24.1Introduction 24.2Microsoft Personal.
Install NetBeans with PHP ISYS 475. Install NetBeans (If you want install Java) First download and install Java JDK: –
Session 5: Working with MySQL iNET Academy Open Source Web Development.
Apache Server The Apache Server Apache is a WWW server that implements the HTTP protocol. Apache runs as a daemon. This means that it is a resident.
Web Servers1-1 Web Servers Xingquan (Hill) Zhu
Copyright © cs-tutorial.com. Introduction to Web Development In 1990 and 1991,Tim Berners-Lee created the World Wide Web at the European Laboratory for.
With your friendly Web Developer, Chris.. Terminology  HTML - > Hypertext Markup Language  CSS -> Cascading Style Sheet  open tag  close tag  HTTP->Hypertext.
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.
Session 10 Windows Platform Eng. Dina Alkhoudari.
Installation of Apache, PHP & MySQL Tutor: Zhang lidan Office: 312 Chow Yei Ching
5 Chapter Five Web Servers. 5 Chapter Objectives Learn about the Microsoft Personal Web Server Software Learn how to improve Web site performance Learn.
Apache, MySQL and PHP Installation and Configuration Chapter 3 PHP Installation and Configuration.
HTML. Principle of Programming  Interface with PC 2 English Japanese Chinese Machine Code Compiler / Interpreter C++ Perl Assembler Machine Code.
Database-Driven Web Sites, Second Edition1 Chapter 5 WEB SERVERS.
ASP Introduction Y.-H. Chen International College Ming-Chuan University Fall, 2004.
Website Design Lecture 1. Outline Introduction to the module Outline of the Assessment Schedule Lecture Static XHTML, client side and server side Why.
Open Source Server Side Scripting ECA 236 Open Source Server Side Scripting Installation and Testing.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Lecture Note 1: Getting Started With ASP.  Introduction to ASP  Introduction to ASP An ASP file can contain text, HTML tags and scripts. Scripts in.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Apache, MySQL and PHP Installation and Configuration Chapter 1 Apache Installation and Configuration.
Web Design (1) Terminology. Coding ‘languages’ (1) HTML - Hypertext Markup Language - describes the content of a web page CSS - Cascading Style Sheets.
The HTTP is a standard that all Web browsers and Web servers must speak in order for the Web portion of the Internet to work.
WAMP Windows Apache MySQL and PHP i.e. “WAMP”. Why WAMP? WampServer is a Windows web development environment. It allows you to create and test web pages.
CITA 310 Section 7 Installing and Testing a Programming Environment (Textbook Chapter 7)
Introduction and Principles Web Server Scripting.
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.
Unit 1 – Web Concepts Instructor: Brent Presley.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
 Before you continue you should have a basic understanding of the following:  HTML  CSS  JavaScript.
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
Outline  XAMPP  XAMPP Install  Put php and HTML documents  Windows and Mac Version  Security.
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.
Setup a PHP + MySQL Development Environment
WordPress Introduction
CISC103 Web Development Basics: Web site:
Introduction and Principles
Pemrograman V (PHP) “Introduction”
Developing Web-Based Applications
PHP / MySQL Introduction
CISC103 Web Development Basics: Web site:
Chapter 2 Getting Started with PHP PHP Programming with MySQL
Configuring Internet-related services
Web Application Development Using PHP
XAMPP.
Presentation transcript:

1 Session 1: Introduction to PHP & MySQL iNET Academy Open Source Web Development

2 Objectives PHP & MySQL in web development Components of PHP applications Installation & Configurations of Apache, MySQL and PHP Open source tools

3 World Wide Web Web pages Created by HTML => Static pages Dynamic pages By modifying HTML code By using CGI programs written in C or Perl PHP&MySQL make creating dynamic websites easier and faster World Wide Web: HTML & XHTML CSS URI HTTP HTTP – HyperText Transfer Protocol Developed by W3C and IETF Defines how web pages are transferred across the Internet. A request-and-response protocol that connects clients and servers Server listen on port 80 Client send request Server send back response (files, images …) HTTP => TCP => IP

4 PHP&MySQL in web development PHP&MySQL work well together PHP&MySQL have open source power PHP&MySQL have community support PHP&MySQL are fast PHP&MySQL don’t bog you down with unnecessary details

5 Components of a PHP Application PHP: programing language First appear in 1994 Is an interpreted language Compete with ASP and JSP Simply but powerful Compatible with many OS Can be extended with new capabilities

6 Components of a PHP Application (cont.) Apache: web server Get browser request and return web pages Currently have 3 versions: 1.3.x 2.0.x rewrite and support threading 2.2.x Apache vs IIS Uses modules to load extensions Works with many OSs

7 Components of a PHP Application (cont.) MySQL: database server Developed in 1990 Support different database engines: MyISAM and InnoDB Three versions currently

8 Integrating many sources of Information Web pages includes not only HTML code but also CSS: Cascading Style Sheets PHP/JSP/ASP Java Script

9 Requesting data from a web page

10 Requesting data from a web page (cont.)

11 Installation Install Apache, MySQL and PHP separately Install all-in-one package XAMPP

12 Installing Apache using Installation Wizard Goto website Download the Apache 2.2.x Win32 MSI apache_2.2.x-win32-x86-no_ssl.msi apache_2.2.x-win32-x86-openssl-….msi

13 Installing Apache using Installation Wizard (cont.) The Installation Wizard prompts you for basic configuration

14 Installing Apache using Installation Wizard (cont.) Apache License terms and conditions for use

15 Installing Apache using Installation Wizard (cont.) Apache HTTP Server Information

16 Installing Apache using Installation Wizard (cont.) Server Network Information Dialog

17 Installing Apache using Installation Wizard (cont.) Selecting a setup type

18 Installing Apache using Installation Wizard (cont.) Destination Folder dialog for the Apache installation files

19 Installing Apache using Installation Wizard (cont.) “Ready to Install” dialog

20 Installing Apache using Installation Wizard (cont.) Apache’s default index page after installation

21 Configuring Apache Choose Edit Apache httpd.conf Some important directives Listen LoadModule DocumentRoot Directory Options Order, Allow, Deny Alias

22 Practice: Installing & Configuring Apache In this practice, you will Install the apache server using Installation Wizard Config the server with the following tasks Changge the Port to 8080 Change the DocumentRoot to another folder Add new aliases and directories Enable the Indexes directive on one of these alias

23 Installing PHP using Installation Wizard Goto Download the PHP 5.2.x Win32 MSI php-5.2.x-win32-installer.msi

24 Installing PHP using Installation Wizard (cont.) The PHP MSI installer

25 Installing PHP using Installation Wizard (cont.) The License Terms dialog

26 Installing PHP using Installation Wizard (cont.) The installation directory for PHP

27 Installing PHP using Installation Wizard (cont.) The Web Server Setup dialog

28 Installing PHP using Installation Wizard (cont.) Select the Apache install path

29 Installing PHP using Installation Wizard (cont.) The Installation Options dialog Choose extensions: mbstring and mysql

30 Installing PHP using Installation Wizard (cont.) Dialog confirming that the installer will config Apache After finish, the Successful Installation dialog appears Restart Apache Server

31 Installing PHP manually Goto the website Download the PHP 5.2.x zip pakage php Win32.zip Unzip it to the folder C:\PHP Edit the httpd.conf. Add three lines as follow at the bottom

32 Installing PHP manually (cont.) Goto folder C:\PHP Edit the file named “php.ini-recommended” and SaveAs “php.ini” Restart the Apache server

33 Test of PHP installation Create a phpinfo.php file with the content Save it under the Apache DocumentRoot Directory. Open browser and type in the location barhttp://localhost/phpinfo.php The result should be

34 Practice: Installing and Configuring PHP In this practice, you will: Install PHP manually Test the installation

35 Installing MySQL using Installation Wizard Goto the website Download the window installer version of MySQL 5.0.x mysql-essential b-win32.msi

36 Installing MySQL using Installation Wizard (cont.) The MySQL Setup Wizard

37 Installing MySQL using Installation Wizard (cont.) Select a setup type

38 Installing MySQL using Installation Wizard (cont.) The MySQL.com account setup dialog

39 Installing MySQL using Installation Wizard (cont.) Customizes the database settings

40 Installing MySQL using Installation Wizard (cont.) Choose level of detail

41 Installing MySQL using Installation Wizard (cont.) Howto start MySQL and setup the system path

42 Installing MySQL using Installation Wizard (cont.) Security setting for the database window

43 Installing MySQL using Installation Wizard (cont.) Installation is completed

44 Config PHP to connect to MySQL Open the php.ini files Find the extension_dir directive and modify as follow Find the extension directive and modify as follow Append “;C:\php” to the system environment’s variable named Path. (MyComputer->Properties- >Advanced->Environment Variables Restart Windows then browse the phpinfo.php page.

45 Config PHP to connect to MySQL (cont.)

46 Practice: Installing MySQL and Configuring PHP In this practice, you will: Install MySQL Config PHP to connect to MySQL Test the config’s result

47 Open source tools XAMPP: all-in-one installation package phpMyAdmin: admin MySQL using web- based tool SQLyog: best GUI tool to administer MySQL Notepad++: PHP&other languages editor.

48 Summary PHP is usually used to develop web applications PHP-based web applications always go together with Apache and MySQL