Warning code appearing on the top of a page

Discussion in 'Web Design and Development' started by iMacIreland, Jan 24, 2009.

  1. iMacIreland macrumors member

    Joined:
    Feb 9, 2008
    #1
    A warning is appearing at the top of the index page of my online store. Every other page is ok.

    Code:
    Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home36a/sub006/sc29007-OKJM/2goenterprises.com/store/index.php:3) in /mounted-storage/home36a/sub006/sc29007-OKJM/2goenterprises.com/store/config/config.inc.php on line 9
    
    Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home36a/sub006/sc29007-OKJM/2goenterprises.com/store/index.php:3) in /mounted-storage/home36a/sub006/sc29007-OKJM/2goenterprises.com/store/classes/Cookie.php on line 244
    This has just appeared as I changed the code slightly to remove a link to a dangerous website.

    You can find the page at 2goenterprises dot com
     
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    That usually means you're using the header() PHP function after you have used print/echo to output something to the page, which goes against it's usage. See the W3Schools or the PHP online manual for more details.
     

Share This Page