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

search for in the

apache_getenv> <apache_get_modules
[edit] Last updated: Sat, 07 Jan 2012

view this page in

apache_get_version

(PHP 4 >= 4.3.2, PHP 5)

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

설명

string apache_get_version ( void )

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

반환값

성공시엔 아파치 버전을, 실패시엔 FALSE를 반환합니다.

변경점

버전 설명
4.3.4 아파치 1에서 사용할 수 있습니다.
5.0.0 아파치 2 filter API에서 사용할 수 있습니다.

예제

Example #1 apache_get_version() 예제

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

위 예제의 출력 예시:

Apache/1.3.29 (Unix) PHP/4.3.4 

참고

  • phpinfo() - Outputs information about PHP's configuration



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

 
show source | credits | stats | sitemap | contact | advertising | mirror sites