array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.apache-response-headers.php', 1 => 'apache_response_headers', ), 'up' => array ( 0 => 'ref.apache.php', 1 => 'Apache İşlevleri', ), 'prev' => array ( 0 => 'function.apache-request-headers.php', 1 => 'apache_request_headers', ), 'next' => array ( 0 => 'function.apache-setenv.php', 1 => 'apache_setenv', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'tr', 'path' => 'reference/apache/functions/apache-response-headers.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
apache_response_headers — Tüm HTTP yanıt başlıklarını alır
Tüm HTTP yanıt başlıklarını alır. Apache, FastCGI, CLI ve FPM http sunucularında çalışır.
Bu işlevin bağımsız değişkeni yoktur.
Başarı halinde Apache yanıt başlıklarını içeren bir dizi;
aksi halde false
döndürür.
Örnek 1 - apache_response_headers() örneği
<?php
print_r(apache_response_headers());
?>
Yukarıdaki örnek şuna benzer bir çıktı üretir:
Array ( [Accept-Ranges] => bytes [X-Powered-By] => PHP/4.3.8 )