PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Warning: Cannot modify header information

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Warning: Cannot modify header information

    I recently changed my Advanced tab Embedding script link back URL from mysearch.html to mysearch.php in order to include some other PHP functions on the page.

    I encountered an error: "Warning: Cannot modify header information . . . " (see image)


    Here's the content of my mysearch.php page:

    <?php virtual("/includes/top.html"); ?>
    <title>ICDMeister Online Search Page</title>
    <?php virtual("/includes/middle.html"); ?>
    <?php virtual("search.php"); ?>
    <?php virtual("/includes/footer.html"); ?>

    My PHP guru recommended commenting out lines 98 & 99 in the search.php file as seen here:
    // Send HTTP header to define meta charset
    // if (isset($Charset) && $NoCharset == 0)
    // header("Content-Type: text/html; charset=" . $Charset);

    Doing this eliminated the error I was seeing.

    Will commenting out those lines cause any problems with other functioning of ZoomSearch?

    Thanks in advance,

    Andrew

  • #2
    See this FAQ.
    Q. "Warning: Cannot modify header information - headers already sent..." or similar error message

    And this past post on the topic for a solution
    http://www.wrensoft.com/forum/showthread.php?t=2398

    Comment


    • #3
      Spot on answer as always. Thanks.

      Andrew

      Comment

      Working...
      X