Dynamische Websites. Week 7
|
|
|
- Ada Hall
- 10 years ago
- Views:
Transcription
1 Dynamische Websites Week 7
2 Lesschema Herhaling Front Controller AGENDA
3 LESSCHEMA Lesweek 7: Framework - Front Controller Lesweek 8: Framework - 2 Step Design Lesweek 9: Framework - Forms en... Lesweek 10: Framework - Vragen Lesweek 11: Extra topics Lesweek 12: Herhaling belangrijkste concepten Lesweek 13: Vragen en uitleg examen
4 Lesschema Herhaling Front Controller AGENDA
5 DB GEGEVENS <?php date_default_timezone_set('europe/brussels'); // local_u via webontwerp => 'host' => 'localhost' // u via mamp, wamp, xampp => 'host' => 'gegevensbanken.khleuven.be' require_once('../../../../.db_password.php'); $db_config = array( 'driver' => 'pgsql', 'username' => $username, 'password' => $password, 'schema' => 'public', // dit moet je veranderen naar je eigen schema 'dsn' => array( 'host' => 'gegevensbanken.khleuven.be', 'dbname' => 'webontwerp', // dit moet je veranderen naar db van je reeks 'port' => '51314', ) );
6 .DB_PASSWORD.PHP.db_password.php <?php $dbuser = "local_u "; $dbpassword = "Qpnu7dj9YOio";?> hidden nu reeds op server
7 AGENDA Lesschema Herhaling Front Controller
8 FRONT CONTROLLER = is een dispatching controller naar wie alle requests worden gedaan alles gaat via index.php controllers, actions en parameters worden hieraan meegegeven Front_Controller_pattern
9 FRONT CONTROLLER VIA $_GET EN IF Voorbeelden Zie dynweb2013examples/theorie07/ frontcontroller_stap01
10 VOORBEELD HOME
11 INDEX.PHP <?php require_once('controller.php'); $controller = new Controller(); $controller->run(); Code Onveranderd
12 CONTROLLER.PHP <?php class Controller{ private $_vehicles; private $_vehiclemapper;... public function run(){ $nextpage = 'index.php'; if ($this->_action == 'register') { $nextpage = $this->register(); elseif ($this->_action == 'new') { $nextpage = $this->newregistration(); elseif ($this->_action == 'home') { $nextpage = $this->home(); require_once($nextpage);... Code Onveranderd
13 CONTROLLER.PHP...?> private function home() { return 'home.php'; Code Onveranderd
14 HOME.PHP <body> <h1>welkom!</h1> <a href="index.php?action=new">registreer voertuig</a> </body> Code Onveranderd
15 FRONT CONTROLLER VIA $_GET EN IF Uitbreiding als we een detail pagina willen toevoegen waarmee we alle informatie van dat specifiek vehicle willen tonen
16 FRONT CONTROLLER VIA $_GET EN IF Problemen? run methode wordt veel te lang voldoet niet aan het Open-Closed principe nieuwe functionaliteit kunnen toevoegen door zo weinig mogelijk bestaande code aan te passen
17 FRONT CONTROLLER OO VIA $_GET Controller if-then-else structuur eruit halen delegeren naar een controller per onderwerp (bijvoorbeeld vehicle) maakt code herbruikbaarder en uitbreidbaarder
18 FRONT CONTROLLER OO VIA $_GET Voorbeelden controller=vehicle&action=new controller=vehicle&action=detail&id=1 Zie dynweb2013examples/theorie07/ frontcontroller_stap02
19 VOORBEELD VEHICLE OVERVIEW controller=vehicle&action=index $object = VehicleController ; $method = index ; $object = new $object(); $object->$method();
20 INDEX.PHP <?php require_once('controller.php'); $controller = new Controller(); $controller->run(); Code Onveranderd
21 CONTROLLER.PHP <?php class Controller{ public function run() { define('default_controller', 'home'); define('default_action', 'index'); // getting the requested controller from $_GET['controller'] $controller = (isset($_get['controller']))? $_GET['controller'] : DEFAULT_CONTROLLER; // setting the object and including the controller objectfile $object = ucfirst(strtolower($controller)); $file = $object. 'Controller'. '.php'; require_once($file); // getting the requested action frm $_GET['action'] $method = (isset($_get['action']))? $_GET['action'] : DEFAULT_ACTION; $object = $object. 'Controller'; // creating the controller as an instance of the controller object $object = new $object(); // executing the method $object->$method(); $object = Vehicle ; $file = VehicleController.php $method = index ; $object = VehicleController $object = new $object(); $object->$method();
22 VEHICLECONTROLLER.PHP <?php class VehicleController { private $_vehiclemapper; public function construct() { $this->_vehiclemapper = new VehicleMapper(); public function index() { $vehicles = $this->_vehiclemapper->getall(); require_once('vehicle_overview.php'); public function detail() {... public function add() {... public function register() {...
23 <?php require_once('db.php'); require_once('vehicle.php'); class VehicleMapper { private $_db; VEHICLEMAPPER.PHP public function construct() { $this->_db = Db::getInstance(); public function add($object) {... public function getall() { $sql = "SELECT * FROM vehicles"; $data = $this->_db->query($sql); $objects = array(); foreach ($data as $row) { $object = new Vehicle($row['color'], $row['brand']); $objects[] = $object; return $objects; Code Onveranderd
24 VEHICLE.PHP <?php class Vehicle { private $color; private $brand;?> public function construct($color = 'blauw', $brand = 'audi') { $this->setcolor($color); $this->setbrand($brand); public function tostring() { return 'een voertuig met de kleur '. $this->getcolor(). ' en het merk '. $this->getbrand(); public function setcolor($color){ $this->color = $color; public function getcolor(){ return $this->color; public function setbrand($brand){ $this->brand = $brand; public function getbrand(){ return $this->brand; Code Onveranderd
25 VEHICLE_OVERVIEW.PHP <!DOCTYPE html> <html> <body> <a href="index.php?controller=home&action=home">home</a> <a href="index.php?controller=vehicle&action=add">nieuwe registratie</a> <br/> <br/> <table> <th>kleur</th> <th>merk</th> <?php foreach ($vehicles as $vehicle) {?> <tr> <td><?php echo $vehicle->getcolor();?></td> <td><?php echo $vehicle->getbrand();?></td> </tr> <?php?> </table> </body> </html>
26 FRONT CONTROLLER OO VIA $_GET Uitbreiding als we een detail pagina willen toevoegen waarmee we alle informatie van dat specifiek vehicle willen tonen
27 FRONT CONTROLLER OO VIA $_GET Problemen? URLs worden te lang en minder leesbaar URLs niet conform de standaard
28 FRONT CONTROLLER ZONDER $_GET Leesbaarheid verhogen van URLs
29 FRONT CONTROLLER ZONDER $_GET Voorbeelden Zie dynweb2013examples/theorie07/ frontcontroller_stap03
30 FRONT CONTROLLER ZONDER $_GET 2 stappen Stap 1: de webserver zeggen dat alles via index.php moet gaan altijd Stap 2: alle informatie uit de URL halen en mappen op de juiste controller, action en parameters
31 STAP 1 via mod-rewrite van apache (webserver).htaccess file maken met daar code in
32 .HTACCESS RewriteEngine On // activate the rewrite engine RewriteCond %{REQUEST_FILENAME -s [OR] // if (requested filename is a file with a size > 0 RewriteCond %{REQUEST_FILENAME -l [OR] // or requested filename is a symbolic link RewriteCond %{REQUEST_FILENAME -d // or requested filename is a directory) RewriteRule ^.*$ - [NC,L] // then show the requested filename RewriteRule ^.*$ index.php [NC,L] // else redirect to index.php page
33 STAP 2 Mappen structuur volgens MVC patroon application controller model view system controller model view
34 STAP 2 Controller klasse wordt gerefactord
35 VOORBEELD VEHICLE DETAIL
36 INDEX.PHP <?php session_start(); // constanten ivm de paths define('application_path', 'application/'); define('system_path', 'system/'); require_once(application_path. 'config.php'); require_once(system_path. 'model/db.php'); require_once(system_path. 'controller/controller.php'); $controller = new Controller(); $controller->run();
37 CONTROLLER.PHP <?php class Controller { const DEFAULT_CONTROLLER = "Home"; const DEFAULT_ACTION = "index"; const CONTROLLER_PATH = 'application/controller/'; const CONTROLLER_FILE = 'index.php'; private $controller = self::default_controller; private $action = self::default_action; private $params = array(); public function construct() { $this->parseuri();
38 CONTROLLER.PHP private function parseuri() { // strip the controllerfile out of the scriptname $scriptprefix = str_replace(self::controller_file, '', $_SERVER['SCRIPT_NAME']); $uri = str_replace(self::controller_file, '', $_SERVER['REQUEST_URI']); // get the part of the uri, starting from the position after the scriptprefix $path = substr($uri, strlen($scriptprefix)); // strip non-alphanumeric characters out of the path $path = preg_replace('/[^a-za-z0-9]\//', "", $path); // trim the path for / $path = trim($path, '/'); $_SERVER[ SCRIPT_NAME ] = /2013/lessons/theorie07/frontcontroller_stap03/index.php $_SERVER[ REQUEST_URI ] = /2013/lessons/theorie07/frontcontroller_stap03/vehicle/detail/1 $scriptprefix = /2013/lessons/theorie07/frontcontroller_stap03/ $uri = /2013/lessons/theorie07/frontcontroller_stap03/vehicle/detail/1 $path = vehicle/detail/1
39 CONTROLLER.PHP // explode the $path into three parts to get the controller, action and parameters // is used to supress errors when the function after it $action, $params) = explode("/", $path, 3); if (isset($controller)) { $this->setcontroller($controller); if (isset($action)) { $this->setaction($action); if (isset($params)) { $this->setparams(explode("/", $params)); $controller = vehicle $action = detail $params = 1
40 CONTROLLER.PHP private function setcontroller($controller) { $controller = ($controller)? $controller : self::default_controller; $controllerfile = self::controller_path. ucfirst(strtolower($controller)). 'Controller'. '.php'; // check if controller file exists if (!file_exists($controllerfile)) { die("controller '$controller' could not be found."); else { require_once($controllerfile); $this->controller = $controller. 'Controller'; return $this; private function setaction($action) {...) private function setparams(array $params) {... $this->controller = vehiclecontroller $this->action = detail $this->params = Array array(1) { [0]=> string(1) "1"
41 CONTROLLER.PHP public function run() { // checking the parameter count, using Reflection ( $reflector = new ReflectionClass($this->controller); $method = $reflector->getmethod($this->action); $parameters = $method->getnumberofrequiredparameters(); if (($parameters) > count($this->params)) { die("action '$this->action' in class '$this->controller' expects $parameters mandatory parameter(s), you only provided ". count($this->params). "."); // create an instance of the controller as an object $controller = new $this->controller(); // call the method based on $this->action and the params call_user_func_array(array($controller, $this->action), $this->params); $reflector = Class [ class VehicleController ] $method = Method [ public method detail ] $parameters = 1
42 VEHICLECONTROLLER.PHP <?php class VehicleController { private $_vehiclemapper; private $_vehicle; public function construct () { require_once(application_path. 'model/vehiclemapper.php'); $this->_vehiclemapper = new VehicleMapper(); public function index() {... public function detail($id) { $this->_vehicle = $this->_vehiclemapper->get($id); require_once(application_path.'view/vehicle_detail.php'); public function add() {... Code Onveranderd
43 <?php require_once(system_path. 'model/db.php'); require_once(application_path. 'model/vehicle.php'); class VehicleMapper { private $_db; VEHICLEMAPPER.PHP public function construct() { $this->_db = Db::getInstance(); public function add($object) {... public function getall() {... public function get($id) { $id = (int)$id; $query = " SELECT * FROM vehicles WHERE id =?; "; return $this->_db->queryone($query, 'Vehicle', array($id));
44 DB.PHP <?php class Db { private static $instance = null; private $_db;... public function execute($sql, $arguments = array()) { if (!is_array($arguments)) { $arguments = array($arguments); try { $stmt = $this->_db->prepare($sql); $stmt->execute($arguments); $stmt->setfetchmode(pdo::fetch_assoc); catch(pdoexception $e) { error_log($e->getmessage()); return $stmt;
45 DB.PHP public function queryall($sql, $type, $arguments = array()) { $stmt = $this->execute($sql, $arguments); return $stmt->fetchall(pdo::fetch_class, $type); public function queryone($sql, $type, $arguments = array()) { $stmt = $this->execute($sql, $arguments); return $stmt->fetchobject($type);
46 <?php class Vehicle { private $color; private $brand; VEHICLE.PHP public function construct() { public function tostring() { return 'een voertuig met de kleur '. $this->getcolor(). ' en het merk '. $this->getbrand(); public function setcolor($color) { $this->color = $color; public function getcolor() { return $this->color; public function setbrand($brand) { $this->brand = $brand; public function getbrand() { return $this->brand;
47 VEHICLE_DETAIL.PHP <!DOCTYPE html> <html> <body> <table> <th>kleur</th> <th>merk</th> <tr> <td><?php echo $this->_vehicle->getcolor();?></td> <td><?php echo $this->_vehicle->getbrand();?></td> </tr> </table> </body> </html> Code Onveranderd
48 FRONT CONTROLLER ZONDER $_GET Uitbreiding Categorie toevoegen
49 FRONT CONTROLLER ZONDER $_GET Problemen? veel dubbele code nu
50 FRONT CONTROLLER ZONDER $_GET Refactoren dubbele code Mapper klasse Identifiable klasse Zie dynweb2013examples/theorie07/ frontcontroller_stap04
51 MAPPER.PHP <?php require_once(system_path. 'model/db.php'); class Mapper {... protected $_db; protected $_table; protected $_type; public function construct($table, $type) { $this->_db = Db::getInstance(); $this->_table = $table; $this->_type = $type;
52 MAPPER.PHP public function get($id) { $query = " SELECT * FROM $this->_table WHERE id =? "; return $this->_db->queryone($query, $this->_type, array($id)); public function getall() { $query = " SELECT * FROM $this->_table "; return $this->_db->queryall($query, $this->_type);...
53 VEHICLEMAPPER.PHP <?php require_once(application_path. 'model/vehicle.php'); require_once(system_path. 'model/mapper.php'); class VehicleMapper extends Mapper { public function construct() { parent:: construct('vehicles', 'Vehicle');
54 IDENTIFIABLE.PHP <?php class Identifiable { private $_id; public function getid() { return $this->_id; public function setid($id) { $this->_id = $id; function get($property) { $method = "get{$property"; if (method_exists($this, $method)) { return $this->$method(); public function set($property, $value){ $method = "set{$property"; if (method_exists($this, $method)) { $this->$method($value);
55 <?php require_once(system_path. 'model/identifiable.php'); class Vehicle extends Identifiable { private $_color; private $_brand; public function construct() { public function setcolor($color) { $this->_color = $color; public function getcolor() { return $this->_color; public function setbrand($brand) { $this->_brand = $brand; public function getbrand() { return $this->_brand; VEHICLE.PHP
56 VEHICLE.PHP public function tostring() { return 'een voertuig met de kleur '. $this->getcolor(). ' en het merk '. $this->getbrand(); public function toarray() { $fields['color'] = $this->_color; $fields['brand'] = $this->_brand; return $fields;
57 AGENDA Lesschema Herhaling Front Controller?
58 VOORBEREIDING LABO Bekijk de code in svn dynweb2013examples/theorie07/frontcontroller
59 VOORBEREIDING LABO URLs home home/display/elke vehicle vehicle/detail/1 category category/detail/2
OGH: : 11g in de praktijk
OGH: : 11g in de praktijk Real Application Testing SPREKER : E-MAIL : PATRICK MUNNE [email protected] DATUM : 14-09-2010 WWW.TRANSFER-SOLUTIONS.COM Real Application Testing Uitleg Real Application
Tuesday, February 26, 2008. Unit testen in de praktijk
Unit testen in de praktijk Indeling Algemene theorie van unit testing PHPunit Wat is het doel van testen? Controleren of software correct werkt. Voldoet software aan vooraf gegeven specificaties? Blijft
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
Uniface 9.7.01 en PostgreSQL, de eerste ervaringen
Uniface 9.7.01 en PostgreSQL, de eerste ervaringen Arjen van Vliet Solution Consultant donderdag 26 november 2015 Agenda 1. Wat gebeurt er in de database markt? 2. Kenmerken van PostgreSQL 3. Stappenplan
Table of contents. 2. Technical details... 7 2.1. Protocols used... 7 2.2. Messaging security... 7 2.3. Encoding... 7 2.4. Input and output...
Table of contents Revision history... 3 Introduction... 4 1. Environments... 5 1.1. Test/ acceptance environment... 5 1.2. Production environment... 5 1.3. Methods... 5 1.3.1. DataRequest... 5 1.3.2. StandardDataRequest...
A Tour of Silex and Symfony Components. Robert Parker @yamiko_ninja
A Tour of Silex and Symfony Components Robert Parker @yamiko_ninja Wait Not Drupal? Self Introduction PHP Developer since 2012 HTML and JavaScript Since 2010 Full Stack Developer at Dorey Design Group
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
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
Maximizer Synergy. [email protected] 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,
Shopper Marketing Model: case Chocomel Hot. Eric van Blanken 20th October 2009
Shopper Marketing Model: case Chocomel Hot Eric van Blanken 20th October 2009 Introduction Chocomel Hot out-of-home: hot consumption > cold consumption 2004: launch of the Chocomel Hot machine for out-of-home
Specification by Example (methoden, technieken en tools) Remco Snelders Product owner & Business analyst
Specification by Example (methoden, technieken en tools) Remco Snelders Product owner & Business analyst Terminologie Specification by Example (SBE) Acceptance Test Driven Development (ATDD) Behaviour
Server-side: PHP and MySQL (continued)
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
The information in this report is confidential. So keep this report in a safe place!
Bram Voorbeeld About this Bridge 360 report 2 CONTENT About this Bridge 360 report... 2 Introduction to the Bridge 360... 3 About the Bridge 360 Profile...4 Bridge Behaviour Profile-Directing...6 Bridge
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
IP-NBM. Copyright Capgemini 2012. All Rights Reserved
IP-NBM 1 De bescheidenheid van een schaker 2 Maar wat betekent dat nu 3 De drie elementen richting onsterfelijkheid Genomics Artifical Intelligence (nano)robotics 4 De impact van automatisering en robotisering
GMP-Z Hoofdstuk 4 Documentatie. Inleiding
-Z Hoofdstuk 4 Documentatie Inleiding Het hoofdstuk Documentatie uit de -richtsnoeren is in zijn algemeenheid goed toepasbaar in de ziekenhuisapotheek. Verschil met de industriële is dat de bereidingen
Management control in creative firms
Management control in creative firms Nathalie Beckers Lessius KU Leuven Martine Cools Lessius KU Leuven- Rotterdam School of Management Alexandra Van den Abbeele KU Leuven Leerstoel Tindemans - February
Hoorcollege marketing 5 de uitgebreide marketingmix. Sunday, December 9, 12
Hoorcollege marketing 5 de uitgebreide marketingmix Sunday, December 9, 12 De traditionele marketing mix Sunday, December 9, 12 Waarom was dat niet genoeg dan? Sunday, December 9, 12 Omdat er vooruitgang
1. Building Testing Environment
The Practice of Web Application Penetration Testing 1. Building Testing Environment Intrusion of websites is illegal in many countries, so you cannot take other s web sites as your testing target. First,
Certified PHP/MySQL Web Developer Course
Course Duration : 3 Months (120 Hours) Day 1 Introduction to PHP 1.PHP web architecture 2.PHP wamp server installation 3.First PHP program 4.HTML with php 5.Comments and PHP manual usage Day 2 Variables,
How To Let A Lecturer Know If Someone Is At A Lecture Or If They Are At A Guesthouse
Saya WebServer Mini-project report Introduction: The Saya WebServer mini-project is a multipurpose one. One use of it is when a lecturer (of the cs faculty) is at the reception desk and interested in knowing
Proprietary Kroll Ontrack. Data recovery Data management Electronic Evidence
Data recovery Data management Electronic Evidence Back-up migratie of consolidatie TAPE SERVICES Overview The Legacy Tape Environment Common Legacy Tape Scenarios Available Options Tape Service Components
Better Training for Safer Food Initiative
Better Training for Safer Food Initiative Insects and ABP Christophe Keppens Neil Leach Health and Consumers Why insects in feed? Challenges in animal production Demand side: Exploding demand food of animal
Examen Software Engineering 2010-2011 05/09/2011
Belangrijk: Schrijf je antwoorden kort en bondig in de daartoe voorziene velden. Elke theorie-vraag staat op 2 punten (totaal op 24). De oefening staan in totaal op 16 punten. Het geheel staat op 40 punten.
Site Store Pro. INSTALLATION GUIDE WPCartPro Wordpress Plugin Version
Site Store Pro INSTALLATION GUIDE WPCartPro Wordpress Plugin Version WPCARTPRO INTRODUCTION 2 SYSTEM REQUIREMENTS 4 DOWNLOAD YOUR WPCARTPRO VERSION 5 EXTRACT THE FOLDERS FROM THE ZIP FILE TO A DIRECTORY
VIDEO CREATIVE IN A DIGITAL WORLD Digital analytics afternoon. [email protected] [email protected]
VIDEO CREATIVE IN A DIGITAL WORLD Digital analytics afternoon [email protected] [email protected] AdReaction Video: 42 countries 13,000+ Multiscreen Users 2 3 Screentime is enormous
Welkom! Copyright 2014 Oracle and/or its affiliates. All rights reserved.
Welkom! WIE? Bestuurslid OGh met BI / WA ervaring Bepalen activiteiten van de vereniging Deelname in organisatie commite van 1 of meerdere events Faciliteren van de SIG s Redactie van OGh-Visie Onderhouden
CO-BRANDING RICHTLIJNEN
A minimum margin surrounding the logo keeps CO-BRANDING RICHTLIJNEN 22 Last mei revised, 2013 30 April 2013 The preferred version of the co-branding logo is white on a Magenta background. Depending on
IC Rating NPSP Composieten BV. 9 juni 2010 Variopool
IC Rating NPSP Composieten BV 9 juni 2010 Variopool AGENDA: The future of NPSP Future IC Rating TM NPSP Composieten BV 2 Bottom line 3 Bottom line 4 Definition of Intangibles The factors not shown in the
Querying Databases Using the DB Query and JDBC Query Nodes
Querying Databases Using the DB Query and JDBC Query Nodes Lavastorm Desktop Professional supports acquiring data from a variety of databases including SQL Server, Oracle, Teradata, MS Access and MySQL.
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
Apache & Virtual Hosts & mod_rewrite
Apache & Virtual Hosts & mod_rewrite Jonathan Brewer Network Startup Resource Center [email protected] These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license
Online shopping store
Online shopping store 1. Research projects: A physical shop can only serves the people locally. An online shopping store can resolve the geometrical boundary faced by the physical shop. It has other advantages,
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
7 Web Databases. Access to Web Databases: Servlets, Applets. Java Server Pages PHP, PEAR. Languages: Java, PHP, Python,...
7 Web Databases Access to Web Databases: Servlets, Applets Java Server Pages PHP, PEAR Languages: Java, PHP, Python,... Prof. Dr. Dietmar Seipel 837 7.1 Access to Web Databases by Servlets Java Servlets
Real SQL Programming 1
Real 1 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 programs
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
By : Ashish Modi. CRUD USING PHP (Create, Read, Update and Delete on Database) Create Database and Table using following Sql Syntax.
CRUD USING PHP (Create, Read, Update and Delete on Database) Create Database and Table using following Sql Syntax. create database test; CREATE TABLE `users` ( `id` int(11) NOT NULL auto_increment, `name`
Zend Framework Database Access
Zend Framework Database Access Bill Karwin Copyright 2007, Zend Technologies Inc. Introduction What s in the Zend_Db component? Examples of using each class Using Zend_Db in MVC applications Zend Framework
PHP Authentication Schemes
7 PHP Authentication Schemes IN THIS CHAPTER Overview Generating Passwords Authenticating User Against Text Files Authenticating Users by IP Address Authenticating Users Using HTTP Authentication Authenticating
Dutch Mortgage Market Pricing On the NMa report. Marco Haan University of Groningen November 18, 2011
Dutch Mortgage Market Pricing On the NMa report Marco Haan University of Groningen November 18, 2011 Introductory remarks My comments are complementary: I do not focus so much on this market as such, more
Role Based Access Control. Using PHP Sessions
Role Based Access Control Using PHP Sessions Session Developed in PHP to store client data on the web server, but keep a single session ID on the client machine (cookie) The session ID : identifies the
Research Report. Ingelien Poutsma Marnienke van der Maal Sabina Idler
Research Report Ingelien Poutsma Marnienke van der Maal Sabina Idler Research report ABSTRACT This research investigates what the ideal bank for adolescents (10 16 years) looks like. The research was initiated
Vermenigvuldig en Afdeling (Intermediêre fase)
Vermenigvuldig en Afdeling (Intermediêre fase) My Huiswerk Boek(4) Naam: Jaar: Skool: Declaration This booklet is not sold or used for profit making. It is used solely for educational purposes. You may
Merchant API for PHP libcurl Implementation Guide to the PHP libcurl Examples for Apache Web Server Version 1.0.5
Merchant API for PHP libcurl Implementation Guide to the PHP libcurl Examples for Apache Web Server Version 1.0.5 Jürgen Filseker API_Client_libcurl.doc 30.05.2007 1 von 6 Index 1 INTRODUCTION...3 2 REQUIREMENTS
Windows Azure Push Notifications
Windows Azure Push Notifications Edwin van Wijk Marco Kuiper #WAZUGPUSH Push Notifications Uitdagingen Oplossingen Windows Azure Demo Windows Azure Push Notifications 2 Introductie Edwin van Wijk [email protected]
Sample test Secretaries/administrative. Secretarial Staff Administrative Staff
English Language Assessment Paper 3: Writing Time: 1¼ hour Secretarial Staff Administrative Staff Questions 1 17 Text 1 (questions 1 8) Assessment Paper 3 Writing Part 1 For questions 1-8, read the text
Implementeren van HL7v3 Web Services
Implementeren van HL7v3 Web Services - Marc de Graauw - SOAP & WSDL SOAP & WSDL Intro WSDL & code generation Dynamic response, wrapped style Generic WSDL Reliability issues Wire signature Web Services
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,
Advanced Object Oriented Database access using PDO. Marcus Börger
Advanced Object Oriented Database access using PDO Marcus Börger ApacheCon EU 2005 Marcus Börger Advanced Object Oriented Database access using PDO 2 Intro PHP and Databases PHP 5 and PDO Marcus Börger
Writing Scripts with PHP s PEAR DB Module
Writing Scripts with PHP s PEAR DB Module Paul DuBois [email protected] Document revision: 1.02 Last update: 2005-12-30 As a web programming language, one of PHP s strengths traditionally has been to make
Load Balancing Lync 2013. Jaap Wesselius
Load Balancing Lync 2013 Jaap Wesselius Agenda Introductie Interne Load Balancing Externe Load Balancing Reverse Proxy Samenvatting & Best Practices Introductie Load Balancing Lync 2013 Waarom Load Balancing?
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
Verticale tuin maken van een pallet
Daar krijg je dan je groendakmaterialen geleverd op een pallet. Waar moet je naar toe met zo'n pallet. Retour brengen? Gebruiken in de open haard? Maar je kunt creatiever zijn met pallets. Zo kun je er
ONLINE BACKUP S e r v i c e s USER MANUAL. Eljes Online Backup Management Console 3.8
ONLINE BACKUP S e r v i c e s USER MANUAL Eljes Online Backup Management Console 3.8 1 November 2008 Version 1.0 Disclaimer This document is compiled with the greatest possible care. However, errors might
total dutch speak Dutch instantly no books no writing absolute confi dence
total dutch speak Dutch instantly no books no writing absolute confi dence d To find out more, please get in touch with us. For general enquiries and for information on Michel Thomas: Call: 020 7873 6400
Network Assessment Client Risk Report Demo
Network Assessment Client Risk Report Demo Prepared by: Henry Knoop Opmerking: Alle informatie in dit rapport is uitsluitend bestemd voor gebruik bij bovenvermelde client. Het kan vertrouwelijke en persoonlijke
Simulating Variable Message Signs Influencing dynamic route choice in microsimulation
Simulating Variable Message Signs Influencing dynamic route choice in microsimulation N.D. Cohn, Grontmij Traffic & Transport, [email protected] P. Krootjes, International School of Breda, [email protected]
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
Breaking Web Applications in Shared Hosting Environments. Nick Nikiforakis Katholieke Universiteit Leuven
Breaking Web Applications in Shared Hosting Environments Nick Nikiforakis Katholieke Universiteit Leuven Who am I? Nick Nikiforakis PhD student at KULeuven Security Low-level Web applications http://www.securitee.org
Cisco Small Business Fast Track Pricing Initiative
Cisco Small Business Fast Track Pricing Initiative Highlights Het Cisco Small Business portfolio biedt u een breed scala aan producten waarmee u optimaal kunt inspelen op de vraag van uw mkb klanten. Zeker
Market Intelligence & Research Services. CRM Trends Overview. MarketCap International BV Januari 2011
Market Intelligence & Research Services CRM Trends Overview MarketCap International BV Januari 2011 Index 1. CRM Trends generiek 2. CRM & IT 3. CRM in Nederland 2011 2 Index 1. CRM Trends generiek 2. CRM
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
TIMETABLE ADMINISTRATOR S MANUAL
2015 TIMETABLE ADMINISTRATOR S MANUAL Software Version 5.0 BY GEOFFPARTRIDGE.NET TABLE OF CONTENTS TOPIC PAGE 1) INTRODUCTION 1 2) TIMETABLE SPECIFICATIONS 1 3) SOFTWARE REQUIRED 1 a. Intranet Server (XAMPP
Using IRDB in a Dot Net Project
Note: In this document we will be using the term IRDB as a short alias for InMemory.Net. Using IRDB in a Dot Net Project ODBC Driver A 32-bit odbc driver is installed as part of the server installation.
How To Get A Ticket To The Brits Engels
Uitwerkingen hoofdstuk 7 Basisboek Engels Oefening 1 1. incoming call 2. mobile (phone) / cellphone 3. direct dial number 4. international access / dialling code 5. area code 6. to hang up, to ring off
Create e-commerce website Opencart. Prepared by : Reth Chantharoth Facebook : https://www.facebook.com/tharothchan.ubee E-mail : rtharoth@yahoo.
Create e-commerce website Opencart Prepared by : Reth Chantharoth Facebook : https://www.facebook.com/tharothchan.ubee E-mail : [email protected] Create e-commerce website Opencart What is opencart? Opencart
Written by: Johan Strand, Reviewed by: Chafic Nassif, Date: 2006-04-26. Getting an ipath server running on Linux
Getting an ipath server running on Linux Table of Contents Table of Contents... 2 1.0. Introduction... 3 2.0. Overview... 3 3.0. Installing Linux... 3 4.0. Installing software that ipath requires... 3
Cambridge International Examinations Cambridge International General Certificate of Secondary Education
Cambridge International Examinations Cambridge International General Certificate of Secondary Education DUTCH 0515/01 Paper 1 Listening For Examination from 2015 SPECIMEN MARK SCHEME Approx. 45 minutes
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.
HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION
HOW TO SETUP AN APACHE WEB SERVER AND INTEGRATE COLDFUSION Draft version 1.0 July 15 th 2010 Software XAMPP is an open source package designed to take almost all the work out of setting up and integrating
MAYORGAME (BURGEMEESTERGAME)
GATE Pilot Safety MAYORGAME (BURGEMEESTERGAME) Twan Boerenkamp Who is it about? Local council Beleidsteam = GBT or Regional Beleidsteam = RBT Mayor = Chairman Advisors now = Voorlichting? Official context
Qualtrics Single Sign-On Specification
Qualtrics Single Sign-On Specification Version: 2010-06-25 Contents Introduction... 2 Implementation Considerations... 2 Qualtrics has never been used by the organization... 2 Qualtrics has been used by
E-Commerce met Microsoft
Webplatform & klantmanagement E-Commerce met Microsoft Verander uw Web-site naar een succesvol business platform Nico Copier Enterprise Technology Architect [email protected] Microsoft Agenda Trends
How To Design A 3D Model In A Computer Program
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
Visie op Hosted Services: Cloud Computing. Michel N guettia Business Lead Server
Visie op Hosted Services: Cloud Computing Michel N guettia Business Lead Server Agenda De Strategie Microsoft Cloud Partner Opportunity Ondertussen, de 5e Generatie Computing Cloud SOA Web Client-Server
MIMOA. UID MIMOA Demo 0.8 Version: UID_v0.83.vsd. Versie: UID_v0.83.vsd. UID MIMOA Launch. Matthijs Collard 1. Elements 2. Elements 2 3.
UID Demo 0.8 Version: UID_v0.83.vsd Elements 2 Elements 2 3 Elements 3 4 Homepage 5 Marker Managing 6 Marker Managing continued 7 Full size map Detail page 8 Project Detail page demo 0.8 9 Contactpage
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
INSEAD ALUMNI ASSOCIATION THE NETHERLANDS EVENT CALENDAR
INSEAD ALUMNI ASSOCIATION THE NETHERLANDS EVENT CALENDAR Corporate Sponsors of the INSEAD Alumni Association of The Netherlands Booking Form This booking form is for your convenience as well as to give
Special Interest Group Oracle WebCenter
Special Interest Group Oracle WebCenter Eric Bos Oracle ECM Consultant 28 Oktober 2013 1 Oracle WebCenter Capture 1. Webcenter Capture vs OFR (Perceptive IDC) 2. WebCenter Capture 3. Workspaces en andere
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
SURFfederatie - edugain. Opt-in Metadata Management for a Hub & Spoke Federation
SURFfederatie - edugain Opt-in Metadata Management for a Hub & Spoke Federation Content - History of SURFfederatie - Federation models - Functional view - Consequences of hub & spoke - edugain - Future
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
Individual project 2010: Kick- off. 13 April 2010
Individual project 2010: Kick- off 13 April 2010 Agenda Purpose of individual project What will be expected of you Support The assignment Client Assignment Deliverables & deadlines Project planning Beoordeling
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...
CSCI110 Exercise 4: Database - MySQL
CSCI110 Exercise 4: Database - MySQL The exercise This exercise is to be completed in the laboratory and your completed work is to be shown to the laboratory tutor. The work should be done in week-8 but
pset 7: C$50 Finance Zamyla Chan [email protected]
pset 7: C$50 Finance Zamyla Chan [email protected] Toolbox permissions HTML PHP SQL permissions use chmod in the Terminal to change permissions of files and folders chmod a+x folder folder executable by
Bld. du Roi Albert II, 27, B 1030 BRUSSELS Tel. +32 2 203 82 82 Fax. +32 2 203 82 87 www.scanit.be. Secure file upload in PHP web applications
Bld. du Roi Albert II, 27, B 1030 BRUSSELS Tel. +32 2 203 82 82 Fax. +32 2 203 82 87 www.scanit.be Secure file upload in PHP web applications Alla Bezroutchko June 13, 2007 Table of Contents Introduction......3
