943,779 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 4587
  • PHP RSS
Aug 21st, 2006
0

How to solve header - error -PHP

Expand Post »
Hai Friends
While running my application i got this error. How to solve thsi error.
Plesae send me any idea.


PHP Warning: Cannot modify header information - headers already sent by (output started at /home/mixpublic_html/includes/common.php:244) in /home/mix/public_html/MiX/program/include/main.inc on line 673
Thanks
Vssp
Similar Threads
Reputation Points: 5
Solved Threads: 5
Junior Poster
vssp is offline Offline
197 posts
since Jul 2006
Aug 21st, 2006
0

Re: How to solve header - error -PHP

Can you please post the code that you are having problems with?

From the info you gave I would have to say that the problem is that you are trying to send html header info to late in the program. All header info needs to be sent first thing before you send anything else.
Team Colleague
Reputation Points: 36
Solved Threads: 2
PFO Founder
big_k105 is offline Offline
308 posts
since May 2003
Aug 22nd, 2006
0

Re: How to solve header - error -PHP

Hai friend.

I am using open source . I have include the header file this open source. This file call more then three files. So i am not clear which file code i will send you?

Thanks
VssP
Reputation Points: 5
Solved Threads: 5
Junior Poster
vssp is offline Offline
197 posts
since Jul 2006
Feb 23rd, 2011
0

I always use javascript to refresh my pages and it's very simple.

I always use javascript to refresh my pages and it's very simple.
I use to use the php header function to refresh pages, but most of the times received
error messages.
So ever since, i'm using the next command:

<?php
// Refresh page
echo '<script> window.location=" '.$_SERVER['PHP_SELF'].' "; </script>';

?>
Last edited by pangeli; Feb 23rd, 2011 at 5:58 pm. Reason: syntax mistakes
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pangeli is offline Offline
2 posts
since Feb 2011

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC