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
Last updated: Fri, 13 Nov 2009

view this page in

apache_get_version

(PHP 4 >= 4.3.2, PHP 5)

apache_get_versionRetorna a versão do Apache

Descrição

string apache_get_version ( void )

Retorna a versão do Apache.

Valor Retornado

Retorna a versão do Apache se tiver sucesso, ou FALSE se falhar.

Histórico

Versão Descrição
4.3.4 Disponível com o Apache 1.
5.0.0 Disponível com a API filter do Apache 2.

Exemplos

Exemplo #1 Exemplo de uso da função apache_get_version()

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

O exemplo acima irá imprimir algo similar a:

Apache/1.3.29 (Unix) PHP/4.3.4

Veja Também

  • phpinfo() - Mostra muitas informações sobre o PHP



add a note add a note User Contributed Notes
apache_get_version
ladislav at prskavec dot net
07-Jun-2007 06: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: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites