newb Posted August 26, 2006 Share Posted August 26, 2006 [code]<?php// *** Is the user already logged in? ***if ( $action == login || $action == '' ) { if(isset($_SESSION['username'])) { header ("Location: http://p16draft.net/modules.php?name=cpanel&action=profile"); } else { // Begin Login Code?>[/code]thats my code. i keep getting this:[quote]Cannot modify header information - headers already sent by (output started at /home/xx/public_html/template/default/header.php:8) in /home/xx/public_html/modules/cpanel/index.php on line 41[/quote] Link to comment https://forums.phpfreaks.com/topic/18763-headers-already-sent/ Share on other sites More sharing options...
AdRock Posted August 26, 2006 Share Posted August 26, 2006 try replacing[code]header ("Location: http://p16draft.net/modules.php?name=cpanel&action=profile");[/code]with this[code]echo" <meta http-equiv='refresh' content='0;url=http://p16draft.net/modules.php?name=cpanel&action=profile'>";[/code] Link to comment https://forums.phpfreaks.com/topic/18763-headers-already-sent/#findComment-80935 Share on other sites More sharing options...
newb Posted August 26, 2006 Author Share Posted August 26, 2006 worked, thanks! Link to comment https://forums.phpfreaks.com/topic/18763-headers-already-sent/#findComment-80937 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.