betterCode() PHP 2025

Voting

: eight plus one?
(Example: nine)

The Note You're Voting On

sey at sey dot prometheus-designs dot net
20 years ago
The replacement updated get_headers function by aeontech at gmail dot com improperly formats dates when $format = 1.

Replace:
<?
else {
$headers[strtolower($h2[0])] = trim($h2[1]);
}
?>

With:
<?
else {
$foo = implode( ':', $h2 );
$foo = preg_replace( '/[a-zA-Z- ]*: /', '', $foo );
$headers[strtolower($h2[0])] = trim( $foo );
}

<< Back to user notes page

To Top