php選項和設定資訊

伊谢尔伦
發布: 2016-11-22 09:50:05
原創
962 人瀏覽過

這些函數允許你獲得許多關於PHP本身的參數,例如:運行時的配置,被載入的擴展,版本等。 你也會找到設定你的運行中的PHP的選項的函數。可能最好用的 PHP- 函數 phpinfo() 可以在這裡找到。

選項與資訊函數:

assert_options — 設定/取得斷言的各種標誌

assert — 檢查一個斷言是否為FALSE

cli_get_process_title  — 運行時載入一個PHP 擴充

extension_loaded — 檢查一個擴充功能是否已載入

gc_collect_cycles — 強制收集所有現存的垃圾循環週期

gc_disableabledable 收集器— 傳回循環引用計數器的狀態

get_cfg_var — 取得PHP 設定選項的值

get_current_user — 取得目前PHP 腳本擁有者名稱

get_defined_constants get_extension_funcs — 傳回模組函式名稱的陣列

get_include_path — 取得目前的include_path 設定選項

get_included_files — 傳回被includesload 或require 檔案名稱的arrayget🜎 get_magic_quotes_gpc — 取得當前magic_quotes_gpc 的設定選項設定

get_magic_quotes_runtime — 取得目前magic_quotes_runtime 設定選項的啟動狀態

get_required_files — 別名尺寸的時間

getmygid — 取得目前PHP腳本擁有者的GID

getmyinode — 取得目前腳本的索引節點(inode)

getmypid — 取得PHP 程序的ID

getmy— 取得PHP 腳本擁有者的指令碼

getrusage — 取得目前資源使用狀況

ini_alter — 別名ini_set

ini_get_all — 取得所有設定選項

ini_get /set.選項設定值

magic_quotes_runtime — 別名set_magic_quotes_runtime

main — 虛擬的main

memory_get_peak_usage — 傳回分配給PHP 記憶體的峰值_loaded_file — 取得已載入的php.ini 檔案的路徑

php_ini_scanned_files — 回傳從額外ini 目錄裡解析的.ini 檔案清單

php_logo_guid — 取得logo 的guid

php_sapi_name_PHn webweb 鍵與PH 之間的介面名稱資訊

phpcredits — 列印PHP 貢獻者名單

phpinfo — 輸出關於PHP 配置的資訊

phpversion — 取得目前的PHP版本

putenv 

set_include_path — 設定include_path 設定選項

set_magic_quotes_runtime — 設定目前magic_quotes_runtime 設定選項的啟動狀態

set_time_limit — 設定腳本最大執行時間的啟動狀態

set_time_limit — 對比兩個「PHP 規範化」的版本數字字串

zend_logo_guid — 取得Zend guid

zend_thread_id — 傳回目前執行緒的唯一識別符

zend_version — 取得目前Zend 引擎的版本

zend_version — 取得目前Zend 引擎的版本

相關標籤:
來源:php.cn
本網站聲明
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!