Space between header("Location")
If header not working in some server. On that time just check syntax carefully that you write.
Correct syntax for header is:
header(“Location:index.php”); (Correct)
header(“Location : index.php”); (Wrong)
Note: No space between Location and “:” and your page.
Put ob_start();
Second option you can check by putting ob_start(); in beginning of your code...

• Share •