note: Windows Apache httpd / PHP 存取 Interbase(Firebird)

2014012714:19

測試環境:


C:\Program Files\Firebird\Firebird_2_0\bin\fbclient.dll
複製到
C:\Program Files\Apache Software Foundation\Apache2.2\bin



修改 apache httpd 設定檔
C:\Program Files\Apache Software Foundation\Apache2.2\conf\httpd.conf

加入三行:
LoadModule php5_module "c:/php/php5apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

DirectoryIndex index.html
改為
DirectoryIndex index.php index.html

改 htdocs 文件路徑
DocumentRoot "C:/htdocs"



修改 php.ini
c:\php\php.ini

extension_dir = "c:\php\ext"

extension=php_interbase.dll   將 ; 取消


測試:
寫一個 c:\htdocs\phpinfo.php 檔,內容只要一行:
<?php   phpinfo();  ?>


用瀏覽器查看 http://127.0.0.1/phpinfo.php
若有下面 interbase 訊息成功

 

interbase

Firebird/InterBase Support dynamic
Compile-time Client Library Version Firebird API version 25
Run-time Client Library Version WI-V6.3.7.13318 Firebird 2.0


  •   丁酷 於 2014-01-28 10:28 1F
  • 新年到~
    祝好友~~~偏財.橫財.財源滾滾~~~
    親情~友情~愛情~情情如意~~~
    官運~財運~桃花運~運運享通﹏﹏
  • 版主於 2014-01-28 10:34 回覆
    謝謝囉!
    祝大家新年如意!馬年發財!