"http://"為轉(zhuǎn)義
配置指令作用域:
- PHP_INI_PERDIR,可以在php.ini惯豆、httpd.conf或.htaccess文件中修改害淤。
- PHP_INI_SYSTEM挖息,可以在php.ini和httpd.conf中修改据块。
- PHP_INI_USER码邻,可以在用戶腳本中修改。
- PHP_INI_ALL另假,可以在任何地方中修改像屋。
名稱 | 可用 | 作用域 | 默認 | 說明 |
---|---|---|---|---|
[語言選項] | ||||
engine | On/Off | PHP_INI_ALL | On | 關(guān)閉Off則不能使用PHP |
short_open_tag | On/Off | PHP_INI_ALL | Off | 開啟短標簽<?echo "php";?> |
asp_tags | On/Off | PHP_INI_ALL | Off | ASP風格定界符<%echo "php";%> |
precision | integer | PHP_INI_ALL | 14 | 浮點類型顯示有效個數(shù) |
output_buffering | On/Off/integer | PHP_INI_SYSTEM | 4096 | 開啟可以請求發(fā)送后對頭部進行修改,數(shù)字代表緩沖大小 |
output_handler | string | PHP_INI_ALL | NULL | 在返回給用戶之前先傳遞到一個函數(shù)边篮,列如己莺,希望在返回用戶前壓縮數(shù)據(jù)則可以賦值:output_handler="ob_gzhandler(壓縮處理函數(shù))"因苹,切記不能同時開啟zlib.output_compression |
zlib.output_compression | On/Off/integer | PHP_INI_SYSTEM | Off | 自動輸出壓縮,數(shù)值代表壓縮緩沖區(qū)域大小 |
zlib.output_handler | string | PHP_INI_SYSTEM | NULL | 如果zlib庫不可用篇恒,將制定一個特定的壓縮庫 |
implicit_flush | On/Off | PHP_INI_SYSTEM | Off | 每次調(diào)用echo,print時凶杖,自動清除刷新其內(nèi)容的緩沖區(qū)胁艰,當進行比較耗時的運算時,可以向用戶更新狀態(tài)智蝠,而不是等待服務(wù)器完成后輸出 |
serialize_precision | intgeter | PHP_INI_ALL | 100 | 逆行串化時不會丟失單雙精度浮點小數(shù)的精度 |
[資源限制] | ||||
max_execution_time | integer | PHP_INI_ALL | 30 | 腳本最大執(zhí)行時間腾么,單位秒。如果為0杈湾,則無上限解虱。exec()與system()調(diào)用 |
max_input_time | integer | PHP_INI_ALL | 60 | 解析請求數(shù)據(jù)時間,比如上傳 |
memory_limit | integerM | PHP_INI_ALL | 128M | 最大內(nèi)存數(shù) |
[數(shù)據(jù)處理] | ||||
arg_separator.output | string | PHP_INI_ALL | &//amp; | PHP能自動生成URL漆撞,并且用&做風分隔殴泰,如果想改可以修改這個配置 |
arg_separator.input | string | PHP_INI_ALL | ;& | &是POST或GET方法分隔變量的標準字符,可以通過修改 |
post_max_size | integerM | PHP_INI_SYSTEM | 8M | POST傳遞數(shù)據(jù)大小上限 |
auto_prepend_file | string | PHP_INI_SYSTEM | NULL | 在腳本執(zhí)行前創(chuàng)建頁眉或引入代碼庫浮驳,可以預(yù)先設(shè)置路徑悍汛,函數(shù)include與require |
auto_append_file | string | PHP_INI_SYSTEM | NULL | 在腳本執(zhí)行后創(chuàng)建頁腳,可以預(yù)先設(shè)置路徑至会,函數(shù)include與require |
default_mimetype | string | PHP_INI_ALL | text/html | MIME類型為劃分因特網(wǎng)文件類型提供了一種標準离咐。最常見的是text/html。 |
default_charset | string | PHP_INI_ALL | UTF-8 | 修改Content-Type首部中輸出字符編碼方式奉件。 |
[目錄路徑] | ||||
include_path | string | PHP_INI_ALL | NULL | 為include宵蛀、require、fopen_with_path等函數(shù)配置基本路徑县貌,可以指定多個目錄术陶,用分號隔開。 |
doc_root | string | PHP_INI_SYSTEM | NULL | 所有PHP腳本的默認位置煤痕,非空啟用瞳别。 |
user_dir | string | PHP_INI_SYSTEM | NULL | 預(yù)先設(shè)點絕對路徑的文件前綴,比如/user杭攻,輸入路徑前會自動加上/user |
extension_dir | string | PHP_INI_SYSTEM | ./ | 擴展位置祟敛。./表示與PHP執(zhí)行腳本位置相同,沒有則默認為c:\PHP... |
enable_dl | On\Off | PHP_INI_SYSTEM | Off | 允許用戶在運行時加載擴展 |
[fopen包裝器] | ||||
allow_url_include | On\Off | PHP_INI_ALL | On | 始PHP文件將遠程文件看做本地文件兆解,啟用時馆铁,如果遠程服務(wù)器有正確權(quán)限的文件,PHP可以修改訪問 |
from | string | PHP_INI_ALL | NULL | 用于完成FTP請求連接的匿名用戶密碼確定锅睛。 |
user_agent | string | PHP_INI_ALL | NULL | PHP總會隨著所處理的輸出發(fā)送一個首部埠巨,其中包括一個代理屬性历谍。這個可以確定屬性的值。 |
default_socket_timeout | integer | PHP_INI_ALL | 60 | 確定socket的流的超時值辣垒,以秒為單位 |
[動態(tài)擴展] | ||||
extension | string | PHP_INI_ALL | NULL | 指定動態(tài)加載一個特定模塊 |