[PHP] php.iniの設定値を取得するini_getを便利に使う方法

2019/09/06

PHP テクノロジー プログラミング

t f B! P L
好きな中華料理は「酢豚」のユゲタです。 パイナップルが嫌いとか言ってる奴と話すのが本当にうざく感じるようになってきた中年オヤジですが、なんとあれだけ注意していたのに、またまたまたまた、やっちまいました・・・!!! え?何をやっちまったのかって? それは、サーバーにファイルアップロードするシステムで、phpのupload_max_filesizeを変更し忘れて、2日ぐらい、シスログとにらめっこしてしまったというエンジニアのよくやる凡ミスですよ。 新しいサーバーにシステム構築した時に、必ずといっていいほどやってしまうソレです。 でも、もうそういう凡ミスとはおさらばする仕組みを思いつきました。 デフォルトセットしてあるphp.iniもini-setで書き換えられるものと書き換えられないものがあるので、視覚的にini_getで表示するようにして、設定値を目で見て確認しようという、極めてハイテク且つ、間違いのないシステムです。

ファイルアップロードにおける視覚表示

次のソースコードをサーバーに設置しましょう。 <?php echo "<h1>Max-Size</h1>"; echo "<pre>"; echo "memory_limit : " . ini_get("memory_limit") .PHP_EOL; echo "post_max_size : " . ini_get("post_max_size") .PHP_EOL; echo "upload_max_filesize : " . ini_get("upload_max_filesize") .PHP_EOL; echo "</pre>"; このファイルにアクセスすると・・・ これは、開発マシンのdockerの設定値が表示されていますが、ファイルアップロードにおいて、この3つの値がポイントになります。 同じにしておくことで問題はほぼほぼ無くなるのですが、とにかく「upload_max_filesize」の値がphpのデフォルトでは"2M"になっているので、スマートフォンで撮影した写真は大体が3MB~4MB、このトラップに毎回引っかかってしまうわけですよ。 必ず、このページを見れば良いことにすればいいし、それ以外の設定値を表示して、確認すればいいし、なんなら、設定値のバリデーションチェックを行うif分を書き込んでしまってもいいですね。

他にも確認したい項目

<?php echo "<h1>ini-check</h1>"; $keys = array( "default_charset", "set_time_limit", "session.gc_maxlifetime", "session.gc_probability", "session.gc_divisor", "session.use_only_cookies" ); echo "<pre>"; foreach($keys as $key){ echo $key." : " . ini_get($key) .PHP_EOL; } echo "</pre>"; こんな感じでチェックしたい項目を配列でセットしてみても便利かもしれない・・・ でも、実は・・・ <?php echo "<h1>ini_get_all</h1>"; echo "<pre>"; print_r(ini_get_all()); echo "</pre>"; こうすると、すべての設定値が表示されてしまう・・・ ini_get_all Array ( [allow_url_fopen] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [allow_url_include] => Array ( [global_value] => [local_value] => [access] => 4 ) [arg_separator.input] => Array ( [global_value] => & [local_value] => & [access] => 6 ) [arg_separator.output] => Array ( [global_value] => & [local_value] => & [access] => 7 ) [assert.active] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [assert.bail] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [assert.callback] => Array ( [global_value] => [local_value] => [access] => 7 ) [assert.exception] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [assert.quiet_eval] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [assert.warning] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [auto_append_file] => Array ( [global_value] => [local_value] => [access] => 6 ) [auto_detect_line_endings] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [auto_globals_jit] => Array ( [global_value] => 1 [local_value] => 1 [access] => 6 ) [auto_prepend_file] => Array ( [global_value] => [local_value] => [access] => 6 ) [browscap] => Array ( [global_value] => [local_value] => [access] => 4 ) [cgi.discard_path] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [cgi.fix_pathinfo] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [cgi.force_redirect] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [cgi.nph] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [cgi.redirect_status_env] => Array ( [global_value] => [local_value] => [access] => 4 ) [cgi.rfc2616_headers] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [cli.pager] => Array ( [global_value] => [local_value] => [access] => 7 ) [cli.prompt] => Array ( [global_value] => \b \> [local_value] => \b \> [access] => 7 ) [curl.cainfo] => Array ( [global_value] => [local_value] => [access] => 4 ) [date.default_latitude] => Array ( [global_value] => 31.7667 [local_value] => 31.7667 [access] => 7 ) [date.default_longitude] => Array ( [global_value] => 35.2333 [local_value] => 35.2333 [access] => 7 ) [date.sunrise_zenith] => Array ( [global_value] => 90.583333 [local_value] => 90.583333 [access] => 7 ) [date.sunset_zenith] => Array ( [global_value] => 90.583333 [local_value] => 90.583333 [access] => 7 ) [date.timezone] => Array ( [global_value] => Asia/Tokyo [local_value] => Asia/Tokyo [access] => 7 ) [default_charset] => Array ( [global_value] => UTF-8 [local_value] => UTF-8 [access] => 7 ) [default_mimetype] => Array ( [global_value] => text/html [local_value] => text/html [access] => 7 ) [default_socket_timeout] => Array ( [global_value] => 5 [local_value] => 5 [access] => 7 ) [disable_classes] => Array ( [global_value] => [local_value] => [access] => 4 ) [disable_functions] => Array ( [global_value] => pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, [local_value] => pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, [access] => 4 ) [display_errors] => Array ( [global_value] => [local_value] => [access] => 7 ) [display_startup_errors] => Array ( [global_value] => [local_value] => [access] => 7 ) [doc_root] => Array ( [global_value] => [local_value] => [access] => 4 ) [docref_ext] => Array ( [global_value] => [local_value] => [access] => 7 ) [docref_root] => Array ( [global_value] => [local_value] => [access] => 7 ) [enable_dl] => Array ( [global_value] => [local_value] => [access] => 4 ) [enable_post_data_reading] => Array ( [global_value] => 1 [local_value] => 1 [access] => 6 ) [error_append_string] => Array ( [global_value] => [local_value] => [access] => 7 ) [error_log] => Array ( [global_value] => [local_value] => [access] => 7 ) [error_prepend_string] => Array ( [global_value] => [local_value] => [access] => 7 ) [error_reporting] => Array ( [global_value] => 22527 [local_value] => 22527 [access] => 7 ) [exif.decode_jis_intel] => Array ( [global_value] => JIS [local_value] => JIS [access] => 7 ) [exif.decode_jis_motorola] => Array ( [global_value] => JIS [local_value] => JIS [access] => 7 ) [exif.decode_unicode_intel] => Array ( [global_value] => UCS-2LE [local_value] => UCS-2LE [access] => 7 ) [exif.decode_unicode_motorola] => Array ( [global_value] => UCS-2BE [local_value] => UCS-2BE [access] => 7 ) [exif.encode_jis] => Array ( [global_value] => [local_value] => [access] => 7 ) [exif.encode_unicode] => Array ( [global_value] => ISO-8859-15 [local_value] => ISO-8859-15 [access] => 7 ) [exit_on_timeout] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [expose_php] => Array ( [global_value] => [local_value] => [access] => 4 ) [extension_dir] => Array ( [global_value] => /usr/lib/php/20151012 [local_value] => /usr/lib/php/20151012 [access] => 4 ) [fastcgi.error_header] => Array ( [global_value] => [local_value] => [access] => 4 ) [fastcgi.logging] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [file_uploads] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [filter.default] => Array ( [global_value] => unsafe_raw [local_value] => unsafe_raw [access] => 6 ) [filter.default_flags] => Array ( [global_value] => [local_value] => [access] => 6 ) [fpm.config] => Array ( [global_value] => [local_value] => [access] => 4 ) [from] => Array ( [global_value] => [local_value] => [access] => 7 ) [gd.jpeg_ignore_warning] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [highlight.comment] => Array ( [global_value] => #FF8000 [local_value] => #FF8000 [access] => 7 ) [highlight.default] => Array ( [global_value] => #0000BB [local_value] => #0000BB [access] => 7 ) [highlight.html] => Array ( [global_value] => #000000 [local_value] => #000000 [access] => 7 ) [highlight.keyword] => Array ( [global_value] => #007700 [local_value] => #007700 [access] => 7 ) [highlight.string] => Array ( [global_value] => #DD0000 [local_value] => #DD0000 [access] => 7 ) [html_errors] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [iconv.input_encoding] => Array ( [global_value] => [local_value] => [access] => 7 ) [iconv.internal_encoding] => Array ( [global_value] => [local_value] => [access] => 7 ) [iconv.output_encoding] => Array ( [global_value] => [local_value] => [access] => 7 ) [ignore_repeated_errors] => Array ( [global_value] => [local_value] => [access] => 7 ) [ignore_repeated_source] => Array ( [global_value] => [local_value] => [access] => 7 ) [ignore_user_abort] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [implicit_flush] => Array ( [global_value] => [local_value] => [access] => 7 ) [include_path] => Array ( [global_value] => .:/usr/share/php [local_value] => .:/usr/share/php [access] => 7 ) [input_encoding] => Array ( [global_value] => [local_value] => [access] => 7 ) [internal_encoding] => Array ( [global_value] => [local_value] => [access] => 7 ) [log_errors] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [log_errors_max_len] => Array ( [global_value] => 1024 [local_value] => 1024 [access] => 7 ) [mail.add_x_header] => Array ( [global_value] => 1 [local_value] => 1 [access] => 6 ) [mail.force_extra_parameters] => Array ( [global_value] => [local_value] => [access] => 6 ) [mail.log] => Array ( [global_value] => [local_value] => [access] => 6 ) [max_execution_time] => Array ( [global_value] => 5 [local_value] => 5 [access] => 7 ) [max_file_uploads] => Array ( [global_value] => 20 [local_value] => 20 [access] => 6 ) [max_input_nesting_level] => Array ( [global_value] => 64 [local_value] => 64 [access] => 6 ) [max_input_time] => Array ( [global_value] => 5 [local_value] => 5 [access] => 6 ) [max_input_vars] => Array ( [global_value] => 1000 [local_value] => 1000 [access] => 6 ) [mbstring.detect_order] => Array ( [global_value] => auto [local_value] => auto [access] => 7 ) [mbstring.encoding_translation] => Array ( [global_value] => 1 [local_value] => 1 [access] => 6 ) [mbstring.func_overload] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [mbstring.http_input] => Array ( [global_value] => auto [local_value] => auto [access] => 7 ) [mbstring.http_output] => Array ( [global_value] => UTF-8 [local_value] => UTF-8 [access] => 7 ) [mbstring.http_output_conv_mimetypes] => Array ( [global_value] => ^(text/|application/xhtml\+xml) [local_value] => ^(text/|application/xhtml\+xml) [access] => 7 ) [mbstring.internal_encoding] => Array ( [global_value] => UTF-8 [local_value] => UTF-8 [access] => 7 ) [mbstring.language] => Array ( [global_value] => Japanese [local_value] => Japanese [access] => 7 ) [mbstring.strict_detection] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [mbstring.substitute_character] => Array ( [global_value] => [local_value] => [access] => 7 ) [memory_limit] => Array ( [global_value] => 128M [local_value] => 128M [access] => 7 ) [mysqli.allow_local_infile] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [mysqli.allow_persistent] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [mysqli.default_host] => Array ( [global_value] => [local_value] => [access] => 7 ) [mysqli.default_port] => Array ( [global_value] => 3306 [local_value] => 3306 [access] => 7 ) [mysqli.default_pw] => Array ( [global_value] => [local_value] => [access] => 7 ) [mysqli.default_socket] => Array ( [global_value] => [local_value] => [access] => 7 ) [mysqli.default_user] => Array ( [global_value] => [local_value] => [access] => 7 ) [mysqli.max_links] => Array ( [global_value] => -1 [local_value] => -1 [access] => 4 ) [mysqli.max_persistent] => Array ( [global_value] => -1 [local_value] => -1 [access] => 4 ) [mysqli.reconnect] => Array ( [global_value] => [local_value] => [access] => 4 ) [mysqli.rollback_on_cached_plink] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [mysqlnd.collect_memory_statistics] => Array ( [global_value] => [local_value] => [access] => 4 ) [mysqlnd.collect_statistics] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [mysqlnd.debug] => Array ( [global_value] => [local_value] => [access] => 4 ) [mysqlnd.fetch_data_copy] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [mysqlnd.log_mask] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [mysqlnd.mempool_default_size] => Array ( [global_value] => 16000 [local_value] => 16000 [access] => 7 ) [mysqlnd.net_cmd_buffer_size] => Array ( [global_value] => 4096 [local_value] => 4096 [access] => 7 ) [mysqlnd.net_read_buffer_size] => Array ( [global_value] => 32768 [local_value] => 32768 [access] => 7 ) [mysqlnd.net_read_timeout] => Array ( [global_value] => 31536000 [local_value] => 31536000 [access] => 4 ) [mysqlnd.sha256_server_public_key] => Array ( [global_value] => [local_value] => [access] => 2 ) [mysqlnd.trace_alloc] => Array ( [global_value] => [local_value] => [access] => 4 ) [opcache.blacklist_filename] => Array ( [global_value] => [local_value] => [access] => 4 ) [opcache.consistency_checks] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [opcache.dups_fix] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [opcache.enable] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [opcache.enable_cli] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.enable_file_override] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.error_log] => Array ( [global_value] => [local_value] => [access] => 4 ) [opcache.fast_shutdown] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.file_cache] => Array ( [global_value] => [local_value] => [access] => 4 ) [opcache.file_cache_consistency_checks] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [opcache.file_cache_only] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.file_update_protection] => Array ( [global_value] => 2 [local_value] => 2 [access] => 7 ) [opcache.force_restart_timeout] => Array ( [global_value] => 180 [local_value] => 180 [access] => 4 ) [opcache.huge_code_pages] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.inherited_hack] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [opcache.interned_strings_buffer] => Array ( [global_value] => 4 [local_value] => 4 [access] => 4 ) [opcache.lockfile_path] => Array ( [global_value] => /tmp [local_value] => /tmp [access] => 4 ) [opcache.log_verbosity_level] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [opcache.max_accelerated_files] => Array ( [global_value] => 2000 [local_value] => 2000 [access] => 4 ) [opcache.max_file_size] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.max_wasted_percentage] => Array ( [global_value] => 5 [local_value] => 5 [access] => 4 ) [opcache.memory_consumption] => Array ( [global_value] => 64 [local_value] => 64 [access] => 4 ) [opcache.optimization_level] => Array ( [global_value] => 0x7FFFBFFF [local_value] => 0x7FFFBFFF [access] => 4 ) [opcache.preferred_memory_model] => Array ( [global_value] => [local_value] => [access] => 4 ) [opcache.protect_memory] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.restrict_api] => Array ( [global_value] => [local_value] => [access] => 4 ) [opcache.revalidate_freq] => Array ( [global_value] => 2 [local_value] => 2 [access] => 7 ) [opcache.revalidate_path] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [opcache.save_comments] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [opcache.use_cwd] => Array ( [global_value] => 1 [local_value] => 1 [access] => 4 ) [opcache.validate_permission] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.validate_root] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [opcache.validate_timestamps] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [open_basedir] => Array ( [global_value] => [local_value] => [access] => 7 ) [openssl.cafile] => Array ( [global_value] => [local_value] => [access] => 2 ) [openssl.capath] => Array ( [global_value] => [local_value] => [access] => 2 ) [output_buffering] => Array ( [global_value] => 4096 [local_value] => 4096 [access] => 6 ) [output_encoding] => Array ( [global_value] => [local_value] => [access] => 7 ) [output_handler] => Array ( [global_value] => [local_value] => [access] => 6 ) [pcre.backtrack_limit] => Array ( [global_value] => 1000000 [local_value] => 1000000 [access] => 7 ) [pcre.jit] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [pcre.recursion_limit] => Array ( [global_value] => 100000 [local_value] => 100000 [access] => 7 ) [pdo_mysql.default_socket] => Array ( [global_value] => /var/run/mysqld/mysqld.sock [local_value] => /var/run/mysqld/mysqld.sock [access] => 4 ) [phar.cache_list] => Array ( [global_value] => [local_value] => [access] => 4 ) [phar.readonly] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [phar.require_hash] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [post_max_size] => Array ( [global_value] => 20M [local_value] => 20M [access] => 6 ) [precision] => Array ( [global_value] => 14 [local_value] => 14 [access] => 7 ) [realpath_cache_size] => Array ( [global_value] => 4096K [local_value] => 4096K [access] => 4 ) [realpath_cache_ttl] => Array ( [global_value] => 120 [local_value] => 120 [access] => 4 ) [register_argc_argv] => Array ( [global_value] => [local_value] => [access] => 6 ) [report_memleaks] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [report_zend_debug] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [request_order] => Array ( [global_value] => GP [local_value] => GP [access] => 6 ) [sendmail_from] => Array ( [global_value] => [local_value] => [access] => 7 ) [sendmail_path] => Array ( [global_value] => sendmail -t -i [local_value] => sendmail -t -i [access] => 4 ) [serialize_precision] => Array ( [global_value] => 17 [local_value] => 17 [access] => 7 ) [session.auto_start] => Array ( [global_value] => 0 [local_value] => 0 [access] => 2 ) [session.cache_expire] => Array ( [global_value] => 180 [local_value] => 180 [access] => 7 ) [session.cache_limiter] => Array ( [global_value] => nocache [local_value] => nocache [access] => 7 ) [session.cookie_domain] => Array ( [global_value] => [local_value] => [access] => 7 ) [session.cookie_httponly] => Array ( [global_value] => [local_value] => [access] => 7 ) [session.cookie_lifetime] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [session.cookie_path] => Array ( [global_value] => / [local_value] => / [access] => 7 ) [session.cookie_secure] => Array ( [global_value] => [local_value] => [access] => 7 ) [session.entropy_file] => Array ( [global_value] => /dev/urandom [local_value] => /dev/urandom [access] => 7 ) [session.entropy_length] => Array ( [global_value] => 32 [local_value] => 32 [access] => 7 ) [session.gc_divisor] => Array ( [global_value] => 1000 [local_value] => 1000 [access] => 7 ) [session.gc_maxlifetime] => Array ( [global_value] => 1440 [local_value] => 1440 [access] => 7 ) [session.gc_probability] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [session.hash_bits_per_character] => Array ( [global_value] => 5 [local_value] => 5 [access] => 7 ) [session.hash_function] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [session.lazy_write] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [session.name] => Array ( [global_value] => PHPSESSID [local_value] => PHPSESSID [access] => 7 ) [session.referer_check] => Array ( [global_value] => [local_value] => [access] => 7 ) [session.save_handler] => Array ( [global_value] => files [local_value] => files [access] => 7 ) [session.save_path] => Array ( [global_value] => /var/lib/php/sessions [local_value] => /var/lib/php/sessions [access] => 7 ) [session.serialize_handler] => Array ( [global_value] => php [local_value] => php [access] => 7 ) [session.upload_progress.cleanup] => Array ( [global_value] => 1 [local_value] => 1 [access] => 2 ) [session.upload_progress.enabled] => Array ( [global_value] => 1 [local_value] => 1 [access] => 2 ) [session.upload_progress.freq] => Array ( [global_value] => 1% [local_value] => 1% [access] => 2 ) [session.upload_progress.min_freq] => Array ( [global_value] => 1 [local_value] => 1 [access] => 2 ) [session.upload_progress.name] => Array ( [global_value] => PHP_SESSION_UPLOAD_PROGRESS [local_value] => PHP_SESSION_UPLOAD_PROGRESS [access] => 2 ) [session.upload_progress.prefix] => Array ( [global_value] => upload_progress_ [local_value] => upload_progress_ [access] => 2 ) [session.use_cookies] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [session.use_only_cookies] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [session.use_strict_mode] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [session.use_trans_sid] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [short_open_tag] => Array ( [global_value] => [local_value] => [access] => 6 ) [SMTP] => Array ( [global_value] => localhost [local_value] => localhost [access] => 7 ) [smtp_port] => Array ( [global_value] => 25 [local_value] => 25 [access] => 7 ) [sql.safe_mode] => Array ( [global_value] => [local_value] => [access] => 4 ) [sqlite3.extension_dir] => Array ( [global_value] => [local_value] => [access] => 4 ) [sys_temp_dir] => Array ( [global_value] => [local_value] => [access] => 4 ) [track_errors] => Array ( [global_value] => [local_value] => [access] => 7 ) [unserialize_callback_func] => Array ( [global_value] => [local_value] => [access] => 7 ) [upload_max_filesize] => Array ( [global_value] => 20M [local_value] => 20M [access] => 6 ) [upload_tmp_dir] => Array ( [global_value] => [local_value] => [access] => 4 ) [url_rewriter.tags] => Array ( [global_value] => a=href,area=href,frame=src,input=src,form=fakeentry [local_value] => a=href,area=href,frame=src,input=src,form=fakeentry [access] => 7 ) [user_agent] => Array ( [global_value] => [local_value] => [access] => 7 ) [user_dir] => Array ( [global_value] => [local_value] => [access] => 4 ) [user_ini.cache_ttl] => Array ( [global_value] => 300 [local_value] => 300 [access] => 4 ) [user_ini.filename] => Array ( [global_value] => .user.ini [local_value] => .user.ini [access] => 4 ) [variables_order] => Array ( [global_value] => GPCS [local_value] => GPCS [access] => 6 ) [xmlrpc_error_number] => Array ( [global_value] => 0 [local_value] => 0 [access] => 7 ) [xmlrpc_errors] => Array ( [global_value] => 0 [local_value] => 0 [access] => 4 ) [zend.assertions] => Array ( [global_value] => -1 [local_value] => -1 [access] => 7 ) [zend.detect_unicode] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [zend.enable_gc] => Array ( [global_value] => 1 [local_value] => 1 [access] => 7 ) [zend.multibyte] => Array ( [global_value] => 0 [local_value] => 0 [access] => 2 ) [zend.script_encoding] => Array ( [global_value] => [local_value] => [access] => 7 ) [zlib.output_compression] => Array ( [global_value] => [local_value] => [access] => 7 ) [zlib.output_compression_level] => Array ( [global_value] => -1 [local_value] => -1 [access] => 7 ) [zlib.output_handler] => Array ( [global_value] => [local_value] => [access] => 7 ) ) あまりにも量が多すぎてやはりチェックしたいものだけの方がいいね。 <?php phpinfo(); そもそも、このファイルを設置するだけでもいいのかもしれないけどね・・・ ここから便利な方法を模索していくようにしよう!!!

人気の投稿

このブログを検索

ごあいさつ

このWebサイトは、独自思考で我が道を行くユゲタの少し尖った思考のTechブログです。 毎日興味がどんどん切り替わるので、テーマはマルチになっています。 もしかしたらアイデアに困っている人の助けになるかもしれません。

ブログ アーカイブ