php - Cannot modify header information[t3] -


i have code:

session_start();     function()....         header('location: home.php');         session_destroy(); 

in code there isn't "echo" or "print_r" purpose after function go in plase. obtain warning "cannot modify header information". can me?

you have error because page have starting render something.

you either have html code displayed (beware of whitespaces out of <?php ?> tags) or have data displayed echo.

you have call header() function before sort of displays.


Comments