Headers already sent by PEAR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • emil|act
    New Member
    • Apr 2004
    • 2
    • 3.0.1

    Headers already sent by PEAR

    Hi!

    I got this strange problem.
    I develope my sites locally, makes sure everything is working, but this time it didn't work when i put it to the external server

    The error witch is posted on the screen is this:

    Warning: Cannot modify header information - headers already sent by (output started at /hsphere/local/home/host/lib/PEAR.php:1) in /hsphere/local/home/host/lib/login.php on line 36

    Do any of you guys understand why this appear externally when it works perfect at my local computer.

    Thanks in advance
    -Emil
    Last edited by emil|act; Thu 15 Apr '04, 6:58am. Reason: Typ0
  • sirspot
    New Member
    • Apr 2004
    • 22

    #2
    It may be that the external server is not using output buffering. If that is the case, you can look up output control in the PHP manual. Here is their small example:


    PHP Code:
    <?php

    ob_start
    ();
    echo 
    "Hello\n";

    setcookie("cookiename""cookiedata");

    ob_end_flush();

    ?>

    Comment

    • emil|act
      New Member
      • Apr 2004
      • 2
      • 3.0.1

      #3
      Thanks a lot =)

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...