Login Register


When logged in it redirects, how to? filter_list
Author
Message
RE: How to do this #12
(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.

Reply





Messages In This Thread
When logged in it redirects, how to? - by BlueCat - 06-15-2014, 04:03 PM
When logged in it redirects, how to? - by BlueCat - 06-15-2014, 04:03 PM



Users browsing this thread: 1 Guest(s)