|
Another solution, using only php, would be to use output bufferts (functions starting with ob_, such as ob_start()), where all contents is stored as a buffert instead of being sent to the browser. Then you can still use functions such as header(). If no redirect is nessesary you simply retrieve the buffert and output the contents to the browser.
|