橡t15-shibuya.kashiwa.ppt

Similar documents
3 Powered by mod_perl, Apache & MySQL use Item; my $item = Item->new( id => 1, name => ' ', price => 1200,

CAS Yale Open Source software Authentication Authorization (nu-cas) Backend Database Authentication Authorization Powered by A

CodeIgniter Con 2011, Tokyo Japan, February

第3回_416.ppt

FileMaker Server 9 Getting Started Guide

22 (266) / Web PF-Web Web Web Web / Web Web PF-Web Web Web Web CGI Web Web 1 Web PF-Web Web Perl C CGI A Pipe/Filter Architecture Based Software Gener

WEB DB PRESS Vol.1 65

tkk0408nari

JavaScript の使い方

"CAS を利用した Single Sign On 環境の構築"

FileMaker ODBC and JDBC Guide

untitled


FileMaker Server Getting Started Guide

WordPress Web

XMLアクセス機能説明書

FileMaker 15 ODBC と JDBC ガイド

2009 Web B012-1


untitled

Web apache

main.dvi

FileMaker Server Getting Started Guide

FileMaker Server Getting Started Guide

…l…b…g…‘†[…N…v…“…O…›…~…fi…OfiÁŸ_

hands_on_4.PDF

untitled

2 Java 35 Java Java HTML/CSS/JavaScript Java Java JSP MySQL Java 9:00 17:30 12:00 13: 項目 日数 時間 習得目標スキル Java 2 15 Web Java Java J

FileMaker 16 ODBC と JDBC ガイド

LAPP/LAMP (SQL + cgi)

untitled

オンラインテスト


"CAS を利用した Single Sign On 環境の構築"

PostgreSQLによる データベースサーバ構築技法

JEE 上の Adobe Experience Manager forms のインストールおよびデプロイ(WebLogic 版)

意外と簡単!? Oracle Database 11g -バックアップ・リカバリ編-

Copyright 2006 Mitsui Bussan Secure Directions, Inc. All Rights Reserved. 3 Copyright 2006 Mitsui Bussan Secure Directions, Inc. All Rights Reserved.

shio_ PDF

FileMaker Server 9 Getting Started Guide

第2回_416.ppt

ii II Web Web HTML CSS PHP MySQL Web Web CSS JavaScript Web SQL Web

ID () PASSWORD ( ) - -

Plan of Talk CAS CAS 2 CAS Single Sign On CAS CAS 2 CAS Aug. 19, 2005 NII p. 2/32

25 About what prevent spoofing of misusing a session information

MySQLにおけるシステム運用時のポイント

Oracle Calendar Oracle Collaboration Suite 2(9.0.4) Creation Date: Jun 04, 2003 Last Update: Nov 18, 2003 Version:

Microsoft Word - J doc

Microsoft Word - PHP_SQLServer2012

Gray [6] cross tabulation CUBE, ROLL UP Johnson [7] pivoting SQL 3. SuperSQL SuperSQL SuperSQL SQL [1] [2] SQL SELECT GENERATE <media> <TFE> GENER- AT

FileMaker ODBC と JDBC ガイド

橡CoreTechAS_HighAvailability.PDF

untitled

untitled


Windows Oracle -Web - Copyright Oracle Corporation Japan, All rights reserved.

1_cover

Web Servlet/JSP JSP

Q&A集

FileMaker Server 16 インストールおよび構成ガイド

untitled

IIJ Technical WEEK Cloudbusting Machine(CBM)

2

shibasaki(印刷用)

Actual ESS Adapterの使用について

csj-report.pdf

54 5 PHP Web hellow.php 1:<?php 2: echo "Hellow, PHP!Y=n"; 3:?> echo PHP C 2: printf("hellow, PHP!Y=n"); PHP (php) $ php hellow.php Hellow, PHP! 5.1.2

"CAS を利用した Single Sign On 環境の構築"

, [! [, ]! ]!,,., ([ ],). : [Name], name1 name2 name10 ([ ]!). name1 name2 : [Name]! name SuperSQL,,,,,,, < < > } =.,

fiš„v3.dvi

Windowsユーザーの為のOracle Database セキュリティ入門

Vol.55 No (Jan. 2014) saccess 6 saccess 7 saccess 2. [3] p.33 * B (A) (B) (C) (D) (E) (F) *1 [3], [4] Web PDF a m

I. Opal SSC 1. Opal SSC 2. Opal Storage 3. Opal Storage MBR Shadowing 6. SP II. TCG Opal SSC HDD 9. Opal SSC HDD *1. TCG: Trusted Computin

スライド 1

LWW EJ on Ovid LWW Ovid Online (Ovid Web Gateway) Ovid Online LWW tutorial Ovid Online Refresh Ovid Online LWW Ovid Medline, Cinahl, EBMR, Ovid

untitled

CAC

KWCR3.0 instration

untitled


H indd


FileMaker ODBC and JDBC Guide

1. COBOL COBOL COBOL COBOL 2

FileMaker Server 15 入門ガイド

Dec , IS p. 1/60

Oracle Lite Tutorial

Oracle Web Conferencing Oracle Collaboration Suite 2 (9.0.4) Creation Date: May 14, 2003 Last Update: Jan 21, 2005 Version: 1.21

Web SOAP Internet Web REST SOAP REST 3 REST SOAP 4

d_appendixB-asp10appdev.indd

n n n ( ) n Oracle 16 PostgreSQL 3 MySQL

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f


Microsoft Word - # _Quick_Install_Guide_Final.doc

SQL Web Web SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL SQL i

96 8 PHPlot 1. ( 8.1) 4 1: // 2: // $_SERVER[ HTTP_REFERER ]... 3: // $_SERVER[ HTTP_USER_AGENT ]... 4: // $_SERVER[ REMOTE_ADDR ]... ( ) 5: // $_SERV

2

untitled

Azure 環境 UiPath Orchestrator シングル構成構築手順書 v1.0

HTML Java Tips dp8t-asm/java/tips/ Apache Tomcat Java if else f

Transcription:

PHPLib PHPLib 1

Web Application PHPLib DB_S PostgreSQL, MySQL, Oracle, ODBC Session GET Auth Perm User 2

PHPLib local.inc Require($_PHPLIB[ libdir ]. db_mysql.inc ); db_pgsql.inc prepend.php3 Php3.ini autoprepend Database MySQL PostgreSQL 3

MySQL, PostgreSQL MySQL mysql_connect() mysql_query() PostgreSQL pg_connect() pg_exec() mysql_fetch_arra y() mysql_num_rows () pg_fetch_array() pg_num_rows() (MySQL ) define( DEBUG, true); $db->debug = DEBUG; < > Debug: query = select * from test 4

DB_S halt Override class test_db extend DB_Sql { } function halt($msg) printf( :%s n", $msg); printf("postgresql Error</b>: %s (%s) n", $this->errno, $this->error); die("session halted."); DB_Sql Example $db = new Example_DB; // $db->connect( test, localhost, username, ); // $sql = select * from test ; $db->query($sql); // while($db->next_record()){ while(list($key, $value) = each($db->record)){ print(is_string($key)? <b>$key</b>: $value<br> : ); } print( <p> ); } 5

Database $db = new Example_DB; $db->database= test ; $db->host = localhost ; $db->user = username ; $db->password = ; $db->query() Session session.inc GET 6

local.inc class Cal_DB extends DB_Sql { var $Host = "localhost"; var $Database = "calendar"; var $User = ""; var $Password = ""; } class Cal_CT_Sql extends CT_Sql { var $database_class = "Cal_DB"; ## Which database to connect... var $database_table = "active_sessions"; ## and find our session data in this table. } local.inc ( ) class Cal_Session extends Session { var $classname = "Cal_Session"; var $allowcache = "no"; var $cookiename = ""; ## defaults to classname var $magic = "AlpHa"; ## ID seed var $mode = "cookie"; ## We propagate session IDs with cookies var $fallback_mode = "get"; var $lifetime = 0; ## 0 = do session cookies, else minutes var $that_class = "Cal_CT_Sql"; ## name of data storage container var $gc_probability = 5; } 7

Session ID, Serializing, CT_S,, DB_S, Session extends Cal_Session CT_S extends Cal_Sql_CT DB_S extends Cal_DB local.inc 8

page_open() page_open(array("sess"=>"cal_session", "auth"=>"cal_auth", "perm"=>"cal_perm")); [ ] page_close(); page_open(), HTTP purl(), url(), pself_url() GET ID $link = $sess->url( script.php3 ); script.php3?cal_session=ecfdeaaf850f79b1f4402ff48a70 2559 9

HTTP Basic ( ) PHP PHPLib PHPLib HTTP Basic HTTP Database LDAP DBM Auth auth_validatelogin() CGI PHP ( ) 10

page_open(array("sess"=>"cal_session", "auth"=>"cal_auth", "perm"=>"cal_perm")); printf("your session id: %s<p> n", $sess->id); printf("your user ID: %s<p> n", $auth->auth["uid"]); printf("your user name: %s<p> n", $auth->auth["uname"]); printf("your permissions: %s<p> n", $auth->auth["perm"]); page_close(); ( ) Your session id: d4d9df4d89d81a3d94992f24f8a1bb96 Your user ID: 9eda03dc8801523058abc42cc54da7df Your user name: admin Your permissions: admin,user 11

DB_Sql PostgreSQL db_pgsql.inc function query if ($this->debug) printf("debug: query = %s<br> n", $Query_String); define( DEBUG, true); $db = new DB_Example; $db->debug = DEBUG; db_pgsql.inc function query pg_exec if($this->debug) printf( start time: %s<br> n, localtime()); $this->query_id = pg_exec($this->link_id, $Query_String); if($this->debug) printf("debug: query = %s<br> n", $Query_String); printf( start time: %s<br> n, localtime()); 12

( ) Admin E-mail ( ) 13

( ) ( ) 14

( ) PHP cron # pgcalendar HOME=/home/httpd/html/pgCalendar/bin */5 * * * * nobody /usr/bin/php -q./notify.php3 perl pgbash Tips 1 1 select * from 30 1 ) $event["04-12"][0]["title"] 15

Tips( ) while($db->next_record()){ $event_date = $db->f("date"); if(isset($event[$event_date])){ $count = count($event[$event_date]); } else { } $count = 0; } $event[$event_date][$count]["title"] = $db->f("title"); URL http://phplib.netuse.de/ PHP PHPLib http://www.php.gr.jp/php/phplib/ pgcalendar http://alpha.or.jp/php/pgcalendar/ PostgreSQL, PHP-3.0.15-i18n_ja RPMS http://alpha.or.jp/vine/vineseed/ 16