I am learning PHP and have been looking for this for a while. What I want to achieve is something like this:
if (true/false) { go to this url; }
Every time I look at terms such as php redirects or php links, etc., in 99% of cases I get something “headers”. I read that redirecting headers can achieve this, but before that the code cannot go, it must be the first on the page, otherwise it will not work.
If so, how can I achieve this?
source share