As a result, functions of type session_startand setcookiecannot succeed, reporting:
Unable to change header information - headers have already been sent
But the target file looks like this:
1 <?php
2 session_start();
How to fix it?
castings
I found the problem, the files created by utf-8 become utf-8 + BOM after uploading to the server, so I temporarily solved the problem by saving it as utf-8 again.
BUT , there are many other files with the same problem, how can I solve the problem?
source
share