Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42466

[RESOLVED] PHP: Header Code Not Work When Website is Uploaded

$
0
0
Hi guys.

I get this error:
Quote:

Warning: Cannot modify header information - headers already sent by (output started at /home/janrapha/public_html/UpdateToday/includes/overall/header.php:7) in /home/janrapha/public_html/UpdateToday/register.php on line 116
line 116 is this code.
Code:

header('location: register.php?success');
I got no error when I'm running the site in my localhost. But when I upload the files online, I got errors saying headers are already sent.
Please help.

Viewing all articles
Browse latest Browse all 42466


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>