phpinfo.php로 자신의 호스팅 서버 정보 확인하기

자신의 호스팅 서버의 php 정보를 보고자할 때 아래 처럼하시면됩니다.

매우 유용합니다.





phpinfo.php  로 아래의 소스를 저장해서 서버에 올리고 브라우저에서 해당 경로를 실행
<?
phpinfo()
?>


위의 경로를 실행하면 아래와 같은 정보들이 주루루룩 보여집니다.



PHP Version 5.2.8


System Linux hostweb13 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686
Build Date Jan 21 2009 15:20:12
Configure Command './configure' '--prefix=/home/app/php' '--with-apxs=/home/app/apache/bin/apxs' '--enable-magic-quotes' '--with-zlib' '--with-bz2' '--with-gd' '--with-jpeg-dir=/home/app/jpeg-6b' '--with-png-dir=/home/app/libpng' '--with-zlib-dir' '--with-ttf' '--with-freetype-dir=/home/app/freetype2' '--enable-gd-native-ttf' '--enable-gd-jis-conv' '--enable-ftp' '--with-kerberos' '--enable-mbstring' '--with-mysql=/home/app/mysql' '--with-mysqli=/home/app/mysql/bin/mysql_config' '--enable-zend-multibyte' '--enable-shared' '--enable-sockets' '--disable-posix' '--with-libxml-dir=/home/app/libxml2'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /home/app/php/lib
Loaded Configuration File /home/app/Zend/etc/php.ini
Scan this dir for additional .ini files (none)
additional .ini files parsed (none)
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams php, file, data, http, ftp, compress.bzip2, compress.zlib
Registered Stream Socket Transports tcp, udp, unix, udg
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with Zend Extension Manager v1.2.2, Copyright (c) 2003-2007, by Zend Technologies
    with Zend Optimizer v3.3.3, Copyright (c) 1998-2007, by Zend Technologies