I have two scripts get.php and auth.php where i ‘ve required auth.php in get.php, so here’s the deal the redirection statement in auth.php i.e, header() is not working for some reason, any quick thoughts on this problem if this can be achieved or not??
I have two scripts get.php and auth.php where i ‘ve required auth.php in get.php
Share
As per my understanding, your problem is that:
It generally does not work due to some output is print already on the page.
Please use
at very the beginning of the page.
This starts output buffering.
And the redirection works.