Joined November 2012
·

Matt Jordan

North Carolina
·
·

Posted to Unobstrusive debug output in PHP over 1 year ago

Also:

if (isset($_GET['debug']) && $_GET['debug'] == 'true')
{
    header('X-Debug: '.$value);
}

To control whether or not the header gets sent. (Performance Optimization?)

Achievements
1 Karma
0 Total ProTip Views