Database-Enabled Web Applications.! Introduction to PHP! Connecting to IBM DB2 with PHP
|
|
- Harold Foster
- 5 years ago
- Views:
Transcription
1 Database-Enabled Web Applications! Introduction to PHP! Connecting to IBM DB2 with PHP
2 Interfacing a Database to the Web! Classical client/server architecture: " server program waits for requests " clients request connections " once the connection is established, the client can send queries/transactions to the server " server processes queries and transactions and returns results to respective clients! DBMS-backed web application: " DBMS client is the web server program " web server receives requests from web clients, and establishes connection to the DBMS server " web server uses some middleware software (e.g. Perl/CGI) for communicating with the database " DBMS server processes requests and sends results back to the web server, which forwards them to the web client client 1 client 2 client n DBMS Server Program Svetlana Vinnik, WS03/04 - Information Systems 2 SQL query results Classical Client-Server Architecture Web client Web server Perl/CGI CGI DBMS Server Program Oracle Client/ Server Protocol Web-server-as-DB-client Architecture
3 Databases on the Web Overview of Technologies! A dynamic Web page is a page that interacts with the user, so that each user visiting the page sees customized information.! Dynamic Web applications are prevalent in e-commerce sites and search engines, where the content displayed is generated from information accessed in a database or other external source.! Some popular technologies and standards for building database-enabled applications ale listed below: ODBC (Open DataBase application programming interface for database access Connectivity) JDBC (Java DataBase Connectivity) Perl/CGI(Common Gateway Interface) ASP (Active Server Pages) PHP (Hypertext Preprocessor) cross-dbms connectivity to a wide range of SQL databases and other tabular sources the most widely used language for writing server-side component modules standard technology used to create dynamic web content on Microsoft web servers cross-platform web application development environment with easy-to-use features for integrating with databases Svetlana Vinnik, WS03/04 - Information Systems 3
4 Open DataBase Connectivity Abstracting Application from a Database Open DataBase Connectivity (ODBC) is an Application Programming Interface that allows a programmer to abstract a program from a database. Advantages provided by ODBC:! ODBC API is independent of any specific DBMS or operating system! accessing different DBMSs with the same source code without recompiling! accessing multiple DBMSs simultaneously! The developers of DBMS-specific drivers implement the ODBC interface! Applications use these drivers to access data in a DBMS-independent manner! applications supporting ODBC recognize a common subset of SQL statements! A Driver Manager manages communication between applications and drivers Databases that support ODBC MySQL, IBM DB2, Informix, MS Access, MS SQL Server, Cold Fusion, Paradox, MS Dbase, FoxPro, Oracle, Sybase, Primebase, PostgreSQL, OpenBase, Kubl, CQL++, MimerSQL, SOLID, MiniSQL, DBIX, LNX-DBMS, Cache, Interbase etc. Svetlana Vinnik, WS03/04 - Information Systems 4
5 Basic ODBC Application Steps! Interaction with a database server from any ODBC application involves basically the following steps of operations: " Configuring the ODBC DSN (connection details required to login) " Connecting to the database server " Initializations " Preparation of SQL statements (optional) " Execution of SQL statements " Retrieving results " Performing Transactions " Disconnecting from the server Svetlana Vinnik, WS03/04 - Information Systems 5
6 Welcome to PHP! PHP (Hypertext Preprocessor) is an open-source server-side, HTML-embedded, cross-platform scripting language (freely downloadable from General idea:! provides a way to put instructions in HTML code to create dynamic content! PHP instructions are read and parsed by the web server (not by the browser that is displaying the page!)! The web server replaces PHP code with the content generated by that code! provides a wide variety of functions that support everything from array manipulation to regular expressions Svetlana Vinnik, WS03/04 - Information Systems 6
7 What makes PHP so attractive PHP is today's fastest-growing technology for dynamic Web pages: " a simple universal solution for easy-to-program dynamic Web pages " PHP commands are embedded right in the HTML page " PHP's syntax is similar to that of C, Java, and Perl " extremely simple for a newcomer, but offers many advanced features for a professional programmer " offers high code performance " enjoys the support of a large group of open-source developers " excellent technical support, bugs are found and repaired quickly " code is continuously updated with improvements and language extensions to expand PHP's capabilities Svetlana Vinnik, WS03/04 - Information Systems 7
8 What can PHP do?! server-side scripting (collect form data, generate dynamic page content, or send and receive cookies, and much more)! command line scripting (for example, simple text processing tasks )! build database-enabled web pages! outputting images, PDF files, Flash movies etc. generated on the fly! support for talking to other services using protocols such as LDAP, IMAP, SNMP, NNTP, POP3, HTTP, COM etc.! support for instantiation of Java objects and using them as PHP objects! CORBA extension to access remote objects! useful text processing features, from regular expressions to parsing XML documents! search engine functions, many compression utilities, calendar conversion, translation, Svetlana Vinnik, WS03/04 - Information Systems 8
9 Introductory Example! To call a PHP-function, embed it within the HTML source! PHP uses HTML-style tags that begin with <?php and end with?>! PHP-statements are separated by semicolons! you do not need a semicolon terminating the last line of a PHP block <html> <head> <title>example</title> </head> <body> <?php echo "Hi, I am a PHP script!"; echo "<BR>And who are you?"?> </body> </html> Svetlana Vinnik, WS03/04 - Information Systems 9
10 PHP Basics - Comments! PHP supports 'C', 'C++' and Unix shell-style comments. Here are some examples: <?php echo "This is a test"; //a one-line C++ style comment /* This is a multi-line comment yet another line of comment */ echo "This is yet another test"; echo "One Final Test"; # This is shell-style style comment?> Svetlana Vinnik, WS03/04 - Information Systems 10
11 PHP Basics - Types! PHP supports eight primitive types. " Four scalar types: boolean (Example: $foo = FALSE;) integer (Example: $a = -123;) floating-point (Example: $a = 1.234;) string (Example: $str = "This is a string";) " Two compound types: array (Example: $b[]='a'; $b[]='b'; $b[]='c';) object (Example: $bar = new MyClass;) " Two special types: resource a variable holding a reference to an external resource ( e.g., database connection identifier) NULL represents that a variable has no value Svetlana Vinnik, WS03/04 - Information Systems 11
12 PHP Basics - Variables! Variables are represented by a dollar sign followed by the name of the variable: $varname.! The variable name is case-sensitive.! PHP does not support explicit type definition in variable declaration! variable's type is determined by the context in which that variable is used (automatic type conversion)! Type casting forces a variable to be evaluated as a certain type: $foo = 10; // $foo is an integer $bar = (float) $foo; // $bar is a float! To change variable s type use settype(): $bar = true; // boolean settype($bar, "string"); // $bar is now "1" (string) Svetlana Vinnik, WS03/04 - Information Systems 12
13 PHP Basics Predefined Variables! PHP provides a large number of predefined variables (dependent upon the server configuration and other factors).! There is a set of predefined arrays containing variables from the web server (such as cookies, posted values, etc.). These arrays automatically global -- i.e., available in every scope.! Some helpful globals are listed below: $HTTP_GET_VARS $HTTP_POST_VARS $_COOKIES $_SESSION Variables provided to the script via HTTP GET Variables provided to the script via HTTP POST Variables provided to the script via HTTP cookies Array for registering user-defined variables in order to make them globally accessible across the session! For example, to make a user-defined variable global, i.e. accessible from any script across the session, register it with $_SESSION: $_SESSION[' counter ']=$counter; Svetlana Vinnik, WS03/04 - Information Systems 13
14 PHP Basics Predefined Variables! When a HTML form is submitted to a PHP script, any values from that form will be automatically made available to that script! These variables are stored in the associative arrays $HTTP_POST_VARS, $HTTP_GET_VARS, and/or $HTTP_POST_FILES! Below is an example of a form asking to enter a password: <form action="foo.php" method="post"> Enter your password: <input type="password" name="pw"> <input type="submit"> </form>! In foo.php, the posted password can be retrieved as follows: <?php $password = $HTTP_POST_VARS['pw']; // further assignments?> Svetlana Vinnik, WS03/04 - Information Systems 14
15 PHP Basics Expressions! PHP is an expression-oriented language, in the sense that almost everything is an expression.! Expressions in PHP are of the same types as in programming languages: assigning values to variables, declaring constants, function calls, increment/decrement, comparisons, etc.! The following code contains some examples of expressions: $exp = 3; $base = 2; $power = pow($base,$exp); //function returning the $base //in the power of $exp, so $power=8 $b = $a = $power; // assign the value of $power, i.e. 8, // to both variables $a and $b $e = $d = ++$b; /* pre-increment, assign the incremented value of $b (9) to $d and $e */ $f = sqrt($d++); /* assign the square root of $d to $f, increment $d afterwards, $f=3, $d=10 */ Svetlana Vinnik, WS03/04 - Information Systems 15
16 PHP Basics Operators! Expressions are combined and manipulated using operators.! PHP operators should be familiar to you if you have any C, Java, or Perl experience.! The table shows the operators available in PHP with their associativity (A). Operators are shown in the descending order of precedence.! PHP has its specific operators, e.g. error control concatenation operator., backticks operator ` ` for specifying shell commands, and others. Operators new [! ~ (int) (float) (string) (array) * / % + -. << >> < <= >= > ==!= ===!== & ^ &&? : (conditional operator) = += -= *= /=.= %= &= = ^= ~= <<= >>= print and xor or A N/A right right left left left N/A N/A left left left left left left left right left left left Svetlana Vinnik, WS03/04 - Information Systems 16
17 PHP Basics Control Structures! Control structures are used to control the logical flow through a PHP script! The control structures in PHP are very similar to those in the C language (but have two interchangeable syntaxes as shown in the example below): " if " else " elseif " while " do while " for " foreach " break " continue " switch //example of 2 syntaxes for a while-loop $i = 1; while ($i <= 10) { print $i++; // the printed value would } //be $i before the increment /* another syntax */ $i = 1; while ($i <= 10): print $i; $i++; endwhile; Svetlana Vinnik, WS03/04 - Information Systems 17
18 PHP Basics Functions! A function is a named sequence of code statements that can optionally accept parameters and return a value.! PHP provides a large number of internal functions.! PHP also supports user-definable functions.! A function may be defined using syntax such as the following: function foo ($arg_1, $arg_2,..., $arg_n) { echo "Example function.\n"; return $retval; }! PHP4 supports variable numbers of arguments to functions.! Parameters are passed to functions via the argument list, which is a comma-delimited list of variables and/or constants.! PHP supports passing arguments by value (the default), passing by reference, and default argument values. Svetlana Vinnik, WS03/04 - Information Systems 18
19 PHP Basics Classes and Objects! The concept of classes and objects, as well as related notions of constructors, inheritance, overloading functions etc. in PHP are borrowed from object-oriented programming languages, such as Java and C++! The below code shows the use of classes and inheritance in PHP class A { //declaring class A function A() { //constructor echo "I am the constructor of A.<br>\n"; } } class B extends A { function foobar() { echo "I am a member function of B.<br>\n"; } } $b = new B; //create B instance with default constructor $b->foobar(); //invoke B s member function Svetlana Vinnik, WS03/04 - Information Systems 19
20 Database Connectivity with PHP! PHP supports a large number of databases natively! Additionally, PHP supports ODBC, so you can connect to any other database packaged with the required ODBC drivers! An existing PHP application can be ported from one database to another by changing just one line (database connection string)! Writing a database-enabled web page is incredibly simple! The following databases are currently supported: Adabas D dbase Empress FilePro (read-only) Ingres InterBase FrontBase msql Oracle (OCI7 and OCI8) Ovrimos PostgreSQL Solid Hyperwave IBM DB2 Informix Direct MS-SQL SQL MySQL ODBC Sybase Velocis Unix dbm Svetlana Vinnik, WS03/04 - Information Systems 20
21 Unified ODBC functions in PHP ODBC support and the Unified ODBC functions are not the same in PHP:! ODBC support is realized through iodbc (Independent ODBC) implemented and maintained by OpenLink Software. Building PHP with iodbc support enables you to use any ODBC-compliant drivers with your PHP applications! Unified ODBC functions do not involve ODBC, but rather speak natively to specific databases and just happen to share the same names and syntax as the ODBC functions. Databases currently supported by the Unified ODBC functions: Adabas D, IBM DB2, iodbc, Solid, and Sybase SQL Anywhere. To access above databases with PHP, install the required libraries. For example, to connect to IBM DB2, install PHP as follows:./configure --without-mysql -with-ibm-db2= / /usr/imbdb2/v7.2/ --with-apache=/usr/local/httpd/ Svetlana Vinnik, WS03/04 - Information Systems 21
22 Step 1: Connecting to the Database! To connect to a specific database, you have to specify a database s name, a valid user name and a password associated with it! Let us first provide a HTML form for entering user login information: <html> <head><title>datenbank Login</title></head> <body> <h3>bitte melden Sie sich an.</h3> <form action="connection.php" method="post"> <p>username <input type="text" name="user"></p> <p>datenbank <select name="db"> <option value="infosys">infosys</option> <option value="moviedb">moviedb</option></select></p> <p><input type=submit value="anmelden"></p> </form> </body> </html> Svetlana Vinnik, WS03/04 - Information Systems 22
23 Step 1: Connecting to the Database! Now, in the connection.php, start a session and attempt to connect to the database with the user name and the password specified: <?php session_start()?> <html> <head><title>datenbankverbindung</title></head> <body> <?php $user=$http_post_vars['user']; $db=$http_post_vars['db']; $connectionid = odbc_connect($db, $user, infosys"); if($connectionid!= 0) { echo "Sie sind als Benutzer <b> $user </b> <br> mit der Datenbank <b> $db </b> verbunden."; odbc_close($connectionid); } else echo "<p>verbindung ist fehlgeschlagen!\n</p>";?> </body> </html> Svetlana Vinnik, WS03/04 - Information Systems 23
24 Step 2: Create an SQL Query! The below script demonstrates how an SQL query can be constructed and passed over to the database for execution: <?php session_start()?> <html> <head><title>executing a query</title></head> <body> <?php $connectionid = odbc_connect("infosys", "nobody", "nobody"); $p1="select actor_id FROM Actor WHERE name='potente, Franka'"; $p2="select film_id from Act_Film WHERE actor_id IN ($p1)"; $query = "SELECT * FROM Film WHERE film_id IN ($p2)"; echo "Your query : $query "; if($result = odbc_exec($connectionid, $query)) odbc_result_all($result); odbc_close($connectionid);?> </body> </html> Svetlana Vinnik, WS03/04 - Information Systems 24
25 Step 3: Formatting the Results! PHP provides functions for retrieving and processing the results of an SQL query, executed with odbc_exec().! Some of those functions are listed below: int odbc_num_fields(resource result_id) int odbc_num_rows(resource result_id) string odbc_field_name(resource result_id, int field) bool odbc_fetch_row(resource result_id [, int row]) string odbc_result(resource result_id, mixed field) string odbc_field_type(resource result_id, int field) returns the number of columns in an ODBC result returns the number of rows in an ODBC result returns the column name under the given column number in an ODBC result fetches the specified row of the data in an ODBC result returns the value of the field specified by name or position returns the SQL type of the field specified Svetlana Vinnik, WS03/04 - Information Systems 25
26 Step 3: Formatting the Results! Here is a PHP code demonstrating the use of the functions introduced in the previous slide for formatting the query result: if($result = odbc_exec($connectionid, $query)) { $columns = odbc_num_fields($result); $rows = odbc_num_rows($result); echo "<p>the query returned $rows entries:"; echo "<table width=90% border=2>"; echo "<tr bgcolor=\"#eaecef\"><th>#</th>"; for($i=1; $i <=$columns; $i++) echo "<th>".odbc_field_name($result, $i)."</th>\n"; echo "</tr>\n<tr>"; $counter=1; while(odbc_fetch_row($result)) { echo "<tr>\n<td>".$counter++."</td>"; for($i=1; $i <=$columns; $i++) echo "<td>".odbc_result($result, $i)."</td>\n"; echo "</tr>\n"; } echo "</tr></table>"; } Svetlana Vinnik, WS03/04 - Information Systems 26
27 Further References! PHP Manual (the official PHP reference) under Unified ODBC functions (Chapter from the above manual) under Using PHP with ODBC A User Guide (somewhat Windows oriented, but contains good examples) under Connecting PHP Applications to IBM DB2 Universal Database (technical article with installation instructions and an example) under ott.html! PHPEveryWhere (a huge PHP portal with lots of useful links) under (PHP portal for German speakers) Svetlana Vinnik, WS03/04 - Information Systems 27
28 Hosting your PHP-scripts! Place the webpages and PHP-scripts you want to execute into the directory /net/www_io/infosys/username! Make sure you set the permissions for your webpages properly (i.e. readable for everybody) $ chmod 644 /net/www_io/infosys/username/*! Now you can make your scripts work by access them through a webbrowser under the following URL: Enjoy your time with PHP! Svetlana Vinnik, WS03/04 - Information Systems 28
PHP Hypertext Preprocessor
PHP Hypertext Preprocessor A brief survey Stefano Fontanelli stefano.fontanelli@sssup.it January 16, 2009 Stefano Fontanelli stefano.fontanelli@sssup.it PHP Hypertext Preprocessor January 16, 2009 1 /
More informationPrincess Nourah bint Abdulrahman University. Computer Sciences Department
Princess Nourah bint Abdulrahman University Computer Sciences Department 1 And use http://www.w3schools.com/ PHP Part 1 Objectives Introduction to PHP Computer Sciences Department 4 Introduction HTML CSS
More informationLecture 12. PHP. cp476 PHP
Lecture 12. PHP 1. Origins of PHP 2. Overview of PHP 3. General Syntactic Characteristics 4. Primitives, Operations, and Expressions 5. Control Statements 6. Arrays 7. User-Defined Functions 8. Objects
More informationPHP? PHP (recursive acronym "PHP: Hypertext Preprocessor") Open Source general-purpose scripting language Web development
Intro to PHP PHP? PHP (recursive acronym "PHP: Hypertext Preprocessor") Open Source general-purpose scripting language Web development Ugrađen u HTML. HTML script sa kodom koji nešto radi Izvršavanje na
More informationWhat is PHP? [1] Figure 1 [1]
PHP What is PHP? [1] PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open source scripting language PHP scripts are executed on the server PHP is free to download and use Figure
More informationIntroduction of PHP Created By: Umar Farooque Khan
1 Introduction of PHP Created By: Umar Farooque Khan 2 What is PHP? PHP stand for hypertext pre-processor. PHP is a general purpose server side scripting language that is basically used for web development.
More informationChapter 7:- PHP. Compiled By:- Sanjay Patel Assistant Professor, SVBIT.
Chapter 7:- PHP Compiled By:- Assistant Professor, SVBIT. Outline Starting to script on server side, Arrays, Function and forms, Advance PHP Databases:-Basic command with PHP examples, Connection to server,
More informationCERTIFICATE IN WEB PROGRAMMING
COURSE DURATION: 6 MONTHS CONTENTS : CERTIFICATE IN WEB PROGRAMMING 1. PROGRAMMING IN C and C++ Language 2. HTML/CSS and JavaScript 3. PHP and MySQL 4. Project on Development of Web Application 1. PROGRAMMING
More informationAgenda. 1. Brief History of PHP. 2. Getting started. 3. Examples
PHP An Introduction Agenda 1. Brief History of PHP 2. Getting started 3. Examples Brief History of PHP PHP (PHP: Hypertext Preprocessor) was created by Rasmus Lerdorf in 1994. It was initially developed
More informationPHP Personal Home Page PHP: Hypertext Preprocessor (Lecture 35-37)
PHP Personal Home Page PHP: Hypertext Preprocessor (Lecture 35-37) A Server-side Scripting Programming Language An Introduction What is PHP? PHP stands for PHP: Hypertext Preprocessor. It is a server-side
More informationThe PHP language. Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web
Web programming The PHP language Our objective Teaching you everything about PHP? Not exactly Goal: teach you how to interact with a database via web Access data inserted by users into HTML forms Interact
More informationWeb Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel
Web Application Development (WAD) V th Sem BBAITM(Unit-1) By: Binit Patel Introduction: PHP (Hypertext Preprocessor) was invented by Rasmus Lerdorf in 1994. First it was known as Personal Home Page. Later
More informationThis lecture. PHP tags
This lecture Databases I This covers the (absolute) basics of and how to connect to a database using MDB2. (GF Royle 2006-8, N Spadaccini 2008) I 1 / 24 (GF Royle 2006-8, N Spadaccini 2008) I 2 / 24 What
More informationDatabases PHP I. (GF Royle, N Spadaccini ) PHP I 1 / 24
Databases PHP I (GF Royle, N Spadaccini 2006-2010) PHP I 1 / 24 This lecture This covers the (absolute) basics of PHP and how to connect to a database using MDB2. (GF Royle, N Spadaccini 2006-2010) PHP
More informationPHP: Hypertext Preprocessor. A tutorial Introduction
PHP: Hypertext Preprocessor A tutorial Introduction Introduction PHP is a server side scripting language Primarily used for generating dynamic web pages and providing rich web services PHP5 is also evolving
More informationGet in Touch Module 1 - Core PHP XHTML
PHP/MYSQL (Basic + Advanced) Web Technologies Module 1 - Core PHP XHTML What is HTML? Use of HTML. Difference between HTML, XHTML and DHTML. Basic HTML tags. Creating Forms with HTML. Understanding Web
More informationIntroduction to Programming Using Java (98-388)
Introduction to Programming Using Java (98-388) Understand Java fundamentals Describe the use of main in a Java application Signature of main, why it is static; how to consume an instance of your own class;
More informationFachgebiet Technische Informatik, Joachim Zumbrägel
Computer Network Lab 2017 Fachgebiet Technische Informatik, Joachim Zumbrägel Overview Internet Internet Protocols Fundamentals about HTTP Communication HTTP-Server, mode of operation Static/Dynamic Webpages
More informationPHP Reference. To access MySQL manually, run the following command on the machine, called Sources, where MySQL and PhP have been installed:
PHP Reference 1 Preface This tutorial is designed to teach you all the PHP commands and constructs you need to complete your PHP project assignment. It is assumed that you have never programmed in PHP
More informationDatabase Systems: Design, Implementation, and Management Tenth Edition. Chapter 14 Database Connectivity and Web Technologies
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 14 Database Connectivity and Web Technologies Database Connectivity Mechanisms by which application programs connect and communicate
More informationCourse Topics. IT360: Applied Database Systems. Introduction to PHP
IT360: Applied Database Systems Introduction to PHP Chapter 1 and Chapter 6 in "PHP and MySQL Web Development" Course Topics Relational model SQL Database design Normalization PHP MySQL Database administration
More informationPHP by Pearson Education, Inc. All Rights Reserved.
PHP 1992-2012 by Pearson Education, Inc. All Client-side Languages User-agent (web browser) requests a web page JavaScript is executed on PC http request Can affect the Browser and the page itself http
More informationCSCB20 Week 8. Introduction to Database and Web Application Programming. Anna Bretscher* Winter 2017
CSCB20 Week 8 Introduction to Database and Web Application Programming Anna Bretscher* Winter 2017 *thanks to Alan Rosselet for providing the slides these are adapted from. Web Programming We have seen
More informationCS6501 IP Unit IV Page 1
CS6501 Internet Programming Unit IV Part - A 1. What is PHP? PHP - Hypertext Preprocessor -one of the most popular server-side scripting languages for creating dynamic Web pages. - an open-source technology
More informationB. V. Patel Institute of BMC & IT 2014
Unit 1: Introduction Short Questions: 1. What are the rules for writing PHP code block? 2. Explain comments in your program. What is the purpose of comments in your program. 3. How to declare and use constants
More informationPHP. Interactive Web Systems
PHP Interactive Web Systems PHP PHP is an open-source server side scripting language. PHP stands for PHP: Hypertext Preprocessor One of the most popular server side languages Second most popular on GitHub
More informationPHP Introduction. Some info on MySQL which we will cover in the next workshop...
PHP and MYSQL PHP Introduction PHP is a recursive acronym for PHP: Hypertext Preprocessor -- It is a widely-used open source general-purpose serverside scripting language that is especially suited for
More informationImportant Points about PHP:
Important Points about PHP: PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language that is embedded in HTML. It is used to manage dynamic content, databases, session tracking,
More informationCourse Topics. The Three-Tier Architecture. Example 1: Airline reservations. IT360: Applied Database Systems. Introduction to PHP
Course Topics IT360: Applied Database Systems Introduction to PHP Database design Relational model SQL Normalization PHP MySQL Database administration Transaction Processing Data Storage and Indexing The
More informationHands-On Perl Scripting and CGI Programming
Hands-On Course Description This hands on Perl programming course provides a thorough introduction to the Perl programming language, teaching attendees how to develop and maintain portable scripts useful
More informationDistributed Databases and Remote Access to a Database
Distributed Databases and Remote Access to a Database Table of Contents 1 Distributed Databases... 2 2 Internet (Overview)... 4 3 Internet-Based Applications... 9 3.1 Server-Side Scripting... 9 3.2 Client-Side
More informationDatabase Applications
Database Applications Database Programming Application Architecture Objects and Relational Databases John Edgar 2 Users do not usually interact directly with a database via the DBMS The DBMS provides
More informationLecture 7 PHP Basics. Web Engineering CC 552
Lecture 7 PHP Basics Web Engineering CC 552 Overview n Overview of PHP n Syntactic Characteristics n Primitives n Output n Control statements n Arrays n Functions n WampServer Origins and uses of PHP n
More informationProgramming for the Web with PHP
Aptech Ltd Version 1.0 Page 1 of 11 Table of Contents Aptech Ltd Version 1.0 Page 2 of 11 Abstraction Anonymous Class Apache Arithmetic Operators Array Array Identifier arsort Function Assignment Operators
More informationJDBC. Sun Microsystems has included JDBC API as a part of J2SDK to develop Java applications that can communicate with databases.
JDBC The JDBC TM API is the application programming interface that provides universal data access for the Java TM platform. In other words, the JDBC API is used to work with a relational database or other
More informationCopyright 2016 Ramez Elmasri and Shamkant B. Navathe
Chapter 11 Outline A Simple PHP Example Overview of Basic Features of PHP Overview of PHP Database Programming Slide 11-2 Web Database Programming Using PHP Techniques for programming dynamic features
More informationPHP. MIT 6.470, IAP 2010 Yafim Landa
PHP MIT 6.470, IAP 2010 Yafim Landa (landa@mit.edu) LAMP We ll use Linux, Apache, MySQL, and PHP for this course There are alternatives Windows with IIS and ASP Java with Tomcat Other database systems
More informationPHP INTERVIEW QUESTION-ANSWERS
1. What is PHP? PHP (recursive acronym for PHP: Hypertext Preprocessor) is the most widely used open source scripting language, majorly used for web-development and application development and can be embedded
More informationCourse Content. Outline of Lecture 10. Objectives of Lecture 10 DBMS & WWW. CMPUT 499: DBMS and WWW. Dr. Osmar R. Zaïane. University of Alberta 4
Technologies and Applications Winter 2001 CMPUT 499: DBMS and WWW Dr. Osmar R. Zaïane Course Content Internet and WWW Protocols and beyond Animation & WWW Java Script Dynamic Pages Perl Intro. Java Applets
More informationICOM 5016 Database Systems. Database Users. User Interfaces and Tools. Chapter 8: Application Design and Development.
Chapter 8: Application Design and Development ICOM 5016 Database Systems Web Application Amir H. Chinaei Department of Electrical and Computer Engineering University of Puerto Rico, Mayagüez User Interfaces
More informationWeb Scripting using PHP
Web Scripting using PHP Server side scripting So what is a Server Side Scripting Language? Programming language code embedded into a web page PERL PHP PYTHON ASP Different ways of scripting the Web Programming
More informationChapter 11 Outline. A Simple PHP Example Overview of Basic Features of PHP Overview of PHP Database Programming. Slide 11-2
Chapter 11 Outline A Simple PHP Example Overview of Basic Features of PHP Overview of PHP Database Programming Slide 11-2 1 Web Database Programming Using PHP Techniques for programming dynamic features
More informationSAS ODBC Driver. Overview: SAS ODBC Driver. What Is ODBC? CHAPTER 1
1 CHAPTER 1 SAS ODBC Driver Overview: SAS ODBC Driver 1 What Is ODBC? 1 What Is the SAS ODBC Driver? 2 Types of Data Accessed with the SAS ODBC Driver 3 Understanding SAS 4 SAS Data Sets 4 Unicode UTF-8
More informationWeb Scripting using PHP
Web Scripting using PHP Server side scripting No Scripting example - how it works... User on a machine somewhere Server machine So what is a Server Side Scripting Language? Programming language code embedded
More informationCS 377 Database Systems. Li Xiong Department of Mathematics and Computer Science Emory University
CS 377 Database Systems Database Programming in PHP Li Xiong Department of Mathematics and Computer Science Emory University Outline A Simple PHP Example Overview of Basic Features of PHP Overview of PHP
More informationIntroduction JDBC 4.1. Bok, Jong Soon
Introduction JDBC 4.1 Bok, Jong Soon javaexpert@nate.com www.javaexpert.co.kr What is the JDBC TM Stands for Java TM Database Connectivity. Is an API (included in both J2SE and J2EE releases) Provides
More informationcis20.2-spring2010-sklar-lecii.4 1
cis20.2 design and implementation of software applications 2 spring 2010 lecture # II.4 today s topics: introduction to php on-line documentation http://www.php.net (php home page) http://www.php.net/manual/en/
More informationCourse Syllabus. Course Title. Who should attend? Course Description. PHP ( Level 1 (
Course Title PHP ( Level 1 ( Course Description PHP '' Hypertext Preprocessor" is the most famous server-side programming language in the world. It is used to create a dynamic website and it supports many
More informationFinal-Term Papers Solved MCQS with Reference
Solved MCQ(S) From FinalTerm Papers BY Arslan Jan 14, 2018 V-U For Updated Files Visit Our Site : Www.VirtualUstaad.blogspot.com Updated. Final-Term Papers Solved MCQS with Reference 1. The syntax of PHP
More informationOptions. Real SQL Programming 1. Stored Procedures. Embedded SQL
Real 1 Options We have seen only how SQL is used at the generic query interface an environment where we sit at a terminal and ask queries of a database. Reality is almost always different: conventional
More informationPHP for PL/SQL Developers. Lewis Cunningham JP Morgan Chase
PHP for PL/SQL Developers Lewis Cunningham JP Morgan Chase 1 What is PHP? PHP is a HTML pre-processor PHP allows you to generate HTML dynamically PHP is a scripting language usable on the web, the server
More informationCOMP284 Scripting Languages Lecture 9: PHP (Part 1) Handouts
COMP284 Scripting Languages Lecture 9: PHP (Part 1) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool Contents
More informationCPSC 481: CREATIVE INQUIRY TO WSBF
CPSC 481: CREATIVE INQUIRY TO WSBF J. Yates Monteith, Fall 2013 Schedule HTML and CSS PHP HTML Hypertext Markup Language Markup Language. Does not execute any computation. Marks up text. Decorates it.
More informationActive Server Pages Architecture
Active Server Pages Architecture Li Yi South Bank University Contents 1. Introduction... 2 1.1 Host-based databases... 2 1.2 Client/server databases... 2 1.3 Web databases... 3 2. Active Server Pages...
More informationCreating HTML files using Notepad
Reference Materials 3.1 Creating HTML files using Notepad Inside notepad, select the file menu, and then Save As. This will allow you to set the file name, as well as the type of file. Next, select the
More informationLecture 2 Unix and PHP. INLS 523 Web Databases Spring 2013 Rob Capra
Lecture 2 Unix and PHP INLS 523 Web Databases Spring 2013 Rob Capra Server-Side Scripting Server-side scripting Scripts run on the server Scripts return HTML to the client Apache Open-source Perl and PHP
More informationInf 202 Introduction to Data and Databases (Spring 2010)
Inf 202 Introduction to Data and Databases (Spring 2010) Jagdish S. Gangolly Informatics CCI SUNY Albany April 22, 2010 Database Processing Applications Standard Database Processing Client/Server Environment
More informationPace University. Fundamental Concepts of CS121 1
Pace University Fundamental Concepts of CS121 1 Dr. Lixin Tao http://csis.pace.edu/~lixin Computer Science Department Pace University October 12, 2005 This document complements my tutorial Introduction
More informationPHP 5 Introduction. What You Should Already Know. What is PHP? What is a PHP File? What Can PHP Do? Why PHP?
PHP 5 Introduction What You Should Already Know you should have a basic understanding of the following: HTML CSS What is PHP? PHP is an acronym for "PHP: Hypertext Preprocessor" PHP is a widely-used, open
More informationHello everyone! Page 1. Your folder should look like this. To start with Run your XAMPP app and start your Apache and MySQL.
Hello everyone! Welcome to our PHP + MySQL (Easy to learn) E.T.L. free online course Hope you have installed your XAMPP? And you have created your forms inside the studio file in the htdocs folder using
More informationPHP: The Basics CISC 282. October 18, Approach Thus Far
PHP: The Basics CISC 282 October 18, 2017 Approach Thus Far User requests a webpage (.html) Server finds the file(s) and transmits the information Browser receives the information and displays it HTML,
More informationVarargs Training & Software Development Centre Private Limited, Module: HTML5, CSS3 & JavaScript
PHP Curriculum Module: HTML5, CSS3 & JavaScript Introduction to the Web o Explain the evolution of HTML o Explain the page structure used by HTML o List the drawbacks in HTML 4 and XHTML o List the new
More informationCOSC344 Database Theory and Applications PHP & SQL. Lecture 14
COSC344 Database Theory and Applications Lecture 14: PHP & SQL COSC344 Lecture 14 1 Last Lecture Java & SQL Overview This Lecture PHP & SQL Revision of the first half of the lectures Source: Lecture notes,
More informationWeb Programming Paper Solution (Chapter wise)
Introduction to web technology Three tier/ n-tier architecture of web multitier architecture (often referred to as n-tier architecture) is a client server architecture in which presentation, application
More informationCSC Web Programming. Introduction to JavaScript
CSC 242 - Web Programming Introduction to JavaScript JavaScript JavaScript is a client-side scripting language the code is executed by the web browser JavaScript is an embedded language it relies on its
More informationJavaScript and PHP. JavaScript and PHP. DD1335 (Lecture 8) Basic Internet Programming Spring / 26
JavaScript and PHP DD1335 (Lecture 8) Basic Internet Programming Spring 2010 1 / 26 A little about JavaScript DD1335 (Lecture 8) Basic Internet Programming Spring 2010 2 / 26 JavaScript What is it good
More informationPHP & My SQL Duration-4-6 Months
PHP & My SQL Duration-4-6 Months Overview of the PHP & My SQL Introduction of different Web Technology Working with the web Client / Server Programs Server Communication Sessions Cookies Typed Languages
More informationIntroducing the SAS ODBC Driver
1 CHAPTER 1 Introducing the SAS ODBC Driver Overview: The SAS ODBC Driver 1 What Is ODBC? 2 What Is the SAS ODBC Driver? 2 Types of Data Accessed with the SAS ODBC Driver 3 Understanding SAS 5 SAS Data
More informationINTERNET PROGRAMMING. Software Engineering Branch / 4 th Class Computer Engineering Department University of Technology
INTERNET PROGRAMMING Software Engineering Branch / 4 th Class Computer Engineering Department University of Technology OUTLINES PHP Basic 2 ARCHITECTURE OF INTERNET database mysql server-side programming
More informationINSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad
INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad - 500 043 INFORMATION TECHNOLOGY TUTORIAL QUESTION BANK Course Name Course Code Class Branch : Web Technologies : ACS006 : B. Tech
More informationReal Application Security Administration
Oracle Database Real Application Security Administration Console (RASADM) User s Guide 12c Release 2 (12.2) E85615-01 June 2017 Real Application Security Administration Oracle Database Real Application
More informationChapter 13 XML: Extensible Markup Language
Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server
More informationLecture 3: The Basics of JavaScript. Background. Needs for Programming Capability. Origin of JavaScript. Using Client-side JavaScript
Lecture 3: The Basics of JavaScript Wendy Liu CSC309F Fall 2007 Background Origin and facts 1 2 Needs for Programming Capability XHTML and CSS allows the browser to passively display static content How
More informationStatic Webpage Development
Dear Student, Based upon your enquiry we are pleased to send you the course curriculum for PHP Given below is the brief description for the course you are looking for: - Static Webpage Development Introduction
More informationPart I. Web Technologies for Interactive Multimedia
Multimedia im Netz Wintersemester 2012/2013 Part I Web Technologies for Interactive Multimedia 1 Chapter 2: Interactive Web Applications 2.1! Interactivity and Multimedia in the WWW architecture 2.2! Server-Side
More informationPHP and MySQL for Dynamic Web Sites. Intro Ed Crowley
PHP and MySQL for Dynamic Web Sites Intro Ed Crowley Class Preparation If you haven t already, download the sample scripts from: http://www.larryullman.com/books/phpand-mysql-for-dynamic-web-sitesvisual-quickpro-guide-4thedition/#downloads
More informationPrinceton University COS 333: Advanced Programming Techniques A Subset of PHP
Princeton University COS 333: Advanced Programming Techniques A Subset of PHP Program Structure -----------------------------------------------------------------------------------
More informationJDBC Drivers Type. JDBC drivers implement the defined interfaces in the JDBC API for interacting with your database server.
JDBC Drivers Type 1 What is JDBC Driver? JDBC drivers implement the defined interfaces in the JDBC API for interacting with your database server. For example, using JDBC drivers enable you to open database
More informationCOMP102: Introduction to Databases, 23
COMP102: Introduction to Databases, 23 Dr Muhammad Sulaiman Khan Department of Computer Science University of Liverpool U.K. 04 April, 2011 Programming with SQL Specific topics for today: Client/Server
More informationCopyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 11 Introduction to PHP
Chapter 11 Introduction to PHP 11.1 Origin and Uses of PHP Developed by Rasmus Lerdorf in 1994 PHP is a server-side scripting language, embedded in XHTML pages PHP has good support for form processing
More informationLecture 3: Web Servers / PHP and Apache. CS 383 Web Development II Monday, January 29, 2018
Lecture 3: Web Servers / PHP and Apache CS 383 Web Development II Monday, January 29, 2018 Server Configuration One of the most common configurations of servers meant for web development is called a LAMP
More informationCOMP284 Scripting Languages Lecture 11: PHP (Part 3) Handouts
COMP284 Scripting Languages Lecture 11: PHP (Part 3) Handouts Ullrich Hustadt Department of Computer Science School of Electrical Engineering, Electronics, and Computer Science University of Liverpool
More informationOracle Database. Installation and Configuration of Real Application Security Administration (RASADM) Prerequisites
Oracle Database Real Application Security Administration 12c Release 1 (12.1) E61899-04 May 2015 Oracle Database Real Application Security Administration (RASADM) lets you create Real Application Security
More informationTypes of Databases. Types of Databases. Types of Databases. Databases and Web. Databases and Web. Relational databases may also have indexes
Types of Databases Relational databases contain stuctured data tables, columns, fixed datatype for each column Text databases are available for storing non-structured data typically text databases store
More informationCOMS 469: Interactive Media II
COMS 469: Interactive Media II Agenda Project One PHP Preview Project One Grading Methodology Return Project One & Evaluation Sheet Project One Evaluation Methodology Consider each project in and of itself
More informationBonus Content. Glossary
Bonus Content Glossary ActiveX control: A reusable software component that can be added to an application, reducing development time in the process. ActiveX is a Microsoft technology; ActiveX components
More informationDATABASE SYSTEMS. Introduction to web programming. Database Systems Course, 2016
DATABASE SYSTEMS Introduction to web programming Database Systems Course, 2016 AGENDA FOR TODAY Client side programming HTML CSS Javascript Server side programming: PHP Installing a local web-server Basic
More information4. กก ( Web-based Technology ) (System Development Life Cycle : SDLC) ก ก ก
2 ก ก ก ก ก ก ก 1. ก ก ก ก 1.1 ก ก 1.2 ก ก 2. ก ก.NET 3. ก ก ก 4. กก ( Web-based Technology ) 5. ก ก 6. ก ก ก ก ก 1. ก ก ก (System Development Life Cycle: SDLC) ก (System Development Life Cycle : SDLC)
More information13. Databases on the Web
13. Databases on the Web Requirements for Web-DBMS Integration The ability to access valuable corporate data in a secure manner Support for session and application-based authentication The ability to interface
More informationCNIT 129S: Securing Web Applications. Ch 10: Attacking Back-End Components
CNIT 129S: Securing Web Applications Ch 10: Attacking Back-End Components Injecting OS Commands Web server platforms often have APIs To access the filesystem, interface with other processes, and for network
More informationPHP Hypertext Preprocessor: Tools for Webpage Management. Michael Watson ICTN
PHP Hypertext Preprocessor: Tools for Webpage Management Michael Watson ICTN 4040-001 Michael Watson Page 1 4/17/2006 In today s use of the Internet, webpage design is an interest for both businesses and
More informationLet's Look Back. We talked about how to create a form in HTML. Forms are one way to interact with users
Introduction to PHP Let's Look Back We talked about how to create a form in HTML Forms are one way to interact with users Users can enter information into forms which can be used by you (programmer) We
More informationPHP. Introduction. PHP stands for PHP: Hypertext Preprocessor PHP is a server-side scripting language, like ASP PHP scripts are executed on the server
PHP Introduction Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is
More informationPHP 1. Introduction Temasek Polytechnic
PHP 1 Introduction Temasek Polytechnic Background Open Source Apache License Free to redistribute with/without source code http://www.apache.org/license.txt Backed by Zend Corporation http://www.zend.com
More informationAn Introduction to JavaScript & Bootstrap Basic concept used in responsive website development Form Validation Creating templates
PHP Course Contents An Introduction to HTML & CSS Basic Html concept used in website development Creating templates An Introduction to JavaScript & Bootstrap Basic concept used in responsive website development
More informationChapter 10 Web-based Information Systems
Prof. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/205 3275 dessloch@informatik.uni-kl.de Chapter 10 Web-based Information Systems Role of the WWW for IS Initial
More informationXML Based Learning System. Abstract. Scope of Project. Design Overview
Proceedings of Student/Faculty Research Day, CSIS, Pace University, May 7th, 2004 XML Based Learning System Prashant Karmarkar, Alexander Roda, Brendan Nolan Abstract The system will allow an XML class
More informationSetting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a
Setting Up a Development Server What Is a WAMP, MAMP, or LAMP? Installing a WAMP on Windows Testing the InstallationAlternative WAMPs Installing a LAMP on Linux Working Remotely Introduction to web programming
More informationIntroduction to Databases. Key Concepts. Calling a PHP Script 5/17/2012 PHP I
Introduction to Databases PHP I PHP in HTML Calling functions Form variables Identifies and data types Operators Decisions Conditionals Arrays Multi dimensional arrays Sorting arrays Array manipulation
More information