Jump to content

header() problem


Full-Demon

Recommended Posts

Hi,

 

header() doesn't works properly. When I write the following:

 

header("Location: index.php");

 

It doesn't redirects me, only when I echo something AFTER the header();

 

header("Location: index.php"); echo 'wtf?';

 

WTF??? What is wrong? Why doesn't header(); works immediatly?

 

Thanks alot,

 

FD

Link to comment
https://forums.phpfreaks.com/topic/66314-header-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.