® IBM Software Group © IBM Corporation QUY Thai Duy – ITFac DLU Lesson 16: Java, Ruby on Rails, PHP.

Slides:



Advertisements
Similar presentations
EIONET Training Beginners Zope Course Miruna Bădescu Finsiel Romania Copenhagen, 27 October 2003.
Advertisements

Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Lecture plan Information retrieval (from week 11)
UFCE8V-20-3 Information Systems Development 3 (SHAPE HK)
1 ColdFusion Sandra Cadena-Torres IS-373 ~ Spring 2010.
® IBM Software Group © IBM Corporation QUY Thai Duy – ITFac DLU Getting started with the DB2 data base system.
Chapter 15 © 2010 by Addison Wesley Longman, Inc Origins and Uses of Ruby - Designed by Yukihiro Matsumoto; released in Use spread rapidly.
Aneef Fashir Software Architect Assette. About Myself 5 years of experience in programming. BSc(Hons) in Computer Science and MIS. Currently working at.
® IBM Software Group © IBM Corporation QUY Thai Duy – ITFac DLU Lesson 1: Installation and the DB2 editions.
Software Freedom Day th September 2007 Asia Pacific Institute of Information Technology Colombo, Sri Lanka. Nazly Ahmed Scripting The Web.
BY: ALBERTO CABEZAS 4/19/2010. INTRODUCTION: PHP is considered today as one of the most famous scripting languages. PHP is widely used as a general purpose.
Microsoft.Net Technology Sachin Shetty Vimal Amin Thomas Mullasaril Vinutna Pulavarti Software Engineering CS616 Instructor:Dr.Tappert.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic Server Side Web Technologies: Part 2.
© 2002 IBM Corporation Enablement of Moodle software to DB2 9.7 Raul F. Chong IBM Canada Mario BriggsIBM
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of Creating Eclipse plug-ins.
By Brian Patterson & Amanda Perez. PHP was originally created to maintain his personal homepage, hence the name PHP. Development began in 1994 and was.
27-Jun-15 Rails. What is Rails? Rails is a framework for building web applications This involves: Getting information from the user (client), using HTML.
PHP Scripting Language. Introduction “PHP” is an acronym for “PHP: Hypertext Preprocessor.” It is an interpreted, server-side scripting language. Originally.
Chapter 13 Web Application Infrastructure. Objectives Explain the components and purpose of a web application platform Describe several common webapp.
Slide 1 of 9 Presenting 24x7 Scheduler The art of computer automation Press PageDown key or click to advance.
Apache Jakarta Tomcat Suh, Junho. Road Map Tomcat Overview Tomcat Overview History History What is Tomcat? What is Tomcat? Servlet Container.
WHAT IS PHP PHP is an HTML-embedded scripting language primarily used for dynamic Web applications.
Talend 5.4 Architecture Adam Pemble Talend Professional Services.
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.
PHP Web Development, PHP Programming
Standardize on Team Foundation Server across the enterprise with Teamprise Corey Steffen General Manager
RUBY ON RAILS It’s so rad. What we’ll cover  What is Ruby?  What is RoR?  Why RoR?  Developing with RoR  Deployment  Demo  Questions.
PHP HYPERTEXT: PREPROCESSOR By: Justin T. Pleva. WHAT IS PHP?  General purpose  Server-side web development  Console application.
What is PHP PHP (officially "PHP: Hypertext Preprocessor") is a server-side HTML-embedded scripting language –means that code does not need to be compiled.

PHP and SQL/J Pertemuan 12 Matakuliah: T0413 Tahun: 2009.
Microsoft Visual SourceSafe Very popular Mainly used by Windows developers Cornerstone of many development teams Provides essential version control functions.
Web Application Programming Carol Wolf Computer Science.
1 Web Server Administration Chapter 1 The Basics of Server and Web Server Administration.
October 30, 2007S. Weigert / Y. HAN1 Working with Eclipse-Ingres RUBIS Autumn 2007.
® IBM Software Group © 2006 IBM Corporation Kick-start your Java Apps: Free Software, fast development Eclipse IDE, WASCE, DB2 Express-C.
PHP TUTORIAL. HISTORY OF PHP  PHP as it's known today is actually the successor to a product named PHP/FI.  Created in 1994 by Rasmus Lerdorf, the very.
PHP With Oracle 11g XE By Shyam Gurram Eastern Illinois University.
Fundamentals of Database Chapter 7 Database Technologies.
Introduction to PHP and MySQL Kirkwood Center for Continuing Education By Fred McClurg, © Copyright 2015, Fred McClurg, All Rights.
PHP Features. Features Clean syntax. Object-oriented fundamentals. An extensible architecture that encourages innovation. Support for both current and.
© 2009 IBM Corporation PHP na Systemu i - přehled Václav Matoušek IBM SSIS Czech Republic.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
WEB DEVELOPMENT WITH PHP/MYSQL. WEB DEVELOPMENT COURSE HAS DIFFERENT NAME IN DIFFERENT INSITUTES, THIS IS A CORE COURSE FOR BS/MS STUDENTS. THIS IS ALSO.
May06-11: ISEAGE Attack Tool Repository and Player Jeremy Brotherton, Timothy Hilby, Brett Mastbergen, Jasen Stoeker.
Connectivity Solutions from DataDirect™ John Goodson Vice President, DataDirect, R&D.
8 th Semester, Batch 2009 Department Of Computer Science SSUET.
XAMPP.
PHP on Windows server. About PHP history, usage [ 3 ] Basics about PHP Open, free, object oriented (recently added namespaces), procedural, type free.
Top 5 IDE that Simplifies PHP Development Biztech IT Consultancy Pvt. Ltd. | |
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.
Presented By P.SRIVIDYA 085D1A0552 Programming Language.
Presented By Sushil K. Chaturvedi Assistant Professor SRCEM,Banmore 1.
JRuby on Rails Presenter Name
Introduction to PHP 5 and IBM DB2 Building web applications with PHP 5.2 and IBM DB2.
PHP Basics and Syntax Lesson 3 ITBS2203 E-Commerce for IT.
The Holmes Platform and Applications
Chapter 13 Web Application Infrastructure
Fundamental of Databases
Multitier Architecture, MySQL & PHP
PHP / MySQL Introduction
Web App vs Mobile App.
Database Software.
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
UFCEUS-20-2 Web Programming
.Net for Test and Measurement
Web Application Development Using PHP
Top PHP Development Tools For PHP Developers By: iblinfotech.com iblinfotech.com.
Presentation transcript:

® IBM Software Group © IBM Corporation QUY Thai Duy – ITFac DLU Lesson 16: Java, Ruby on Rails, PHP

IBM Software Group Agenda  Java  Ruby on Rails  PHP

IBM Software Group IBM DB2 Driver for JDBC (aka JCC Driver)  Java driver optimized for all DB2 servers  DB2 for i5/OS (a.k.a iSeries or AS/400)  DB2 for zOS (v8)  DB2 for Linux, UNIX, Windows  Single driver can be used in type 2 and type 4 modes  db2jcc.jar (com.ibm.db2.jcc)  Type 2 (Requires a DB2 client)  Type 4 (Pure Java client, no need for a DB2 client)  db2jcc.jar is included in:  IBM Data Server client  IBM Data Server Runtime Client  IBM Data Server Driver for JDBC and SQLJ

IBM Software Group Basics  Can use IBM Data Studio  Based on Eclipse  Use Java Perspective (Create a new project)  For the Java project, add external JARs and class folders to the build path:  db2jcc.jar  db2jcc_javax.jar  db2jcc_license_cu.jar.

IBM Software Group Basics

IBM Software Group Database connection

IBM Software Group Inserting XML data from a file

IBM Software Group Inserting XML data from a character string

IBM Software Group Retrieving full XML documents with SQL

IBM Software Group Retrieving part of XML document with SQL/XML

IBM Software Group Retrieving part of XML document with SQL/XML

IBM Software Group Retrieving part of XML document with XQuery

IBM Software Group Update/delete part of XML document

IBM Software Group SQL PL Stored procedures

IBM Software Group What is Ruby on Rails?  Ruby: Object oriented language  Invented by Yukihiro Matsumoto (“Matz”) – 1995  Rails: Web Framework created using Ruby  Creates database backed web-based applications  Agile Software Development  Hot new technology

IBM Software Group Ruby on Rails (RoR) highlights  Rails based on MVC (Model, View, Controller) architecture  Convention over configuration  Easy to perform testing  In development, ships with a Ruby web server WEBrick  Popular IDE: RadRail

IBM Software Group Productivity… just an example  Credit: Java code by: Peter Szinek, MSc

IBM Software Group Ruby utilities  RI: Ruby Interactive  IRB: Interactive Ruby Shell  RubyGems

IBM Software Group Startup Toolkit for DB2 on Rails  Integrated installer that creates a complete DB2 Ruby on Rails development environment on a Windows PC.  Source code available to do your own builds on other platforms  Version 2.1 available on IBM alphaWorks  Helps you install Ruby and Rails 1.1.6, DB2 Express – C 9 (includes pureXML support)  IBM developed DB2 Ruby driver and DB2 Rails Adapter

IBM Software Group What is PHP?  PHP is an open source, platform independent scripting language that is designed for web application development  Originally created by Rasmus Lerdorf in 1995  Set of Perl scripts for tracking accesses to his online resume  Original name was 'Personal Home Page Tools‘  PHP 3.0 was a completed rewrite in 1997  Number of PHP developers has been growing ever since  It is one of the most widely deployed web languages in the world today.  Oh yes, PHP means (PHP Hypertext Preprocessor)

IBM Software Group Why PHP is popular ?

IBM Software Group PHP - Key driver of LAMP Stack  LAMP – Technical  Linux, Apache HTTP Server, MySQL, PHP/Perl/Python  Open Source web technology stack  Often available on ISPs for reasonable monthly fees  Pure open source software components  LAMP – Business (Appealing on many levels)  1. Rapid iterative development  2. Low cost of software acquisition  3. Scalable and robust scalable LAMP solutions requires significant investment  PHP Concerns (CTOs)  Lack of Professional level PHP developer skills  Good software design skills are still important for large projects  Considerable investment in.NET or J2EE already  Many enterprises are not comfortable with MySQL

IBM Software Group DB2 Connection options for PHP  PHP Drivers for DB2  PHP Unified ODBC Extension (old, not good)  ibm_db2 (only for DB2)  PDO_ODBC – Can be used with DB2 and other databases  PDO_IBM – Newer, more stable than PDO_ODBC  PDO = PHP Data Objects,  Standard objected-oriented db interface  Introduced with PHP 5.1  Good for database agnostic applications  Use either ibm_db2 or PDO_IBM  PHP drivers are offered under open-source licenses 

IBM Software Group PHP extension for DB2 (ibm_db2)  Available from the PECL repository under the Apache 2.0 License  Developed and supported by IBM  Full featured support for stored procedures and LOBs  Fast, optimized for DB2  Works with both PHP 4 and PHP 5

IBM Software Group Your first ibm_db2 application <?php $sql = "SELECT name, breed FROM ANIMALS WHERE weight < ?"; $conn = db2_connect($database, $user, $password); $stmt = db2_prepare($conn, $sql); $res = db2_execute($stmt, array(10)); while ($row = db2_fetch_assoc($stmt)) { print "{$row['NAME']} is a {$row['BREED']}.\n"; } ?>

IBM Software Group Configuring PHP for ibm_db2  Modify php.ini (Linux / UNIX): extension=ibm_db2.so ibm_db2.instance_name=db2inst1  Modify php.ini (Windows):  extension=php_ibm_db2.dll  Or Check out Zend Core for IBM

IBM Software Group PHP Data Object (PDO) extension  Standard data access interface for PHP  Fast, light weight, and object oriented  PDO_ODBC and PDO_IBM use DB2 libraries for native access  Standard database API for multiple database servers  Built into PHP 5.1  

IBM Software Group What is Zend Core?  Zend Core is:  A seamless out-of-the-box supported PHP development and production environment  For:  Business-critical web applications  Delivering:  Reliability, Productivity and Flexibility needed for running PHP applications Free download:

IBM Software Group Zend Core for IBM  Everything you need  Installs  DB2 and IDS client  Apache HTTP Server ( optional )  PHP  Popular PHP extensions including –ibm_db2 –PDO_IBM –Many more…  DB2 Express-C server, IBM Cloudscape server ( optional )  Documentation – complete PHP manual  Sample applications for DB2  Easy to use and configure PHP environment

IBM Software Group Zend Core Management & Control

IBM Software Group Zend Core PHP Configuration

IBM Software Group Zend Core Remote Debug & Benchmark

IBM Software Group What’s Next?