Warning: Cannot modify header information - headers already sent

soft_homes

New Member
Messages
2
Reaction score
0
Points
0
I've a website in x10hosting and iu've got this error :
Warning: Cannot modify header information - headers already sent by (output started at /home/werpos/public_html/config.php:1) in /home/werpos/public_html/index.php on line 196

in all my file (not the same index.php change to name file and line too)

how to fix it ?
In my computer (localhost with xampp) i haven't this error all works fine x_x
 
Last edited:

EliteACE

New Member
Messages
9
Reaction score
0
Points
0
you can only use header(); or session_start(); before anything is outputted to the webbrowser. such as HTML.

Post your code if your still in doubt.
 

marshian

New Member
Messages
526
Reaction score
9
Points
0
Maybe there's an invisible character, try saving your file as ASCI.
 

nightscream

New Member
Messages
948
Reaction score
0
Points
0
make sure it's at the top of your document, before <html> or the <Document thingy
 
Top