Hey everyone,
For some reason I can't get a header() redirect to work at the bottom of a script. It works for me in every other script I have except this one.
I am outputting absolutely nothing to the browser before the header() redirect. If I replace the header() redirect with a generic echo, the echo will print.
At the top of the script I am calling the below scripts:
require_once('../../config.php');
require_once(''.$path_to_includes.'config/config.php');
require_once(''.$path_to_includes.'config/dbconnector.php');
require_once(''.$staff_root_path.'auth.php');
require_once('invoice.functions.php');
And here is the code I am using for my header() redirect:
header('Location: '.$staff_root_http.'invoices/'.$invoice_new.'/'); /* Redirect browser */
exit;
I can not think of any reason that this would be failing. What are some possible reasons this might fail?