Dumping PHP headers

Posted on Mon 07 March 2016 in SysAdmin • Tagged with php, testing, debug

I read this somewhere and want to keep it around.

Sometimes I need to debug HTTPS/header issues in a load balanced environment.

Here's how to dump all the headers in PHP:

/* {DocumentRoot}/headers.php
Show all values defined on $_SERVER */
<?php
     while (list($var,$value) = each ($_SERVER)) {
            echo ...
Continue reading

PHP errors not displaying in IIS

Posted on Fri 18 May 2012 in SysAdmin • Tagged with errors, iis, php

A customer called in today saying that their site is not working after re-pointing the DNS. No changes have been made in a week and it was working fine before. Typical.

So I turned on Firebug and notice it's a 500 error. Logged into the server and saw it ...

Continue reading