Is there any way to do a PHP redirect without utilization of the header() or ob_start() functions?
I am currently using a bit of JS, injected in the PHP script, to get the job done (and yes, it’s working):
?> <script type="text/javascript">location.assign('index.php');</script> <?php
JS has quite a simple function location.assign() that doesn’t need headers to redirect the user; does PHP have such a function?
Is there no other way?
A meta-redirect in
<head>