International PHP Conference Munich 2025

Voting

: eight plus zero?
(Example: nine)

The Note You're Voting On

Isaac Z dot Schlueter i at foohack dot com
16 years ago
This function doesn't exist on lighttpd, so I wrote this little function to emulate it:

<?php

if (!function_exists('apache_response_headers')) {
function
apache_response_headers () {
$arh = array();
$headers = headers_list();
foreach (
$headers as $header) {
$header = explode(":", $header);
$arh[array_shift($header)] = trim(implode(":", $header));
}
return
$arh;
}
}

?>

<< Back to user notes page

To Top