文字

PHP 选项/信息 函数

Table of Contents

  • assert_options — 设置/获取断言的各种标志
  • assert — 检查一个断言是否为 FALSE
  • cli_get_process_title — Returns the current process title
  • cli_set_process_title — Sets the process title
  • dl — 运行时载入一个 PHP 扩展
  • extension_loaded — 检查一个扩展是否已经加载
  • gc_collect_cycles — 强制收集所有现存的垃圾循环周期
  • gc_disable — 停用循环引用收集器
  • gc_enable — 激活循环引用收集器
  • gc_enabled — 返回循环引用计数器的状态
  • gc_mem_caches — Reclaims memory used by the Zend Engine memory manager
  • get_cfg_var — 获取 PHP 配置选项的值
  • get_current_user — 获取当前 PHP 脚本所有者名称
  • get_defined_constants — 返回所有常量的关联数组,键是常量名,值是常量值
  • get_extension_funcs — 返回模块函数名称的数组
  • get_include_path — 获取当前的 include_path 配置选项
  • get_included_files — 返回被 include 和 require 文件名的 array
  • get_loaded_extensions — 返回所有编译并加载模块名的 array
  • get_magic_quotes_gpc — 获取当前 magic_quotes_gpc 的配置选项设置
  • get_magic_quotes_runtime — 获取当前 magic_quotes_runtime 配置选项的激活状态
  • get_required_files — 别名 get_included_files
  • get_resources — Returns active resources
  • getenv — 获取一个环境变量的值
  • getlastmod — 获取页面最后修改的时间
  • getmygid — 获取当前 PHP 脚本拥有者的 GID
  • getmyinode — 获取当前脚本的索引节点(inode)
  • getmypid — 获取 PHP 进程的 ID
  • getmyuid — 获取 PHP 脚本所有者的 UID
  • getopt — 从命令行参数列表中获取选项
  • getrusage — 获取当前资源使用状况
  • ini_alter — 别名 ini_set
  • ini_get_all — 获取所有配置选项
  • ini_get — 获取一个配置选项的值
  • ini_restore — 恢复配置选项的值
  • ini_set — 为一个配置选项设置值
  • magic_quotes_runtime — 别名 set_magic_quotes_runtime
  • main — 虚拟的main
  • memory_get_peak_usage — 返回分配给 PHP 内存的峰值
  • memory_get_usage — 返回分配给 PHP 的内存量
  • php_ini_loaded_file — 取得已加载的 php.ini 文件的路径
  • php_ini_scanned_files — 返回从额外 ini 目录里解析的 .ini 文件列表
  • php_logo_guid — 获取 logo 的 guid
  • php_sapi_name — 返回 web 服务器和 PHP 之间的接口类型
  • php_uname — 返回运行 PHP 的系统的有关信息
  • phpcredits — 打印 PHP 贡献者名单
  • phpinfo — 输出关于 PHP 配置的信息
  • phpversion — 获取当前的PHP版本
  • putenv — 设置环境变量的值
  • restore_include_path — 还原 include_path 配置选项的值
  • set_include_path — 设置 include_path 配置选项
  • set_magic_quotes_runtime — 设置当前 magic_quotes_runtime 配置选项的激活状态
  • set_time_limit — 设置脚本最大执行时间
  • sys_get_temp_dir — 返回用于临时文件的目录
  • version_compare — 对比两个「PHP 规范化」的版本数字字符串
  • zend_logo_guid — 获取 Zend guid
  • zend_thread_id — 返回当前线程的唯一识别符
  • zend_version — 获取当前 Zend 引擎的版本

用户评论:

[#1] gilthansNOSPAAM at gmailSPAAMBLOCK dot com [2005-03-15 17:04:59]

Note: when magic_quotes_gpc is ON, it will also slash values inside both $_SERVER['QUERY_STRING'] and $_SERVER['SCRIPT_NAME'] (and equivalents) will also be slashed.

[#2] Mark [2004-06-14 17:37:24]

You probably don't want to set "magic_quotes_runtime" because it affects even binary file read/write operations. This is especially problematic if you include someone else's library that depends on binary read/write. If you enable "magic_quotes_runtime", be sure to use set_magic_quotes_runtime() function call to disable it before calling someone else's library that does binary read/write.

上一篇: 下一篇: