Saturday 22 October 2016

php - Issues with header while redirecting it to the current page

Use the ob_flush function of PHP. add this function at the top of the code.


ob_flush();

And this will work.


EDITED:


INstead of this code:


header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);

Use this code:


echo '';

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...