Error code on shtml

Discussion in 'Co-op Advertising Network' started by Homer, Jan 16, 2005.

  1. #1
    I am getting this error on one of my pages 'Warning: ini_set(): Cannot change zlib.output_compression - headers already sent in /home/weprint/public_html/ad_network.php on line 78' But the ads are still displaying. Can anyone offer some advice?

    Appreciate it ;-)
     
    Homer, Jan 16, 2005 IP
  2. exam

    exam Peon

    Messages:
    2,434
    Likes Received:
    120
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Your php code is sending HTML headers before reaching the ad network code. If you are not sending headers with header() this will be any output - even a blank line or space outside of the php tags. Make sure your opening php tag is the *first* thing in the file and that you are not jumping in and out of php.


    Output compression is probably not enabled, so it doesn't need to be disabled
     
    exam, Jan 16, 2005 IP
  3. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #3
    You could comment out the line that disables it.
     
    digitalpoint, Jan 16, 2005 IP