Server-side: PHP and MySQL (continued)

Save this PDF as:
 WORD  PNG  TXT  JPG

Size: px
Start display at page:

Download "Server-side: PHP and MySQL (continued)"

Transcription

1 Server-side: PHP and MySQL (continued) some remarks check on variable: isset ( $variable )? more functionality in a single form more functionality in a single PHP-file updating the database data validation at server-side (always) regular expressions with PHP 1 mysql_real_escape_string mysql_real_escape_string -function were reported The mysql_real_escape_string(..) function requires a connection to the database to be open. If one isn't open it will try to open one with the existing defaults. All you need to do is make sure you connect to the mysql database before using mysql_real_escape_string(..)., -&-. #%/00 /00 /00 Suggestion: the here document - variant of php-echo: echo <<<XXX.. XXX; For instance: echo <<<END This uses the "here document" syntax to output multiple lines with $variable interpolation. Note that the here document terminator must appear on a line with just a semicolon. No extra whitespace END; " #$#%% & '()* + 3 echo <<<MYEND <form action="" method="post" name="userinput" > <b><i>your query-command:</i></b> <input type="text" name="querytext" value="$querytext" size="0" /> <input type="submit" value="submit query" /> MYEND; , <html><head><title>more submits</title></head> <h>example with more 'submits'</h> <form id="myform" action=" method="post" > <tr><td>membernr.:</td><td><input type="text" name="number" size= /></td></tr> <tr><td>firstname:</td><td><input type="text" name="firstname" size=8 /></td></tr> <tr><td><input type="submit" name="idsubmit" value="change" /></td> <td><input type="submit" name="idsubmit" value="delete" /></td></tr> </table> Response from server-side: Next form data arrived by 'POST'-method: number = 1 firstname = Alice idsubmit = Change Next form data arrived by 'POST'-method: number = 1 firstname = Alice idsubmit = Delete or: if ( isset ( $_POST [ 'idsubmit' ]) ).... if ( $idsubmit == "Delete" ) // perform Delete-operation 6 RU Nijmegen, voorjaar 009 1

2 1-&- 6 #% <DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > <html><head><title>combining functionality in one file</ title> <link href="mystyles.css" rel="stylesheet" type="text/css" /> <script src="javascripts.js" type="text/javascript"></script></head> <div class="top"> include "top.inc" ; <div class="main"> if ( isset ( $_POST [ 'fullname' ) ) include 'startform.html' ; include 'startform.html' ; include 'request.php' ; <= will always be shown Alternatives (more or less..): if ( empty( $_POST ['fullname'] )) if ( $_POST ['fullname'] ) // n.p. <= only shown at startup <= shown at second call (with a posted fullname ) Later: we ll look to the 7 alternative: startform.php 1 -&-#% Content of startform.html : <h>the 'startform.html'-part</h> <form name="testform" method="post" action="" > <tr><td>name:</td> <td><input type="text" name="fullname" value="" /></td></tr> <tr><td>age:</td> <td><input type="text" name="age" value="" /></td></tr> <tr><td><input type="submit" value="submit" /></td> <td><input type="reset" value="reset" /> <input type="button" value="clear" onclick="clear_all();"/> </td></tr> </table> Content of request.php : action="" if action -file is same as actual file Fields are empty Why? $fullname = $_POST['fullname'] ; $age = $_POST['age'] ; echo "<p />Received: values: '$fullname' and '$age' to.." ; 8 More functionality in one single PHP-file (cont. ) Content of startform.php : $fullname = $_POST ['fullname'] ; $age = $_POST ['age'] ; echo <<<END <h>the 'startform.php'-part</h> Different behavior at first time versus at second time <form name="testform" method="post" action="" > <tr><td>name:</td> <td><input type="text" name="fullname" value="$fullname" /></td></tr> <tr><td>age:</td> <td><input type="text" name="age" value="$age" /></td></tr> <tr><td><input type="submit" value="submit" /></td> <td><input type="reset" value="reset" /> <input type="button" value="clear" onclick="clear_all();"/></td></tr> </table> <script>document.testform.fullname.select(); </script> END; 9 3 #: % <html><head><title>test with isset(..)</title></head> <h3>test with isset(variabele)</h3> <form action=" method="post" > Give a number value: <input type="text" name="number" size="5" /> <p><input type="submit" value="calculate square" /> <hr /> if ( isset ( $_POST['number'] ) ) $number = $_POST['number'] ; echo "<h>we received number = $number</h>" ; $square = $number*$number ; echo "Its square-value is: $square<br />" ; echo "<form action=\" method=\"post\">\n"; echo "Give your firstname: <input type=\"text\" name=\"firstname\" /> " ; echo "<p><input type=\"submit\" value=\"send name\" /></p>\n"; echo "<hr />" ; if ( isset ( $_POST['firstname'] ) ) $firstname = $_POST['firstname'] ; echo "<p>hello $firstname, glad to see you</p>" ; if ( isset($_post['number']) ) echo "In this part we don't know a variable 'number' " ; echo "<hr />" ; ; < = 9 10 #1>0% "? 7 A >08 B C D >08 #1>0%#% The SQL command for deleting data from a table is: DELETE FROM table_name WHERE <condition> Syntax of the SQL-Update-command: UPDATE table_name SET column_name_1 =, column_name_ = WHERE <conditie> Do not forget the WHERE -part, because if omitted, the whole table will be emptied (all records in that table will be deleted),-&-8 $query = "UPDATE Members SET Address = \"$Address\", Cityname= \"$Cityname\" WHERE Membernr= \"$Membernr\" " ; 11 1 RU Nijmegen, voorjaar 009

3 E, # % 3 5 1>0 8 " 8 extract -- Import variables into the current symbol table from an array 9 39F# 8% $membernr = $_POST [ 'membernr' ] ; $amount = $_POST [ 'amount' ] ; G extract ( $_POST ) ; $ # % C -& &- <html><head><title>php-test on not Empty</title></head> function isempty ( $somevar ) return ( strlen($somevar) == 0) ; # -&- % extract ( $_POST, EXTR_SKIP ) ; // if there is a $_POST['firstname'], // we will get the associated $firstname if ( isset ( $firstname ) ) echo "<form action=\" method=\"post\" >\n" ; echo "Give firstname: <input type=\"text\" name=\"firstname\" />\n" ; echo "<p><input type=\"submit\" value=\"submit to test on server\" /></p>\n" ; echo "\n"; echo "We received: \$firstname = $firstname " ; if ( isempty ( $firstname ) ) // test on server/side echo "<br />String is empty... we shall NOT proceed... " ; echo "<br />String is not empty... we may proceed..." ; 1 E <html> <head><title>php-test on not Empty</title></head> <form action=" method="post" > Give firstname: <input type="text" name="firstname" /> <p><input type="submit" value="submit to test on server" /></p> A% H < #$#: %=9 <html> <head><title>php-test on not Empty</title></head> We received: $firstname = <br />String is empty... we shall NOT proceed... B% <html> <head><title>php-test on not Empty</title></head> We received: $firstname = Alice <br />String is not empty... we may proceed... The PHP-function extract( ) + a warning extract Import variables into the current symbol table from an array Syntax: int extract ( array $var_array [, int $extract_type [, string $prefix ]] ) This function is used to import variables from an array into the current symbol table. The function returns the number of variables extracted. It takes an associative array var_array and treats keys as variable names and values as variable values. For each key/value pair it will create a variable in the current symbol table, subject to extract_type and prefix parameters. extract() also checks for collisions with existing variables in the symbol table. The "#-&-% way invalid/numeric keys and collisions are treated is determined by the extract_type. It can be one of the following values: # % EXTR_OVERWRITE : If there is a collision, overwrite the existing variable. # EXTR_SKIP : If there is a collision, don't overwrite the existing variable.. (and many more) % Warning Do not use extract() on untrusted data, like user-input ($_GET,...). If you do, make sure you use one of the non-overwriting extract_type values such 15 as EXTR_SKIP 16 The PHP-function extract( ) + a warning () Extract: A Word of Caution As stressed in the PHP Manual, avoid using "extract" on the super global arrays ($_GET, $_POST etc). Doing so has the same effect as having register_globals switched on and will result in security holes in your code. If you absolutely have to do this then make sure that you pass configuration options to "extract" to ensure it doesn't overwrite existing variables by prepending a standard prefix to each variable as shown in the example below (or by skipping variables which already exist with option "EXTR_SKIP"): Another possible construction is: extract ( $_POST, EXTR_SKIP ) ; extract ( $_GET, EXTR_SKIP ) ; foreach ($_POST as $key=>$value) if ( isset ( $$key ) ) $$key = $value; 17 More functionality in a single PHP-file, including server-side validation <div class="top"> include "top.inc" ; <div class="main"> if ( isset ( $_POST ['fullname'] ) ) include 'startform.php' ; include 'phpfunctions.php' ; $errors = check_values ( ) ; if ( $errors =="" ) include 'startform.php' ; echo "<script> document.testform.age.select(); alert( '$errors' ) ;</script> " ; include 'request.php' ; 18 RU Nijmegen, voorjaar 009 3

4 More functionality, including server-side validation (cont.) Content of the file phpfunctions.php: function check_age_value ( ) $age = $_POST['age'] ; if ( is_numeric($age) ) $errors = " - Age must be numeric" ; if ( $age<0 $age>100 ) $errors = " - Age must be between 0 and 100"; return "" ; function istooshort ( $somevar ) return ( strlen( $somevar ) <= 3 ) ; function check_values ( ) $fullname = $_POST ['fullname'] ; if ( istooshort ( $fullname )) $errors = " - Name is too short\\n" ; $errors = $errors. check_age_value () ; if ( $errors == "" ) $errors = "Error(s):\\n". $errors ; 19 -&-I6 Regular expressions can also be used in PHP-programming Again: anything you can do with regular expressions, can also be done by just coding (in PHP, avascript etc.), line after line, to get the same desired effect; so: you are not forced to use regular expressions Functions (in PHP): preg_match() ereg() and eregi() ereg_replace() & eregi_replace() split() Example: how to verify a Canadian postal code with a Regexp in PHP? if ( preg_match ("/^[a-z]\d[a-z]?\d[a-z]\d$/i", $postalcode)) echo "Your postal code has an incorrect format. " ; 0 -&- We can send mail simply via PHP scripts Built in function mail: mail ($receiver, $subject, $message, $extras) All arguments are strings $extras allows additional information to be passed Ex: From, Cc, Bcc -&-; ;-&-#% K 5 #)/;"*)/;"*% #% See mail.php and sendmail.php Also see mail() in the PHP manual 1 0 E L,H ;L - EEEH IE 999 M -&-1>0 N 9LL B RU Nijmegen, voorjaar 009

5 M -&-1>0 #% Gebruik één scherm [althans in de ogen van een gebruiker], waarmee diverse operaties op een betaling uitgevoerd kunnen worden. Als je in het veld Betalingnr een waarde invoert en op de Zoek -knop klikt, worden van de betreffende betaling de gegevens in de database opgezocht en getoond. (Ook de naam van het betreffende lid wordt opgezocht en readonly getoond...) Als de gegevens getoond worden, dan kunnen desgewenst wijzigingen worden aangebracht en via de Verander -knop ter aanpassing naar de database worden gestuurd. Via Verwijder zou [alleen] die betreffende betaling uit de database moeten worden verwijderd. N.B. e kunt uiteraard niet het betalingnr van een bestaande betaling veranderen 5 RU Nijmegen, voorjaar 009 5

Server-side: PHP and MySQL (continued)

Server-side: PHP and MySQL (continued) An observation related to last assignment Server-side: PHP and MySQL (continued)! " I found as result code for last assignment: echo "Transporting Data to a Database...";

More information

Server-side: PHP and MySQL

Server-side: PHP and MySQL Server-side: PHP and MySQ webserver e.g. Apache ) ) PHP MySQ!" #$$%& ' )& +", -../ -0 &0/ 1 +"1& ' hello echo "hello" ) ; 1 2 '2 & 3&

More information

Download: Server-side technologies. WAMP (Windows), http://www.wampserver.com/en/ MAMP (Mac), http://www.mamp.info/en/

Download: Server-side technologies. WAMP (Windows), http://www.wampserver.com/en/ MAMP (Mac), http://www.mamp.info/en/ + 1 Server-side technologies Apache,, Download: Apache Web Server: http://httpd.apache.org/download.cgi application server: http://www.php.net/downloads.php DBMS: http://www.mysql.com/downloads/ LAMP:

More information

PHP and XML. Brian J. Stafford, Mark McIntyre and Fraser Gallop

PHP and XML. Brian J. Stafford, Mark McIntyre and Fraser Gallop What is PHP? PHP and XML Brian J. Stafford, Mark McIntyre and Fraser Gallop PHP is a server-side tool for creating dynamic web pages. PHP pages consist of both HTML and program logic. One of the advantages

More information

Chapter 1 Introduction to web development and PHP

Chapter 1 Introduction to web development and PHP Chapter 1 Introduction to web development and PHP Murach's PHP and MySQL, C1 2010, Mike Murach & Associates, Inc. Slide 1 Objectives Applied 1. Use the XAMPP control panel to start or stop Apache or MySQL

More information

A SQL Injection : Internal Investigation of Injection, Detection and Prevention of SQL Injection Attacks

A SQL Injection : Internal Investigation of Injection, Detection and Prevention of SQL Injection Attacks A SQL Injection : Internal Investigation of Injection, Detection and Prevention of SQL Injection Attacks Abhay K. Kolhe Faculty, Dept. Of Computer Engineering MPSTME, NMIMS Mumbai, India Pratik Adhikari

More information

Form Handling. Server-side Web Development and Programming. Form Handling. Server Page Model. Form data appended to request string

Form Handling. Server-side Web Development and Programming. Form Handling. Server Page Model. Form data appended to request string Form Handling Server-side Web Development and Programming Lecture 3: Introduction to Java Server Pages Form data appended to request string

More information

HowTo. Planning table online

HowTo. Planning table online HowTo Project: Description: Planning table online Installation Version: 1.0 Date: 04.09.2008 Short description: With this document you will get information how to install the online planning table on your

More information

SCRIPTING, DATABASES, SYSTEM ARCHITECTURE

SCRIPTING, DATABASES, SYSTEM ARCHITECTURE introduction to SCRIPTING, DATABASES, SYSTEM ARCHITECTURE RECAPITULATION OF PHP Claus Brabrand ((( brabrand@itu.dk ))) Associate Professor, Ph.D. ((( Programming, Logic, and Semantics ))) IT University

More information

Joomla 1.0 Extension Development Training. Learning to program for Joomla

Joomla 1.0 Extension Development Training. Learning to program for Joomla Joomla 1.0 Extension Development Training Learning to program for Joomla Objectives & Requirements Learn to develop basic Joomla Mambots, Modules and Components. Familiar with PHP and MySQL programming.

More information

Hello friends, This is Aaditya Purani and i will show you how to Bypass PHP LFI(Local File Inclusion)

Hello friends, This is Aaditya Purani and i will show you how to Bypass PHP LFI(Local File Inclusion) #Title: PHP LFI Bypass #Date : 12-July-2015 #Tested on: Kali Linux/ Windows 7 #Category : Papers #Exploit Author : Aaditya Purani Hello friends, This is Aaditya Purani and i will show you how to Bypass

More information

Internet Ohjelmointi 1 Examples 4

Internet Ohjelmointi 1 Examples 4 Internet Ohjelmointi 1 Example 1 4 form 5 6 7 8 Loan Amount 9 Monthly Repayment

More information

Vakgroep ICT Webprogrammatie ASP.NET BASICS. Rogier van der Linde

Vakgroep ICT Webprogrammatie ASP.NET BASICS. Rogier van der Linde Vakgroep ICT Webprogrammatie ASP.NET BASICS 2012 Rogier van der Linde HTML Controls en Web Controls HTML controls dienen voor de snelle omzetting van bestaande HTML pagina s, Web controls zijn veel flexibeler.

More information

A table is a collection of related data entries and it consists of columns and rows.

A table is a collection of related data entries and it consists of columns and rows. CST 250 MySQL Notes (Source: www.w3schools.com) MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database objects called tables.

More information

Web Development using PHP (WD_PHP) Duration 1.5 months

Web Development using PHP (WD_PHP) Duration 1.5 months Duration 1.5 months Our program is a practical knowledge oriented program aimed at learning the techniques of web development using PHP, HTML, CSS & JavaScript. It has some unique features which are as

More information

Fasthosts ASP scripting examples Page 1 of 17

Fasthosts ASP scripting examples Page 1 of 17 Introduction-------------------------------------------------------------------------------------------------- 2 Sending email from your web server------------------------------------------------------------------

More information

Facebook Twitter YouTube Google Plus Website Email

Facebook Twitter YouTube Google Plus Website Email PHP MySQL COURSE WITH OOP COURSE COVERS: PHP MySQL OBJECT ORIENTED PROGRAMMING WITH PHP SYLLABUS PHP 1. Writing PHP scripts- Writing PHP scripts, learn about PHP code structure, how to write and execute

More information

Sample Code with Output

Sample Code with Output Sample Code with Output File Upload : In PHP, we can upload file to a server fileupload.html #menu a #content #italictext

More information

Web applications. Web security: web basics. HTTP requests. URLs. GET request. Myrto Arapinis School of Informatics University of Edinburgh

Web applications. Web security: web basics. HTTP requests. URLs. GET request. Myrto Arapinis School of Informatics University of Edinburgh Web applications Web security: web basics Myrto Arapinis School of Informatics University of Edinburgh HTTP March 19, 2015 Client Server Database (HTML, JavaScript) (PHP) (SQL) 1 / 24 2 / 24 URLs HTTP

More information

Embedded PHP. Web services vs. embedded PHP. CSE 190 M (Web Programming), Spring 2008 University of Washington

Embedded PHP. Web services vs. embedded PHP. CSE 190 M (Web Programming), Spring 2008 University of Washington Embedded PHP CSE 190 M (Web Programming), Spring 2008 University of Washington Except where otherwise noted, the contents of this presentation are Copyright 2008 Marty Stepp and Jessica Miller and are

More information

Create dynamic sites with PHP & MySQL

Create dynamic sites with PHP & MySQL Create dynamic sites with PHP & MySQL Presented by developerworks, your source for great tutorials Table of Contents If you're viewing this document online, you can click any of the topics below to link

More information

1.264 Lecture 19 Web database: Forms and controls

1.264 Lecture 19 Web database: Forms and controls 1.264 Lecture 19 Web database: Forms and controls We continue using Web site Lecture18 in this lecture Next class: ASP.NET book, chapters 11-12. Exercises due after class 1 Forms Web server and its pages

More information

Guide for Building Web Application Using PHP and Mysql

Guide for Building Web Application Using PHP and Mysql Guide for Building Web Application Using PHP and Mysql 1. Download and install PHP, Web Server, and MySql from one of the following sites. You can look up the lecture notes on the class webpage for tutorials

More information

Other Language Types CMSC 330: Organization of Programming Languages

Other Language Types CMSC 330: Organization of Programming Languages Other Language Types CMSC 330: Organization of Programming Languages Markup and Query Languages Markup languages Set of annotations to text Query languages Make queries to databases & information systems

More information

ShoreTel Enterprise Contact Center 8 Installing and Implementing Chat

ShoreTel Enterprise Contact Center 8 Installing and Implementing Chat ShoreTel Enterprise Contact Center 8 Installing and Implementing Chat November 2012 Legal Notices Document and Software Copyrights Copyright 1998-2012 by ShoreTel Inc., Sunnyvale, California, USA. All

More information

Python and MongoDB. Why?

Python and MongoDB. Why? Python and MongoDB Kevin Swingler Why? Python is becoming the scripting language of choice in big data It has a library for connecting to a MongoDB: PyMongo Nice mapping betwenpython data structures and

More information

Technical Specification ideal

Technical Specification ideal Technical Specification ideal (IDE.001) Author(s): Michel Westerink (MW) Version history: V1.0 MW (Copy from targetpay.com) 07/01/13 V1.0 MKh New error codes 20/02/14 V1.1 TZ New IP whitelisted 29/08/14

More information

CREATING WEB FORMS WEB and FORMS FRAMES AND

CREATING WEB FORMS WEB and FORMS FRAMES AND CREATING CREATING WEB FORMS WEB and FORMS FRAMES AND FRAMES USING Using HTML HTML Creating Web Forms and Frames 1. What is a Web Form 2. What is a CGI Script File 3. Initiating the HTML File 4. Composing

More information

Example for Using the PrestaShop Web Service : CRUD

Example for Using the PrestaShop Web Service : CRUD Example for Using the PrestaShop Web Service : CRUD This tutorial shows you how to use the PrestaShop web service with PHP library by creating a "CRUD". Prerequisites: - PrestaShop 1.4 installed on a server

More information

Application note: SQL@CHIP Connecting the IPC@CHIP to a Database

Application note: SQL@CHIP Connecting the IPC@CHIP to a Database Application note: SQL@CHIP Connecting the IPC@CHIP to a Database 1. Introduction This application note describes how to connect an IPC@CHIP to a database and exchange data between those. As there are no

More information

SQL. Short introduction

SQL. Short introduction SQL Short introduction 1 Overview SQL, which stands for Structured Query Language, is used to communicate with a database. Through SQL one can create, manipulate, query and delete tables and contents.

More information

Server side scripting and databases

Server side scripting and databases Three components used in typical web application Server side scripting and databases How Web Applications interact with server side databases Browser Web server Database server Web server Web server Apache

More information

PHP. Intro, Syntax, Variables, Echo, Data Types

PHP. Intro, Syntax, Variables, Echo, Data Types PHP Intro, Syntax, Variables, Echo, Data Types Introduction PHP scripts are executed on the server. What You Should Already Know Before you continue you should have a basic understanding of the following:

More information

PHP Tutorial From beginner to master

PHP Tutorial From beginner to master PHP Tutorial From beginner to master PHP is a powerful tool for making dynamic and interactive Web pages. PHP is the widely-used, free, and efficient alternative to competitors such as Microsoft's ASP.

More information

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 02 Minor Subject

Multimedia im Netz Online Multimedia Winter semester 2015/16. Tutorial 02 Minor Subject Multimedia im Netz Online Multimedia Winter semester 2015/16 Tutorial 02 Minor Subject Ludwig- Maximilians- Universität München Online Multimedia WS 2015/16 - Tutorial 02 for minor subject students 1 Today

More information

How-To: MySQL as a linked server in MS SQL Server

How-To: MySQL as a linked server in MS SQL Server How-To: MySQL as a linked server in MS SQL Server 1 Introduction... 2 2 Why do I want to do this?... 3 3 How?... 4 3.1 Step 1: Create table in SQL Server... 4 3.2 Step 2: Create an identical table in MySQL...

More information

AD Phonebook 2.2. Installation and configuration. Dovestones Software

AD Phonebook 2.2. Installation and configuration. Dovestones Software AD Phonebook 2.2 Installation and configuration 1 Table of Contents Introduction... 3 AD Self Update... 3 Technical Support... 3 Prerequisites... 3 Installation... 3 Adding a service account and domain

More information

Exercises. Days 31 28 31 30 31 30 31 31 30 31 30 31

Exercises. Days 31 28 31 30 31 30 31 31 30 31 30 31 Exercises 1. Days in Month: Write a function daysinmonth that takes a month (between 1 and 12) as a parameter and returns the number of days in that month in a non-leap year. For example a call to daysinmonth(6)

More information

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL

INFORMATION BROCHURE Certificate Course in Web Design Using PHP/MySQL INFORMATION BROCHURE OF Certificate Course in Web Design Using PHP/MySQL National Institute of Electronics & Information Technology (An Autonomous Scientific Society of Department of Information Technology,

More information

OCS Training Workshop LAB13. Ethernet FTP and HTTP servers

OCS Training Workshop LAB13. Ethernet FTP and HTTP servers OCS Training Workshop LAB13 Ethernet FTP and HTTP servers Introduction The training module will introduce the FTP and Web hosting capabilities of the OCS product family. The user will be instructed in

More information

MMGD0204 Web Application Technology. Chapter 9 SERVER-SIDE SCRIPTING LANGUAGE

MMGD0204 Web Application Technology. Chapter 9 SERVER-SIDE SCRIPTING LANGUAGE MMGD0204 Web Application Technology Chapter 9 SERVER-SIDE SCRIPTING LANGUAGE Server-Side Scripting Language A web server technology in which a user's request is fulfilled by running a script directly on

More information

Web Development Guide. Information Systems

Web Development Guide. Information Systems Web Development Guide Information Systems Gabriel Malveaux May 2013 Web Development Guide Getting Started In order to get started with your web development, you will need some basic software. In this guide

More information

NewsletterAdmin 2.4 Setup Manual

NewsletterAdmin 2.4 Setup Manual NewsletterAdmin 2.4 Setup Manual Updated: 7/22/2011 Contact: corpinteractiveservices@crain.com Contents Overview... 2 What's New in NewsletterAdmin 2.4... 2 Before You Begin... 2 Testing and Production...

More information

Scripting Languages 1

Scripting Languages 1 Scripting Languages 1 Scripting Languages (prehistory) Scripting languages have always been important in computer systems They are the glue that ties the different elements of the system together Their

More information

Self-test SQL Workshop

Self-test SQL Workshop Self-test SQL Workshop Document: e0087test.fm 07/04/2010 ABIS Training & Consulting P.O. Box 220 B-3000 Leuven Belgium TRAINING & CONSULTING INTRODUCTION TO THE SELF-TEST SQL WORKSHOP Instructions The

More information

Concepts Design Basics Command-line MySQL Security Loophole

Concepts Design Basics Command-line MySQL Security Loophole Part 2 Concepts Design Basics Command-line MySQL Security Loophole Databases Flat-file Database stores information in a single table usually adequate for simple collections of information Relational Database

More information

Chapter 2: Interactive Web Applications

Chapter 2: Interactive Web Applications Chapter 2: Interactive Web Applications 2.1! Interactivity and Multimedia in the WWW architecture 2.2! Server-Side Scripting (Example PHP, Part I) 2.3! Interactivity and Multimedia for Web Browsers 2.4!

More information

Execution of Perl scripts in internet pages (Apache web server, Windows XP)

Execution of Perl scripts in internet pages (Apache web server, Windows XP) Execution of Perl scripts in internet pages (Apache web server, Windows XP) The power of Perl scripts can also be used by embedding them into web pages, presented by a web server like Apache. The Perl

More information

MYSQL DATABASE ACCESS WITH PHP

MYSQL DATABASE ACCESS WITH PHP MYSQL DATABASE ACCESS WITH PHP Fall 2009 CSCI 2910 Server Side Web Programming Typical web application interaction Database Server 3 tiered architecture Security in this interaction is critical Web Server

More information

Import and Export User Guide. PowerSchool 7.x Student Information System

Import and Export User Guide. PowerSchool 7.x Student Information System PowerSchool 7.x Student Information System Released June 2012 Document Owner: Documentation Services This edition applies to Release 7.2.1 of the PowerSchool software and to all subsequent releases and

More information

Intro to Dynamic Web Development. ACM Webmonkeys @ UIUC, 2010

Intro to Dynamic Web Development. ACM Webmonkeys @ UIUC, 2010 Intro to Dynamic Web Development ACM Webmonkeys @ UIUC, 2010 Static vs Dynamic "Static" is an adjective meaning "does not change". In the context of web programming, it can be used several different ways,

More information

PHP MySQL Course Details

PHP MySQL Course Details PHP MySQL Course Details By Besant Technologies Course Name Category Venue PHP MySQL Scripting Language & Web Development Besant Technologies No.24, Nagendra Nagar, Velachery Main Road, Address Velachery,

More information

JavaServer Pages Fundamentals

JavaServer Pages Fundamentals JavaServer Pages Fundamentals Prof. Dr.-Ing. Thomas Korte Laboratory of Information Technology 1 Introduction to JSP JavaServer Pages (JSP) is a Java technology which enables the development of dynamic

More information

APPLICATION NOTE SERIES Information Technology Group

APPLICATION NOTE SERIES Information Technology Group Information Technology Group Computer Software & Systems U.S Coast Guard Auxiliary WOW II Platform: Creating Email Response Forms Email Response Forms Version 1.2 Note: This material is targeted at WOW

More information

Tutorial básico del método AJAX con PHP y MySQL

Tutorial básico del método AJAX con PHP y MySQL 1 de 14 02/06/2006 16:10 Tutorial básico del método AJAX con PHP y MySQL The XMLHttpRequest object is a handy dandy JavaScript object that offers a convenient way for webpages to get information from servers

More information

GMP-Z Annex 15: Kwalificatie en validatie

GMP-Z Annex 15: Kwalificatie en validatie -Z Annex 15: Kwalificatie en validatie item Gewijzigd richtsnoer -Z Toelichting Principle 1. This Annex describes the principles of qualification and validation which are applicable to the manufacture

More information

Short notes on webpage programming languages

Short notes on webpage programming languages Short notes on webpage programming languages What is HTML? HTML is a language for describing web pages. HTML stands for Hyper Text Markup Language HTML is a markup language A markup language is a set of

More information

Detecting (and even preventing) SQL Injection Using the Percona Toolkit and Noinject!

Detecting (and even preventing) SQL Injection Using the Percona Toolkit and Noinject! Detecting (and even preventing) SQL Injection Using the Percona Toolkit and Noinject! Justin Swanhart Percona Live, April 2013 INTRODUCTION 2 Introduction 3 Who am I? What do I do? Why am I here? The tools

More information

Knocker main application User manual

Knocker main application User manual Knocker main application User manual Author: Jaroslav Tykal Application: Knocker.exe Document Main application Page 1/18 U Content: 1 START APPLICATION... 3 1.1 CONNECTION TO DATABASE... 3 1.2 MODULE DEFINITION...

More information

CPE111 COMPUTER EXPLORATION

CPE111 COMPUTER EXPLORATION CPE111 COMPUTER EXPLORATION BUILDING A WEB SERVER ASSIGNMENT You will create your own web application on your local web server in your newly installed Ubuntu Desktop on Oracle VM VirtualBox. This is a

More information

API. Application Programmers Interface document. For more information, please contact: Version 2.01 Aug 2015

API. Application Programmers Interface document. For more information, please contact: Version 2.01 Aug 2015 API Application Programmers Interface document Version 2.01 Aug 2015 For more information, please contact: Technical Team T: 01903 228100 / 01903 550242 E: info@24x.com Page 1 Table of Contents Overview...

More information

Concept Design. Gert Landheer Mark van den Brink Koen van Boerdonk

Concept Design. Gert Landheer Mark van den Brink Koen van Boerdonk Concept Design Gert Landheer Mark van den Brink Koen van Boerdonk Content Richness of Data Concept Design Fast creation of rich data which eventually can be used to create a final model Creo Product Family

More information

CSE Web Programing 1. Prepared by: Asst. Prof. Dr. Maryam Eskandari

CSE Web Programing 1. Prepared by: Asst. Prof. Dr. Maryam Eskandari CSE 203 - Web Programing 1 Prepared by: Asst. Prof. Dr. Maryam Eskandari What is JavaScript? JavaScript is a programming language used to make web pages interactive and dynamic. JavaScript contains a standard

More information

Fax via HTTP (POST) Traitel Telecommunications Pty Ltd 2012 Telephone: (61) (2) 9032 2700. Page 1

Fax via HTTP (POST) Traitel Telecommunications Pty Ltd 2012 Telephone: (61) (2) 9032 2700. Page 1 Fax via HTTP (POST) Page 1 Index: Introduction:...3 Usage:...3 Page 2 Introduction: TraiTel Telecommunications offers several delivery methods for its faxing service. This document will describe the HTTP/POST

More information

PHP: Introduction. CS7025: Network Technologies and Server Side Programming Lecturer: Saturnino Luz

PHP: Introduction. CS7025: Network Technologies and Server Side Programming  Lecturer: Saturnino Luz PHP: Introduction CS7025: Network Technologies and Server Side Programming http://www.scss.tcd.ie/~luzs/t/cs7025/ Lecturer: Saturnino Luz January 24, 2011 1 PHP: Introduction How does a browser request

More information

DIPLOMA IN WEBDEVELOPMENT

DIPLOMA IN WEBDEVELOPMENT DIPLOMA IN WEBDEVELOPMENT Prerequisite skills Basic programming knowledge on C Language or Core Java is must. # Module 1 Basics and introduction to HTML Basic HTML training. Different HTML elements, tags

More information

Adding web interfaces to complex scientific computer models brings the following benefits:

Adding web interfaces to complex scientific computer models brings the following benefits: Fortran Applications and the Web Adding web interfaces to complex scientific computer models brings the following benefits: access, for anyone in the world with an internet connection; easy-to-use interfaces

More information

How to Build a Web Database: A Case Study

How to Build a Web Database: A Case Study How to Build a Web Database: A Case Study Introduction This paper shows you how to build a simple Web application using ColdFusion. If you follow the sample case study of the multimedia resources database

More information

Handling the Client Request: Form Data

Handling the Client Request: Form Data 2012 Marty Hall Handling the Client Request: Form Data Originals of Slides and Source Code for Examples: http://courses.coreservlets.com/course-materials/csajsp2.html 3 Customized Java EE Training: http://courses.coreservlets.com/

More information

Webapps Vulnerability Report

Webapps Vulnerability Report Tuesday, May 1, 2012 Webapps Vulnerability Report Introduction This report provides detailed information of every vulnerability that was found and successfully exploited by CORE Impact Professional during

More information

Web development... the server side (of the force)

Web development... the server side (of the force) Web development... the server side (of the force) Fabien POULARD Document under license Creative Commons Attribution Share Alike 2.5 http://www.creativecommons.org/learnmore Web development... the server

More information

Introduction to Server-Side Programming. Charles Liu

Introduction to Server-Side Programming. Charles Liu Introduction to Server-Side Programming Charles Liu Overview 1. Basics of HTTP 2. PHP syntax 3. Server-side programming 4. Connecting to MySQL Request to a Static Site Server: 1. Homepage lookup 2. Send

More information

Application Servers G22.3033-011. Session 2 - Main Theme Page-Based Application Servers. Dr. Jean-Claude Franchitti

Application Servers G22.3033-011. Session 2 - Main Theme Page-Based Application Servers. Dr. Jean-Claude Franchitti Application Servers G22.3033-011 Session 2 - Main Theme Page-Based Application Servers Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences

More information

MySQL Job Scheduling

MySQL Job Scheduling JobScheduler - Job Execution and Scheduling System MySQL Job Scheduling MySQL automation March 2015 March 2015 MySQL Job Scheduling page: 1 MySQL Job Scheduling - Contact Information Contact Information

More information

About Subscription Confirmation

About Subscription Confirmation Simple Website List Signup Form (updated Sep 2011) This document provides a brief overview and examples detailing the necessary steps to set up a List Signup form on your web site so that people can simply

More information

Log Analyzer Reference

Log Analyzer Reference IceWarp Unified Communications Log Analyzer Reference Version 10.4 Printed on 27 February, 2012 Contents Log Analyzer 1 Quick Start... 2 Required Steps... 2 Optional Steps... 3 Advanced Configuration...

More information

Topic 7: Back-End Form Processing and Database Publishing with PHP/MySQL

Topic 7: Back-End Form Processing and Database Publishing with PHP/MySQL Topic 7: Back-End Form Processing and Database Publishing with PHP/MySQL 4 Lecture Hrs, 4 Practical Hrs. Learning Objectives By completing this topic, the learner should be able to: Knowledge and Understanding

More information

Web Security CS25010. 20th November 2012. 2012, Jonathan Francis Roscoe, jjr6@aber.ac.uk Department of Computer Science, Aberystwyth University

Web Security CS25010. 20th November 2012. 2012, Jonathan Francis Roscoe, jjr6@aber.ac.uk Department of Computer Science, Aberystwyth University Web Security CS25010 20th November 2012 Session Errors Some people are having errors creating sessions: Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_d7hag76hgsfh2bjuhmdamb974,

More information

4PSA DNS Manager 3.7.0. Translator's Manual

4PSA DNS Manager 3.7.0. Translator's Manual 4PSA DNS Manager 3.7.0 Translator's Manual For more information about 4PSA DNS Manager, check: http://www.4psa.com Copyrights 2002-2010 Rack-Soft, Inc. Translator's Manual Manual Version 48807.9 at 2010/03/10

More information

Maximizer Synergy. info@adafi.be BE 0415.642.030. Houwaartstraat 200/1 BE 3270 Scherpenheuvel. Tel: +32 495 300612 Fax: +32 13 777372

Maximizer Synergy. info@adafi.be BE 0415.642.030. Houwaartstraat 200/1 BE 3270 Scherpenheuvel. Tel: +32 495 300612 Fax: +32 13 777372 Maximizer Synergy Adafi Software is een samenwerking gestart met Advoco Solutions, een Maximizer Business Partner uit Groot Brittannië. Advoco Solutions heeft een technologie ontwikkeld, genaamd Synergy,

More information

Application Firewall Configuration Examples

Application Firewall Configuration Examples SonicOS Application Firewall Configuration Examples This technote describes practical usage examples with the SonicOS Application Firewall (AF) feature introduced in SonicOS Enhanced 4.0. The Application

More information

International Journal of Advanced Research in Computer Science and Software Engineering

International Journal of Advanced Research in Computer Science and Software Engineering Volume 3, Issue 1, January 2013 ISSN: 2277 128X International Journal of Advanced Research in Computer Science and Software Engineering Research Paper Available online at: www.ijarcsse.com A Review on

More information

OxyClassifieds Installation Handbook

OxyClassifieds Installation Handbook OxyClassifieds Installation Handbook OxyClassifieds Team Email: office@oxyclassifieds.com Web: http://www.oxyclassifieds.com OxyClassifieds Installation Handbook by OxyClassifieds Team Copyright 2006-2011

More information

Introduction to Web Technologies

Introduction to Web Technologies Introduction to Web Technologies Tara Murphy 17th February, 2011 The Internet CGI Web services HTML and CSS 2 The Internet is a network of networks ˆ The Internet is the descendant of ARPANET (Advanced

More information

Using Cloud Databases in the Cloud Control Panel By J.R. Arredondo (@jrarredondo)

Using Cloud Databases in the Cloud Control Panel By J.R. Arredondo (@jrarredondo) Using Cloud Databases in the Cloud Control Panel By J.R. Arredondo (@jrarredondo) Cloud Databases is the latest relational database service from Rackspace. We have just made it available in the new Cloud

More information

Web Programming with PHP 5. The right tool for the right job.

Web Programming with PHP 5. The right tool for the right job. Web Programming with PHP 5 The right tool for the right job. PHP as an Acronym PHP PHP: Hypertext Preprocessor This is called a Recursive Acronym GNU? GNU s Not Unix! CYGNUS? CYGNUS is Your GNU Support

More information

Your First Web Database Program

Your First Web Database Program 4 Your First Web Database Program Chapter After you write the program Hello World, you re ready to go one step further. In this chapter, you will build a program that allows users to search a contact database

More information

Intro to Web Programming. using PHP, HTTP, CSS, and Javascript Layton Smith CSE 4000

Intro to Web Programming. using PHP, HTTP, CSS, and Javascript Layton Smith CSE 4000 Intro to Web Programming using PHP, HTTP, CSS, and Javascript Layton Smith CSE 4000 Intro Types in PHP Advanced String Manipulation The foreach construct $_REQUEST environmental variable Correction on

More information

A Brief Introduction to MySQL

A Brief Introduction to MySQL A Brief Introduction to MySQL by Derek Schuurman Introduction to Databases A database is a structured collection of logically related data. One common type of database is the relational database, a term

More information

Advanced PostgreSQL SQL Injection and Filter Bypass Techniques

Advanced PostgreSQL SQL Injection and Filter Bypass Techniques Advanced PostgreSQL SQL Injection and Filter Bypass Techniques INFIGO-TD TD-200 2009-04 2009-06 06-17 Leon Juranić leon.juranic@infigo.hr INFIGO IS. All rights reserved. This document contains information

More information

INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP

INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP INSTALLING, CONFIGURING, AND DEVELOPING WITH XAMPP by Dalibor D. Dvorski, March 2007 Skills Canada Ontario DISCLAIMER: A lot of care has been taken in the accuracy of information provided in this article,

More information

Web Application Security Part 1

Web Application Security Part 1 Web Application Security Part 1 Author : Treasure Priyamal Site : www.treasuresec.com E-mail : treasure@treasuresec.com Twitter :http://twitter.com/treasure_sec Introduction Today we are going to talk

More information

sqlcmd -S.\SQLEXPRESS -Q "select name from sys.databases"

sqlcmd -S.\SQLEXPRESS -Q select name from sys.databases A regularly scheduled backup of databases used by SyAM server programs (System Area Manager, Management Utilities, and Site Manager can be implemented by creating a Windows batch script and running it

More information

ISI ACADEMY Web applications Programming Diploma using PHP& MySQL

ISI ACADEMY Web applications Programming Diploma using PHP& MySQL ISI ACADEMY for PHP& MySQL web applications Programming ISI ACADEMY Web applications Programming Diploma using PHP& MySQL HTML - CSS - JavaScript PHP - MYSQL What You'll Learn Be able to write, deploy,

More information

Magento Security and Vulnerabilities. Roman Stepanov

Magento Security and Vulnerabilities. Roman Stepanov Magento Security and Vulnerabilities Roman Stepanov http://ice.eltrino.com/ Table of contents Introduction Open Web Application Security Project OWASP TOP 10 List Common issues in Magento A1 Injection

More information

Dynamische Websites. Week 7

Dynamische Websites. Week 7 Dynamische Websites Week 7 Lesschema Herhaling Front Controller AGENDA LESSCHEMA Lesweek 7: Framework - Front Controller Lesweek 8: Framework - 2 Step Design Lesweek 9: Framework - Forms en... Lesweek

More information

Installing Drupal on Your Local Computer

Installing Drupal on Your Local Computer Installing Drupal on Your Local Computer This tutorial will help you install Drupal on your own home computer and allow you to test and experiment building a Web site using this open source software. This

More information

McAfee Network Threat Response (NTR) 4.0

McAfee Network Threat Response (NTR) 4.0 McAfee Network Threat Response (NTR) 4.0 Configuring Automated Reporting and Alerting Automated reporting is supported with introduction of NTR 4.0 and designed to send automated reports via existing SMTP

More information

Setting up High Availability

Setting up High Availability ManageEngine Password Manager Pro Tutorial Setting up High Availability (Procedure applicable only for PMP builds up to 6301. For versions 6302 and later, click here ) Overview Setting up high availability

More information