i have this code,why my header location not working? its a form of updating and editing and deleting some pages in my control panel...and i have an index.php file in the sam
It took me some time to figure this out: My php-file was encoded in UTF-8. And the BOM prevented header location to work properly. In Notepad++ I set the file encoding to "UTF-8 without BOM" and the problem was gone.
In my case i created new config file with function 'ob_start()' and added this to my .gitignore file.
for me just add ob_start(); at the start of the file.