↓PHPスクリプトでHello World!!を表示。
Hello world!!!
↓PHPでUSER_AGENTを取得
CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
↓PHPでこのサーバのPHP設定を取得
phpinfo()
System Linux s12.xrea.com 2.4.30 #4 SMP Sun Apr 10 03:41:30 JST 2005 i686
Build Date Aug 22 2006 14:28:20
Configure Command './configure' '--enable-mbstring' '--enable-mbstr-enc-trans' '--enable-mbregex' '--enable-i18n' '--with-xml' '--with-mysql=/usr/local/mysql' '--with-pgsql=/usr/local/pgsql' '--enable-track-vars' '--enable-discard-path' '--enable-memory-limit=yes' '--disable-debug' '--enable-debug=no' '--enable-debugger=yes' '--enable-magic-quotes=yes' '--with-exec-dir=/usr/bin' '--without-system-regex' '--with-dbase=yes' '--enable-bcmath=yes' '--enable-ftp' '--enable-versioning' '--enable-safe-mode' '--enable-sockets' '--disable-posix-threads' '--with-gd' '--enable-gd-native-ttf' '--with-zlib-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local/libpng' '--with-tiff-dir=/usr/local' '--with-freetype-dir=/usr/local' '--enable-exif' '--with-pdflib=/usr/local' '--enable-shared-pdflib' '--enable-xslt' '--with-xslt-sablot' '--with-dom=/usr/local' '--with-dom-xslt=/usr/local' '--with-curl=/usr/local/lib' '--with-openssl=/usr/local/openssl' '--with-mcrypt=/usr/local' '--with-imap=/usr/local' '--with-gettext=/usr/local' '--with-iconv=/usr/local' '--with-config-file-path=/usr/local/apache_shared/conf' '--with-apxs=/usr/local/apache/bin/apxs'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/local/apache_shared/conf/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20050606
Debug Build no
Zend Memory Manager enabled
Thread Safety disabled
Registered PHP Streams php, http, ftp, https, ftps, compress.zlib
This program makes use of the Zend Scripting Language Engine: Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference On On
allow_url_fopen On On
always_populate_raw_post_data Off Off
arg_separator.input & &
arg_separator.output & &
asp_tags Off Off
auto_append_file no value no value
auto_prepend_file no value no value
browscap no value no value
default_charset no value no value
default_mimetype text/html text/html
define_syslog_variables Off Off
disable_classes no value no value
disable_functions no value no value
display_errors On On
display_startup_errors Off Off
doc_root no value no value
docref_ext no value no value
docref_root no value no value
enable_dl On On
error_append_string no value no value
error_log no value no value
error_prepend_string no value no value
error_reporting 2039 2039
expose_php Off Off
extension_dir /usr/local/lib/php/extensions/ /usr/local/lib/php/extensions/
file_uploads On On
gpc_order GPC GPC
highlight.bg #FFFFFF #FFFFFF
highlight.comment #FF8000 #FF8000
highlight.default #0000BB #0000BB
highlight.html #000000 #000000
highlight.keyword #007700 #007700
highlight.string #DD0000 #DD0000
html_errors On On
ignore_repeated_errors Off Off
ignore_repeated_source On On
ignore_user_abort Off Off
implicit_flush Off Off
include_path .:/usr/local/lib/php .:/usr/local/lib/php
log_errors Off Off
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
max_execution_time 300 300
max_input_time 600 600
memory_limit 90M 90M
open_basedir .:/virtual:/tmp:/usr/local/lib/php:/usr/local/php/bin .:/virtual:/tmp:/usr/local/lib/php:/usr/local/php/bin
output_buffering 4096 4096
output_handler no value no value
post_max_size 32M 32M
precision 14 14
register_argc_argv On On
register_globals On On
report_memleaks On On
safe_mode On On
safe_mode_exec_dir /usr/local/php/bin /usr/local/php/bin
safe_mode_gid Off Off
safe_mode_include_dir /usr/local/lib/php /usr/local/lib/php
sendmail_from me@localhost.com me@localhost.com
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
serialize_precision 100 100
short_open_tag On On
SMTP localhost localhost
smtp_port 25 25
sql.safe_mode Off Off
track_errors Off Off
unserialize_callback_func no value no value
upload_max_filesize 32M 32M
upload_tmp_dir no value no value
user_dir no value no value
variables_order GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
SQLite3 support enabled
sqlite3 library version 3.3.7
APACHE_INCLUDE no value
APACHE_TARGET no value
Apache Version Apache
Apache Release 10337100
Apache API Version 19990320
Hostname:Port www.s12.xrea.com:80
User/Group apache(1000)/1000
Max Requests Per Child: 10000 - Keep Alive: off - Max Per Connection: 100
Timeouts Connection: 300 - Keep-Alive: 5
Server Root /usr/local/apache
Loaded Modules mod_tsunami, mod_throttle, mod_bandwidth, mod_docroot, mod_gzip, mod_layout, mod_headers, mod_rewrite, mod_php5cgicgiwrap, mod_php4cgicgiwrap, mod_phpcgicgiwrap, mod_cgiwrap, mod_php4, mod_fastcgi, mod_setenvif, mod_so, mod_auth, mod_access, mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation, mod_mime, mod_log_config, mod_env, http_core
Directive Local Value Master Value
child_terminate 0 0
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
DOCUMENT_ROOT /virtual/kimkim/public_html
HTTP_ACCEPT Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip
HTTP_ACCEPT_LANGUAGE en-us,en;q=0.5
HTTP_CACHE_CONTROL no-cache
HTTP_CONNECTION close
HTTP_HOST kimkim.s12.xrea.com
HTTP_PRAGMA no-cache
HTTP_USER_AGENT CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
PATH /usr/local/bin:/usr/bin:/bin
REDIRECT_SCRIPT_URI http://kimkim.s12.xrea.com/hamidasi/hello.php
REDIRECT_SCRIPT_URL /hamidasi/hello.php
REDIRECT_STATUS 200
REMOTE_ADDR 38.103.63.56
REMOTE_PORT 49986
SCRIPT_FILENAME /virtual/kimkim/public_html/hamidasi/hello.php
SCRIPT_URI http://kimkim.s12.xrea.com/hamidasi/hello.php
SCRIPT_URL /hamidasi/hello.php
SERVER_ADDR 192.168.1.113
SERVER_ADMIN admin@xrea.com
SERVER_NAME kimkim.s12.xrea.com
SERVER_PORT 80
SERVER_SIGNATURE no value
SERVER_SOFTWARE Apache
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL INCLUDED
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /hamidasi/hello.php
SCRIPT_NAME /hamidasi/hello.php
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /hamidasi/hello.php HTTP/1.1
Accept Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip
Accept-Language en-us,en;q=0.5
Cache-Control no-cache
Connection close
Host kimkim.s12.xrea.com
Pragma no-cache
User-Agent CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
HTTP Response Headers
Connection close
Content-Type text/html
CURL support enabled
CURL Information libcurl/7.14.0 OpenSSL/0.9.7l zlib/1.2.3
DOM/XML enabled
DOM/XML API Version 20020815
libxml Version 20626
HTML Support enabled
XPath Support enabled
XPointer Support enabled
DOM/XSLT enabled
libxslt Version 1.1.17
libxslt compiled against libxml Version 2.6.26
EXIF Support enabled
EXIF Version 1.4 $Id: exif.c,v 1.118.2.37.2.4 2006/01/01 13:46:52 sniper Exp $
Supported EXIF Version 0220
Supported filetypes JPEG,TIFF
GD Support enabled
GD Version bundled (2.0.28 compatible)
FreeType Support enabled
FreeType Linkage with freetype
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
iconv support enabled
iconv implementation libiconv
iconv library version 1.9
Directive Local Value Master Value
iconv.input_encoding ISO-8859-1 ISO-8859-1
iconv.internal_encoding ISO-8859-1 ISO-8859-1
iconv.output_encoding ISO-8859-1 ISO-8859-1
IMAP c-Client Version 2004
Multibyte Support enabled
Japanese support enabled
Simplified chinese support enabled
Traditional chinese support enabled
Korean support enabled
Russian support enabled
Multibyte (japanese) regex support enabled
mbstring extension makes use of "streamable kanji code filter and converter", which is distributed under the GNU Lesser General Public License version 2.1.
Directive Local Value Master Value
mbstring.detect_order auto auto
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input auto auto
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language Japanese Japanese
mbstring.substitute_character no value no value
mcrypt support enabled
version >= 2.4.x
Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes
Supported modes cbc cfb ctr ecb ncfb nofb ofb stream
Directive Local Value Master Value
mcrypt.algorithms_dir no value no value
mcrypt.modes_dir no value no value
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.58
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/local/mysql/include/mysql
MYSQL_LIBS -L/usr/local/mysql/lib/mysql -lmysqlclient
Directive Local Value Master Value
mysql.allow_persistent Off Off
mysql.connect_timeout -1 -1
mysql.default_host no value no value
mysql.default_password no value no value
mysql.default_port no value no value
mysql.default_socket no value no value
mysql.default_user no value no value
mysql.max_links Unlimited Unlimited
mysql.max_persistent Unlimited Unlimited
mysql.trace_mode Off Off
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7g 11 Apr 2005
User-Space Object Overloading Support enabled
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 6.6 06-Feb-2006
PDF Support enabled
PDFlib GmbH Version 4.0.3
Revision $Revision: 1.112.2.11.2.1 $
PostgreSQL Support enabled
PostgreSQL(libpq) Version 7.4.9
Multibyte character support enabled
SSL support disabled
Active Persistent Links 0
Active Links 0
Directive Local Value Master Value
pgsql.allow_persistent On On
pgsql.auto_reset_persistent Off Off
pgsql.ignore_notice Off Off
pgsql.log_notice Off Off
pgsql.max_links Unlimited Unlimited
pgsql.max_persistent Unlimited Unlimited
Revision $Revision: 1.51.2.4.2.1 $
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
SQLite support enabled
PECL Module version 1.0.3 $Id: sqlite.c,v 1.62.2.25 2004/07/10 12:25:33 wez Exp $
SQLite Library 2.8.14
SQLite Encoding iso8859
Directive Local Value Master Value
sqlite.assoc_case 0 0
Regex Library Bundled library enabled
Dynamic Library Support enabled
Path to sendmail /usr/sbin/sendmail -t -i
Directive Local Value Master Value
assert.active 1 1
assert.bail 0 0
assert.callback no value no value
assert.quiet_eval 0 0
assert.warning 1 1
auto_detect_line_endings 0 0
default_socket_timeout 60 60
safe_mode_allowed_env_vars PHP_ PHP_
safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry
user_agent no value no value
Tokenizer Support enabled
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6
XSLT support enabled
Backend Sablotron
Sablotron Version 1.0.2
Sablotron Information Cflags: -O3 -march=i686 -fPIC -lstdc++ -I/usr/local/include -I/usr/local/include Libs: -L/usr/local/lib -liconv -lexpat Prefix: /usr/local
ZLib Support enabled
Compiled Version 1.2.3
Linked Version 1.2.3
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Environment
Variable Value
PWD /var/log/qmail/apache
VENDOR intel
SVDIR /service
USER root
MACHTYPE i386
HOST s12.xrea.com
SHLVL 1
LOGNAME root
GROUP root
HOSTTYPE i386-linux
OSTYPE linux
PATH /usr/local/bin:/usr/bin:/bin
PHP Variables
Variable Value
PHP_SELF /hamidasi/hello.php
_SERVER["DOCUMENT_ROOT"] /virtual/kimkim/public_html
_SERVER["HTTP_ACCEPT"] Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_ACCEPT_ENCODING"] gzip
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-us,en;q=0.5
_SERVER["HTTP_CACHE_CONTROL"] no-cache
_SERVER["HTTP_CONNECTION"] close
_SERVER["HTTP_HOST"] kimkim.s12.xrea.com
_SERVER["HTTP_PRAGMA"] no-cache
_SERVER["HTTP_USER_AGENT"] CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
_SERVER["PATH"] /usr/local/bin:/usr/bin:/bin
_SERVER["REDIRECT_SCRIPT_URI"] http://kimkim.s12.xrea.com/hamidasi/hello.php
_SERVER["REDIRECT_SCRIPT_URL"] /hamidasi/hello.php
_SERVER["REDIRECT_STATUS"] 200
_SERVER["REMOTE_ADDR"] 38.103.63.56
_SERVER["REMOTE_PORT"] 49986
_SERVER["SCRIPT_FILENAME"] /virtual/kimkim/public_html/hamidasi/hello.php
_SERVER["SCRIPT_URI"] http://kimkim.s12.xrea.com/hamidasi/hello.php
_SERVER["SCRIPT_URL"] /hamidasi/hello.php
_SERVER["SERVER_ADDR"] 192.168.1.113
_SERVER["SERVER_ADMIN"] admin@xrea.com
_SERVER["SERVER_NAME"] kimkim.s12.xrea.com
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SIGNATURE"] no value
_SERVER["SERVER_SOFTWARE"] Apache
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] INCLUDED
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /hamidasi/hello.php
_SERVER["SCRIPT_NAME"] /hamidasi/hello.php
_SERVER["PATH_TRANSLATED"] /virtual/kimkim/public_html/hamidasi/hello.php
_SERVER["PHP_SELF"] /hamidasi/hello.php
_SERVER["argv"] Array
(
)
_SERVER["argc"] 0
PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net.
↓PHPでこのサーバのグローバル変数を取得PHP3
DOCUMENT_ROOT : /virtual/kimkim/public_html
HTTP_ACCEPT : Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING : gzip
HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5
HTTP_CACHE_CONTROL : no-cache
HTTP_CONNECTION : close
HTTP_HOST : kimkim.s12.xrea.com
HTTP_PRAGMA : no-cache
HTTP_USER_AGENT : CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
PATH : /usr/local/bin:/usr/bin:/bin
REDIRECT_SCRIPT_URI : http://kimkim.s12.xrea.com/hamidasi/hello.php
REDIRECT_SCRIPT_URL : /hamidasi/hello.php
REDIRECT_STATUS : 200
REMOTE_ADDR : 38.103.63.56
REMOTE_PORT : 49986
SCRIPT_FILENAME : /virtual/kimkim/public_html/hamidasi/hello.php
SCRIPT_URI : http://kimkim.s12.xrea.com/hamidasi/hello.php
SCRIPT_URL : /hamidasi/hello.php
SERVER_ADDR : 192.168.1.113
SERVER_ADMIN : admin@xrea.com
SERVER_NAME : kimkim.s12.xrea.com
SERVER_PORT : 80
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache
GATEWAY_INTERFACE : CGI/1.1
SERVER_PROTOCOL : INCLUDED
REQUEST_METHOD : GET
QUERY_STRING :
REQUEST_URI : /hamidasi/hello.php
SCRIPT_NAME : /hamidasi/hello.php
PATH_TRANSLATED : /virtual/kimkim/public_html/hamidasi/hello.php
PHP_SELF : /hamidasi/hello.php
argv : Array
argc : 0
HTTP_POST_VARS : Array
_POST : Array
HTTP_GET_VARS : Array
_GET : Array
HTTP_COOKIE_VARS : Array
_COOKIE : Array
HTTP_SERVER_VARS : Array
_SERVER : Array
HTTP_ENV_VARS : Array
_ENV : Array
HTTP_POST_FILES : Array
_FILES : Array
_REQUEST : Array
GLOBALS : Array
value : Array
key : value
↓PHPでこのサーバのグローバル変数を取得PHP4
DOCUMENT_ROOT : /virtual/kimkim/public_html
HTTP_ACCEPT : Accept: application/xhtml+xml,text/html;q=0.9,text/plain;
HTTP_ACCEPT_CHARSET : ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING : gzip
HTTP_ACCEPT_LANGUAGE : en-us,en;q=0.5
HTTP_CACHE_CONTROL : no-cache
HTTP_CONNECTION : close
HTTP_HOST : kimkim.s12.xrea.com
HTTP_PRAGMA : no-cache
HTTP_USER_AGENT : CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
PATH : /usr/local/bin:/usr/bin:/bin
REDIRECT_SCRIPT_URI : http://kimkim.s12.xrea.com/hamidasi/hello.php
REDIRECT_SCRIPT_URL : /hamidasi/hello.php
REDIRECT_STATUS : 200
REMOTE_ADDR : 38.103.63.56
REMOTE_PORT : 49986
SCRIPT_FILENAME : /virtual/kimkim/public_html/hamidasi/hello.php
SCRIPT_URI : http://kimkim.s12.xrea.com/hamidasi/hello.php
SCRIPT_URL : /hamidasi/hello.php
SERVER_ADDR : 192.168.1.113
SERVER_ADMIN : admin@xrea.com
SERVER_NAME : kimkim.s12.xrea.com
SERVER_PORT : 80
SERVER_SIGNATURE :
SERVER_SOFTWARE : Apache
GATEWAY_INTERFACE : CGI/1.1
SERVER_PROTOCOL : INCLUDED
REQUEST_METHOD : GET
QUERY_STRING :
REQUEST_URI : /hamidasi/hello.php
SCRIPT_NAME : /hamidasi/hello.php
PATH_TRANSLATED : /virtual/kimkim/public_html/hamidasi/hello.php
PHP_SELF : /hamidasi/hello.php
argv : Array
argc : 0
HTTP_POST_VARS : Array
_POST : Array
HTTP_GET_VARS : Array
_GET : Array
HTTP_COOKIE_VARS : Array
_COOKIE : Array
HTTP_SERVER_VARS : Array
_SERVER : Array
HTTP_ENV_VARS : Array
_ENV : Array
HTTP_POST_FILES : Array
_FILES : Array
_REQUEST : Array
GLOBALS : Array
value : Array
key : value
↓PHPで時間を表示
ただいま
2008年11月21日(Fri) 19時41分59秒 です
↓PHPで時間を表示(曜日を日本語に)
Warning : setlocale() [function.setlocale ]: Passing locale category name as string is deprecated. Use the LC_* -constants instead. in /virtual/kimkim/public_html/hamidasi/hello.php on line 42
ただいま2008年11月21日(金) 19時41分です
↓PHPで時間を表示(setlocale関数)
2008/11/21(金) 19:41:59
↓PHPで時間を表示(海外サーバ用)
ただいま
2008年11月21日(Fri) 19時41分59秒 です
↓PHPで時間を表示(海外サーバ用別方式)
Warning : putenv() [function.putenv ]: Safe Mode warning: Cannot set environment variable 'TZ' - it's not in the allowed list in /virtual/kimkim/public_html/hamidasi/hello.php on line 62
ただいま
2008年11月21日(Fri) 19時41分59秒 です
↓PHPで最終更新時刻を表示
更新日May 27 2005 16:51:00