PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

apache_getenv> <apache_get_modules
Last updated: Sun, 25 Nov 2007

view this page in

apache_get_version

(PHP 4 >= 4.3.2, PHP 5)

apache_get_version — 아파치 버전을 가져옵니다.

설명

string apache_get_version ( void )

apache_get_version()은 아파치 버전을 문자열로 반환하거나, 실패시에 FALSE를 반환합니다.

Example#1 apache_get_version() 예제

<?php
$version 
apache_get_version();
echo 
"$version\n";
?>

위 프로그램의 출력은 다음과 비슷할 것입니다:

Apache/1.3.29 (Unix) PHP/4.3.4 

참고: phpinfo().



add a note add a note User Contributed Notes
apache_get_version
ladislav at prskavec dot net
07-Jun-2007 01:44
apache_get_version() - depends on settings in httpd.conf ServerTokens

Examples:

ServerTokens Full - Apache/2.0.55 (Win32) DAV/2
ServerTokens OS - Apache/2.0.55 (Win32)
ServerTokens Minor - Apache/2.0
ServerTokens Minimal - Apache/2.0.55
ServerTokens Major - Apache/2
ServerTokens Prod - Apache

apache_getenv> <apache_get_modules
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites