Presentation is loading. Please wait.

Presentation is loading. Please wait.

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

Similar presentations


Presentation on theme: "1 Open Source Programming. -Introduction to PHP -PHP installation /wamp server installation for PHP environment -PHP syntax -PHP variables -PHP Strings."— Presentation transcript:

1 1 Open Source Programming

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

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

4 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 5 The Prerequisites: if u know HTML then ok else no problem You need courage and time This will be an Intense course

6 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 7 The Goals: Problem-solving and debugging PHP language mySQL database design and language Improve your HTML skills Understand and use XML

8 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 9 Expectations and Performance Sound in programming NOT ANY MORE. If you don’t work hard in this course,

10 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. www.wampserver.com www.mamp.info

11 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 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 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 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 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 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

17 WAMP

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

19 WAMP Installation A single installation file downloaded from http://www.wampserver.com/en/download.php http://www.wampserver.com/en/download.php

20 After Installation Application Service Apache wampapache PHP MySQL database wampmysql

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

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

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

24 Haiti Migration Architecture

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

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

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

28 Haiti Migration Data MsSQL: MySQL:

29 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.

30 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

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

32 Affected Applications PERL(Replication) PHP Tomcat

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

34 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 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 www.mamp.info WAMP: you get the picture. www.wampserver.com


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

Similar presentations


Ads by Google