How can I redirect to the same page using PHP?
For example, locally my web address is:
http://localhost/myweb/index.php
How can I r
A quick easy approach if you are not concerned about query params:
header("location: ./");
I just tried using header("Location: "); (without any value) and it redirected to the current page.
header("Location: ");
Simple line below works just fine:
header("Location: ?");