1 Open Source Programming. -Introduction to PHP -PHP installation /wamp server installation for PHP environment -PHP syntax -PHP variables -PHP Strings.

Slides:



Advertisements
Similar presentations
WAMP Author: Jun Shao Project: Haiti. What is WAMP? WAMP = Windows+Apache+MySql+PHP Note:WAMP5 does not work with Windows 98,Me.
Advertisements

1 Database Driven Web Application Clients Application Servers including web servers Database Server Traditional client-server (2-tier architecture): client:
Windows Apache MySQL PHP Radoslav Georgiev Telerik Corporation
Learning Web development. 3(+1) Tier architecture PHP script Remote services Web Server (Apache, IIS) Browser (IE, FireFox, Opera) Desktop (PC or MAC)
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
Creating WordPress Websites. Creating a site on your computer Local server Local WordPress installation Setting Up Dreamweaver.
An Overview of Database Access on the Web An Overview of Database Access on the Web Using ASP and Microsoft Database Technology Sheffield Hallam University.
Multiple Tiers in Action
Week 1 INFM 718N Web-Enabled Databases The Big Picture.
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.
Creating Databases applications for the Web Reprise. Basic HTML review, forms Preview: Server side vs client side Classwork: create HTML forms and check.
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.
PHP and MySQL Week#1  Course Plan.  Introduction to Dynamic Web Content.  Setting Up Development Server Eng. Mohamed Ahmed Black 1.
1 Web Database Processing. Web Database Applications Static Report Publishing a report is prepared from a database application and exported to HTML DB.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
Introduction: Drupal is a free and open-source content management system (CMS). A content management system(CMS) is a computer program that allows publishing,
Lecture 3 – Data Storage with XML+AJAX and MySQL+socket.io
6/1/2001 Supplementing Aleph Reports Using The Crystal Reports Web Component Server Presented by Bob Gerrity Head.

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.
Introduction to InfoSec – Recitation 7 Nir Krakowski (nirkrako at post.tau.ac.il) Itamar Gilad (itamargi at post.tau.ac.il)
Is Apache CouchDB for you?
Nael Alian Introduction to PHP
COLD FUSION Deepak Sethi. What is it…. Cold fusion is a complete web application server mainly used for developing e-business applications. It allows.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Installing and Using MySQL and phpMyAdmin. Last Time... Installing Apache server Installing PHP Running basic PHP scripts on the server Not necessary.
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
Intro to Web Programming Presented by Blaine Hilton.
INFO 1300: LOCAL DEVELOPMENT 10/16/2015. Index.html Important Homepage for every project in this course Points will be deducted otherwise.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Database Concepts CPTE 212 3/19/2015 John Beckett.
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.
PHP Open source language for server-side scripting Works well with many databases (e.g., MySQL) Files end in.php,.php3 or.phtml Runs on all major platforms.
Case Study Dynamic Website - Three Tier Architecture
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.
Creating a simple database This shows you how to set up a database using PHPMyAdmin (installed with WAMP)
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.
PHP, Databases, and Cookies Dave Pease IDS496 12/2/2003
WAMP Server Installatin Shiyun Wen. WAMP Server Installation  WAMP Server is an integrated installation of Apache, MySQL, and PHP for Windows. Following.
PHP Introduction PHP is a server-side scripting language.
Unit 1 – Web Concepts Instructor: Brent Presley.
(ITI310) By Eng. BASSEM ALSAID SESSIONS 10: Internet Information Services (IIS)
Web Page Designing With Dreamweaver MX\Session 1\1 of 9 Session 1 Introduction to PHP Hypertext Preprocessor - PHP.
Session 11: Cookies, Sessions ans Security iNET Academy Open Source Web Development.
Plug-In Architecture Pattern. Problem The functionality of a system needs to be extended after the software is shipped The set of possible post-shipment.
WEB SECURITY WEEK 1 Computer Security Group University of Texas at Dallas.
CGS 3066: Web Programming and Design Spring 2016 Introduction to Server-Side Programming.
ITX2000 Remote hosts and web servers Prof. Xiaohong (Sharon) Gao Room: T125 Ext: Week 8 – Review Reference:
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.
Outline  XAMPP  XAMPP Install  Put php and HTML documents  Windows and Mac Version  Security.
COM621: Advanced Interactive Web Development Lecture 10 PHP and MySQL.
Introduction to PHP. PHP Origins Rasmus LerdorfRasmus Lerdorf (born Greenland, ed Canada) PHP originally abbreviation for ‘Personal Home Pages’, now ‘PHP.
CGS 3066: Web Programming and Design Spring 2017
Web Technologies Computing Science Thompson Rivers University
Introduction to Dynamic Web Programming
Introduction and Principles
PHP / MySQL Introduction
PHP and Forms.
IntroductionToPHP Static vs. Dynamic websites
Intro to PHP.
Tutorial 6 PHP & MySQL Li Xu
Introduction to PHP.
Web Application Development Using PHP
XAMPP.
Presentation transcript:

1 Open Source Programming

-Introduction to PHP -PHP installation /wamp server installation for PHP environment -PHP syntax -PHP variables -PHP Strings -PHP Operator PHP

3 The Objectives: To be employable … or – to become an employer/entrepreneur

4 The Objectives: To be employable … or – to become an employer/entrepreneur OSP objectives: Students need specific technical skills! Students need to know Programming! Students need to know teamwork Students must be problem-solvers.

5 The Prerequisites: if u know HTML then ok else no problem You need courage and time This will be an Intense course

6 What’s the course? Programming in PHP + mySQL “But... I’m not a programmer!” Right. That’s why you are here. When we are done, you WILL be a programmer.

7 The Goals: Problem-solving and debugging PHP language mySQL database design and language Improve your HTML skills Understand and use XML

8 What you’ll learn Server-side scripting – PHP Form processing Cookies + Validation + Regular Expressions Sessions + Authentication File processing Image libraries + APIs Relational databases / MySQL SimpleXML Objects + Classes Security

9 Expectations and Performance Sound in programming NOT ANY MORE. If you don’t work hard in this course,

10 Computing Environment: Dreamweaver MX 2004 or better edits PHP very nicely (Or: Free: Notepad++, Codelobster...) WAMP: Windows-Apache, MySQL, PHP MAMP: Macintosh-Apache, MySQL, PHP We demonstrate today, help you install.

11 Two Tier Web Architecture: Client: e. g. FireFox On your PC Web Server: e. g. Apache On sulley.dm.ucf.edu Request: HTTP

12 Two Tier Web Architecture: Client: e. g. FireFox On your PC Web Server: e. g. Apache On sulley.dm.ucf.edu Request: HTTP.html Files

13 Two Tier Web Architecture: HTML Client: e. g. FireFox On your PC Web Server: e. g. Apache On sulley.dm.ucf.edu Request: HTTP.html files Response: HTTP/HTML (or other doctypes:PDF,etc) (client doesn’t see PHP)

14 Two Tier Web Architecture: PHP Client: e. g. FireFox On your PC Web Server: e. g. Apache On sulley.dm.ucf.edu Request: HTTP.php files help Apache CREATE html Tagged data Response: HTTP/HTML (or other doctypes:PDF,etc) (client doesn’t see PHP)

15 Three Tier Web Architecture: MySQL Client: e. g. FireFox On your PC Web Server: e. g. Apache On sulley.dm.ucf.edu Request: HTTP Response: HTTP/HTML (or other doctypes:PDF,etc) (client doesn’t see PHP).php files ask MySQL For info; put into HTML form Database Mgt System: MySQL Request:SQL Reply:ASCII.frm,.MYD,.MYI files

16 Three Tier Web Architecture: MySQL Client: e. g. FireFox On your PC Web Server: e. g. Apache On sulley.dm.ucf.edu Request: HTTP Response: HTML (client doesn’t see PHP).php files ask MySQL For info; put into HTML form Database Mgt System: MySQL Request:SQL Reply:ASCII.frm,.MYD,.MYI files Examples (what they call for:) Customer: - Shopping Cart DB Administrator: - PHPmyAdmin Managers,etc: - Specialized PHP code

WAMP

What is WAMP? WAMP = Windows+Apache+MySql+PHP Note:WAMP5 does not work with Windows 98,Me

WAMP Installation A single installation file downloaded from

After Installation Application Service Apache wampapache PHP MySQL database wampmysql

WAMP’s Menu Management Portals PHPmyadmin SQLitemanager Note: A user has to click on the icon tray to access WAMP's menu.

WAMP’s Menu Configuration and Settings Loaded Modules Directory Access Shortcut

WAMP’s Menu Services Apache MySQL Note: The icon tray reflects the status of your server.

Haiti Migration Architecture

Haiti Migration New Applications Apache HTTPS Setting MySQL –DDL –DML –Data –Data Migration

Haiti Migration DDL For example, MsSQL: CREATE TABLE ( _id bigint IDENTITY (1, 1) NOT NULL … MySQL: CREATE TABLE ( _id bigint NOT NULL AUTO_INCREMENT, …

Haiti Migration DML For example, MsSQL: select top 10 * from patient; MySQL: select * from patient limit 0,10;

Haiti Migration Data MsSQL: MySQL:

Haiti Migration Data Migration We use ODBC to migrate data from the MsSQL database to the MySQL database. We use PHP to export data from the MySQL database and then import the data into the MySQL database.

Haiti Migration MsSQL and MySQL follow the SQL- 92 standard. However, each of them have their own extensions. SourceCommonFull NameDevelopment Name Method ANSISQL/PSMSQL/Persistent Stored ModuleStandard IBMSQL PLSQL Procedural LanguageProprietary Microsoft/T-SQLTransact-SQLProprietary Sybase MySQL Open Source/ Proprietary OraclePL/SQLProcedural Language/SQLProprietary

Affected Applications Question Which applications will be affected if we install WAMP?

Affected Applications PERL(Replication) PHP Tomcat

Affected Applications PERL (Replication) It uses standard sql in inserting data. Conclusion: It requires a little change during the WAMP migration.

Overall WAMP is easy to install and it is free to use. Migration from IIS/PHP/MsSQL to WAMP is practical. The cost of migration is mainly to review queries and change them based on the SQL extension of MySQL.

35 FOR next week, WHAT? what you SHOULD have done. If you are fine, If MAC, find and install MAMP Else If Win, find and install WAMP Else you're Linux, and cool already. MAMP: Macintosh Apache, MySQL, PHP WAMP: you get the picture.