header location not working in my php code

前端 未结 15 887
面向向阳花
面向向阳花 2020-11-28 13:17

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

相关标签:
15条回答
  • 2020-11-28 14:14

    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.

    0 讨论(0)
  • 2020-11-28 14:15

    In my case i created new config file with function 'ob_start()' and added this to my .gitignore file.

    0 讨论(0)
  • 2020-11-28 14:18

    for me just add ob_start(); at the start of the file.

    0 讨论(0)
提交回复
热议问题