查看PHP配置选项(configuration options)有几种方法:
1. 在php.ini 中查看。
2. phpinfo() 函数。
3. ini_get_all() 函数。
4. get_cfg_var() 函数。
5. ini_get() 函数。

下面配置表是使用 ini_get_all() 函数得到的:
global value:值是从 php.ini 中得到的。
local value: 值是从 .htaccess 或者 ini_set() 中得到的。
access:访问级别

No configure option global value local value access
1 allow_call_time_pass_reference 6
2 allow_url_fopen 1 1 4
3 allow_url_include 0 0 4
4 always_populate_raw_post_data 0 0 6
5 arg_separator.input & & 6
6 arg_separator.output & & 7
7 asp_tags 6
8 assert.active 1 1 7
9 assert.bail 0 0 7
10 assert.callback 7
11 assert.quiet_eval 0 0 7
12 assert.warning 1 1 7
13 auto_append_file 6
14 auto_detect_line_endings 0 0 7
15 auto_globals_jit 1 1 6
16 auto_prepend_file 6
17 bcmath.scale 0 0 7
18 browscap 4
19 com.allow_dcom 0 0 4
20 com.autoregister_casesensitive 1 1 7
21 com.autoregister_typelib 0 0 7
22 com.autoregister_verbose 0 0 7
23 com.code_page 7
24 com.typelib_file 4
25 date.default_latitude 31.7667 31.7667 7
26 date.default_longitude 35.2333 35.2333 7
27 date.sunrise_zenith 90.583333 90.583333 7
28 date.sunset_zenith 90.583333 90.583333 7
29 date.timezone 7
30 default_charset 7
31 default_mimetype text/html text/html 7
32 default_socket_timeout 60 60 7
33 define_syslog_variables 7
34 disable_classes 4
35 disable_functions 4
36 display_errors 1 1 7
37 display_startup_errors 7
38 doc_root e:\webroot\ e:\webroot\ 4
39 docref_ext 7
40 docref_root 7
41 enable_dl 1 1 4
42 engine 1 1 7
43 error_append_string 7
44 error_log d:\errorlog_php.txt d:\errorlog_php.txt 7
45 error_prepend_string 7
46 error_reporting 6143 6143 7
47 expose_php 1 1 4
48 extension_dir .\ext .\ext 4
49 file_uploads 1 1 4
50 filter.default unsafe_raw unsafe_raw 6
51 filter.default_flags 6
52 gd.jpeg_ignore_warning 0 0 7
53 highlight.bg #FFFFFF #FFFFFF 7
54 highlight.comment #FF8000 #FF8000 7
55 highlight.default #0000BB #0000BB 7
56 highlight.html #000000 #000000 7
57 highlight.keyword #007700 #007700 7
58 highlight.string #DD0000 #DD0000 7
59 html_errors 1 1 7
60 iconv.input_encoding ISO-8859-1 ISO-8859-1 7
61 iconv.internal_encoding ISO-8859-1 ISO-8859-1 7
62 iconv.output_encoding ISO-8859-1 ISO-8859-1 7
63 ignore_repeated_errors 7
64 ignore_repeated_source 7
65 ignore_user_abort 0 0 7
66 implicit_flush 7
67 include_path .;C:\php5\pear .;C:\php5\pear 7
68 last_modified 0 0 7
69 log_errors 1 1 7
70 log_errors_max_len 1024 1024 7
71 magic_quotes_gpc 1 1 6
72 magic_quotes_runtime 7
73 magic_quotes_sybase 7
74 mail.force_extra_parameters 6
75 max_execution_time 30000 30000 7
76 max_input_nesting_level 64 64 6
77 max_input_time 6000 6000 6
78 mbstring.detect_order 7
79 mbstring.encoding_translation 0 0 6
80 mbstring.func_overload 0 0 6
81 mbstring.http_input pass pass 7
82 mbstring.http_output pass pass 7
83 mbstring.internal_encoding 7
84 mbstring.language neutral neutral 6
85 mbstring.strict_detection 0 0 7
86 mbstring.substitute_character 7
87 memory_limit 128M 128M 7
88 mysql.allow_persistent 1 1 4
89 mysql.connect_timeout 60 60 7
90 mysql.default_host 7
91 mysql.default_password 7
92 mysql.default_port 7
93 mysql.default_socket 7
94 mysql.default_user 7
95 mysql.max_links -1 -1 4
96 mysql.max_persistent -1 -1 4
97 mysql.trace_mode 1 1 7
98 mysqli.default_host 7
99 mysqli.default_port 3306 3306 7
100 mysqli.default_pw 7
101 mysqli.default_socket 7
102 mysqli.default_user 7
103 mysqli.max_links -1 -1 4
104 mysqli.reconnect 4
105 odbc.allow_persistent 1 1 4
106 odbc.check_persistent 1 1 4
107 odbc.default_cursortype 3 3 7
108 odbc.default_db 7
109 odbc.default_pw 7
110 odbc.default_user 7
111 odbc.defaultbinmode 1 1 7
112 odbc.defaultlrl 4096 4096 7
113 odbc.max_links -1 -1 4
114 odbc.max_persistent -1 -1 4
115 open_basedir 4
116 output_buffering 4096 4096 6
117 output_handler 6
118 pcre.backtrack_limit 100000 100000 7
119 pcre.recursion_limit 100000 100000 7
120 post_max_size 8M 8M 6
121 precision 14 14 7
122 realpath_cache_size 16K 16K 4
123 realpath_cache_ttl 120 120 4
124 register_argc_argv 6
125 register_globals 6
126 register_long_arrays 6
127 report_memleaks 1 1 7
128 report_zend_debug 1 1 7
129 safe_mode 4
130 safe_mode_allowed_env_vars PHP_ PHP_ 4
131 safe_mode_exec_dir 4
132 safe_mode_gid 4
133 safe_mode_include_dir 4
134 safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH 4
135 sendmail_from 7
136 sendmail_path 4
137 serialize_precision 100 100 7
138 session.auto_start 0 0 7
139 session.bug_compat_42 0 0 7
140 session.bug_compat_warn 1 1 7
141 session.cache_expire 180 180 7
142 session.cache_limiter nocache nocache 7
143 session.cookie_domain 7
144 session.cookie_httponly 7
145 session.cookie_lifetime 0 0 7
146 session.cookie_path / / 7
147 session.cookie_secure 7
148 session.entropy_file 7
149 session.entropy_length 0 0 7
150 session.gc_divisor 1000 1000 7
151 session.gc_maxlifetime 1440 1440 7
152 session.gc_probability 1 1 7
153 session.hash_bits_per_character 5 5 7
154 session.hash_function 0 0 7
155 session.name PHPSESSID PHPSESSID 7
156 session.referer_check 7
157 session.save_handler files files 7
158 session.save_path 7
159 session.serialize_handler php php 7
160 session.use_cookies 1 1 7
161 session.use_only_cookies 0 0 7
162 session.use_trans_sid 0 0 7
163 short_open_tag 6
164 SMTP localhost localhost 7
165 smtp_port 25 25 7
166 sql.safe_mode 4
167 track_errors 7
168 unserialize_callback_func 7
169 upload_max_filesize 2M 2M 6
170 upload_tmp_dir d:/temp d:/temp 4
171 url_rewriter.tags 7
172 user_agent 7
173 user_dir 4
174 variables_order GPCS GPCS 6
175 xbithack 0 0 7
176 xmlrpc_error_number 0 0 7
177 xmlrpc_errors 0 0 4
178 y2k_compliance 1 1 7
179 zend.ze1_compatibility_mode 7
180 zlib.output_compression 7
181 zlib.output_compression_level -1 -1 7
182 zlib.output_handler 7