I have a site that runs on php and I have to redirect the user when the user logs in, comments, or posts. I am trying to cut down on time with redirects as much as possible, and to redirect a user to another page, I currently use:
echo "<script>location.href='www.redirect.url'</script>";
I am new to using PHP to redirect users and this is the fastest way that I know, is there a faster way? And if so, what is it?