PHP 5.3 doesn't support the http_response_code function so now checking
if that function exists and if it doesn't using the old fashioned header
function to do the same thing.