Joxercfg Posted February 22, 2019 Share Posted February 22, 2019 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! Quote Link to comment Share on other sites More sharing options...
requinix Posted February 22, 2019 Share Posted February 22, 2019 Quote output started at /home/fitymaff/public_html/index.php:1 That is the part of the message that matters. What is the first few lines of your index.php? Quote Link to comment Share on other sites More sharing options...
Joxercfg Posted February 22, 2019 Author Share Posted February 22, 2019 (edited) <?php date_default_timezone_set("Europe/Budapest"); $karbantartas="0"; include ("/home/fitymaff/public_html/config.php"); Edited February 22, 2019 by Joxercfg Quote Link to comment Share on other sites More sharing options...
requinix Posted February 22, 2019 Share Posted February 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.