Jump to content

Cannot modify header


Recommended Posts

Hello guys.
I got a very big problem.
I want to make a online game website. The site is done, i try on a free domain its working perfectly.
Now i buy a domain and storage and i move everything, to the new place.
I install MySql server aswell, but now i got a big problem.
This is the error log:
[22Feb-2019 06:47:51 Europe/Budapest] PHP Warning: Cannot modify header information - headers already sent by (output started at /home/fitymaff/public_html/index.php:1 in / home/fitymaff/public_html/config.php on line 2
This is the error message. This is the second line in the config php :
header(‘Content-type: text/html charset=utf-8’)

Im try to make it good 3 weeks ago, If somebody knows this problem, please contact me here or e-mail: joxercfg@gmail.com

Thank you!

Link to post
Share on other sites

Then you probably have a UTF-8 BOM at the beginning of the file. Open your normal editor and make sure it is not saving your files with a BOM. You may have to re-save all your PHP files once that's disabled.

Link to post
Share on other sites
This thread is more than a year old.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.