Extensions
----------
MySQL, ODBC, FTP, Calendar, BCMath, COM, PCRE, Session, WDDX and XML support is *built-in*.
You don't need to load any additional extensions in order to use these functions.
這些服務是內建的,你不必為使用這些函數而調入擴充模組
Installtion instructions
------------------------
安裝介紹
Apache:
1. Stop the Apache Webserver.
停止 Apache 伺服器
Edit the httpd.conf and put in these lines, modified to your environment:
編輯 http.conf 加上這些行,更改你的環境
2. Unzip the Package to c:php, now move php4ts.dll to the windows/system(32) directory, overwritte any older file!
展開壓縮包到 c:php, 把 php4ts.dll 移動到 windows/system(32)目錄下面,覆蓋任何老的檔案
# for the apache module
用於 apache 模組方式
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php4
#for the cgi binary (you can use that one compiled with force cgi redirect too)
用於 cgi 方式
ScriptAlias /php4/ "C:/php/"
Action application/x-httpd-php4 "/php4/php.exe"
AddType application/x-httpd-php4 .php
3. Copy the php.ini-dist to your sysroot (directory where you installed windows), rename it to php.ini, and
edit the php.ini to fit your needs.
複製 php.ini-dist 到你的系統目錄(安裝 windows 的目錄),改名字為 php.ini,同時編輯 php.ini 為你需要的配置
4. Restart the Apache server.
重新啟動 Apache 伺服器
------------------------------------------------------------------------------------------
Oreilly Wesite Pro:
1. First make sure that you got atleast Version 2.5
確認你得到的是 alleast 2.5 版本
2. Edit the Server Properties and select the tab "Mapping"
編輯服務器屬性,選擇 Mapping
3. From the List select "Associations" and enter the desired extension (".php") and the path to the cgi exe or the isapi dll
從列表中選擇 關聯("Associations"),輸入想要的副檔名(.php)和 cgi 方式的 exe 或者 isap 方式的 dll 檔案路徑
4. Now select "Content Types" add the same extension ".php" and enter the contenttype:
選擇 內容類型("Content Types")加入相同的副檔名 .php 輸入內容類型
cgi wwwserver/shellcgi
isapi wwwserver/isapi
5. Copy the php.ini-dist to your Systemroot (Directory where you installed windows), rename it to php.ini, and
edit it to fit your needs.
複製 php.ini-dist 到你的系統目錄(安裝 windows 的目錄),改名字為 php.ini,同時編輯 php.ini 為你需要的配置
6. Edit the php.ini to fit your needs. // 此句重複:紫竹注釋
------------------------------------------------------------------------------------------
Xitami:
1. Copy the php.ini-dist to your Systemroot (Directory where you installed windows), rename it to php.ini, and
edit it to fit your needs.
複製 php.ini-dist 到你的系統目錄(安裝 windows 的目錄),改名字為 php.ini,同時編輯 php.ini 為你需要的配置
2. Make sure the webserver is running, and point your browser to xitamis admin console (usually http://127.0.0.1/admin), and click on Configuration
確認web伺服器在運行,指向你的 xitamis 管理主控台(通常是http://127.0.0.1/admin),點擊配置
3. Now navigate to the Filters, and put the extension which php should parse (i.e. .php) into the field File extensions (.xxx)
轉到過濾器,在副檔名域裡加入你想要解析的副檔名(如 .php)
4. In Filter command or script put the path and name of your php executable i.e. c:phpphp.exe
在過濾器命令或指令碼處寫入 php 執行檔案路徑名(如c:phpphp.exe)
5. Press the 'Save' icon
儲存
IIS 4.0+ (isapi):
1. Copy the php.ini-dist to your systemroot (the directory where you installed windows), rename it to php.ini, and
edit it to fit your needs
複製 php.ini-dist 到你的系統目錄(安裝 windows 的目錄),改名字為 php.ini,同時編輯 php.ini 為你需要的配置
2. Start the Microsoft Management Console or the Internet Services Manager, located in your Control Panel
運行控制面版裡面的 控制台管理或IIS服務管理程式,
3. Click on your webserver, and select properties
選擇 網頁伺服器,選擇屬性
4. If you don't want to perform HTTP Authentication using PHP, you can (and should) skip this step. Under ISAPI Filters,
add a new ISAPI filter. Use PHP as the filter name, and supply a path to the php4isapi.dll
如果你不想執行使用PHP的 HTTP 證明,你可以跳過這一步。在 ISAPI 過濾器下面增加一個新的ISAPI過濾器。