RE: How to do this 06-15-2014, 04:24 PM
#14
(06-15-2014, 04:19 PM)dropzon3 Wrote:(06-15-2014, 04:07 PM)BlueCat Wrote: Do I place that anywhere in the php code? or?
It must be before you write any content.
ex.
Code:echo "Hello user"; header("Location: http://google.com");
will fail because headers need to be written before content. You can use output buffering to prevent content from being written until after everything is processed but that isn't the default.
And yes that too! Good thing that he pointed out.. If you place header before a routine then the header function will redirect and render your statements below it useless, like in his example


![[+]](https://sinister.ly/images/modern/collapse_collapsed.png)