入口
pkgsrc による設置
  php3
    php3-i18n
    database/php3-pgsql
    www/ap-php3
apache 版
postgres (1)
  php4-pgsql (3)
    make install
php4 (apache1)
  www/php4(2)
    php4 の版
  www/ap-php4(5)
  www/apache(4)
    IPv6
    IPv4+nossl
    Apache/SSL
php4(apache2) - 依存関係
  ap2-php4
    php4
    mod_php4.so
    /usr/pkg/etc/php.ini
  php4-session(6)
    session.so
    --enable-session
    core_globals
    map
    php4 i18n 無
    php4 i18n
  configure
セッション管理
  php3 互換モード
  php4 内蔵
  php4 + phplib
  phpinfo()
PostgreSQL 準備
  postmaster
  環境変数
  initdb
    実際の様子
    試しに起動
  postmaster 設定
  postgreql.conf
  pg_hba.conf
  postmaster の起動
  使用者登録
  pg_ctl
  /etc/rc.conf
  shutdown
データべースを作る
psql
  psql \h
  psql \?
  psql \h select
  psql \d
  psql \copy
  psql 操作
  Data Type
    DATE
Application
  pgpost
    pgpost 設置例
    psql で見る
  AuthPG
      create table
        GRANT
  pgimage
  pgimage psql
SQL
URL
  PostgreSQL
  PHP
良くある問題
    undefined pg_connect()
    Link-ID == false
    Call-time pass-by-reference
    session_register
    Undefined session_adapt_flush
    Failed opening for inclusion
  does not exist in ..
  pg_exec() query failed
  Undefined property: Port
  undefined function: preg_match()
  used in non-rule query
その他
適用例
  日記から等

PostgreSQL + Apache + PHP4 | PHP4 programming

/usr/pkg/etc/php.ini

の設定にも注意 php.ini は www/php4 で make すると
/usr/pkg/share/examples/php/php.ini-dist
/usr/pkg/share/examples/php/php.ini-recommended
等が入るので、これらから少し変更して使う。 これが置いてあるのは /usr/pkg/etc/php.ini。 例えば、
ttyp1:root@st3240  17:42:02/030525(...pkg/etc)# diff -u /usr/pkg/share/examples/php/php.ini-recommended php.ini
--- /usr/pkg/share/examples/php/php.ini-recommended     2003-05-25 17:14:08.000000000 +0900
+++ php.ini     2003-05-25 16:50:09.000000000 +0900
@@ -440,6 +440,8 @@
 ; Note that it should be the name of the module only; no directory information 
 ; needs to go here.  Specify the location of the extension with the
 ; extension_dir directive above.
+extension=session.so
+extension=pgsql.so
 
 
 ;Windows Extensions
@@ -758,7 +760,7 @@
 ;   in publically accessible computer.
 ; - User may access your site with the same session ID
 ;   always using URL stored in browser's history or bookmarks.
-session.use_trans_sid = 0
+session.use_trans_sid = 1
 
 url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
 
ttyp1:root@st3240  17:42:08/030525(...pkg/etc)# 
のようにする。 上記の
extension=pgsql.so
の行の設定がない場合、次のような問題が起きる。
PHP Fatal error:  Call to undefined function:  pg_connect() in

ここで参照している session.so は次の php4-session で入る。

この画面は Jeedosaquin によって表示しています。
Last Update: Sat, 04 May 2019 00:45:20 GMT 1.66 2008/03/08