Menu

Warning: Cannot modify header information -

Sami
2006-08-05
2013-04-22
  • Sami

    Sami - 2006-08-05

    I have installed the directory, it works very fine by default..but whenever i try to include it in my website page.. it gives the following errot.

    Warning: Cannot modify header information - headers already sent by (output started at /home/itssami/public_html/dir4/index.php:7) in /home/itssami/public_html/dir4/lib/lib_admin.php3 on line 851

    I have checked very carefully there is no any blankline in the index.php...
    it gives this error even when i try to write so simple code like

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Directory</title>
    </head>
    <body>
    <?php
    # for providers which did not include 'DirectoryIndex index.php3'
    include ("index.php3");
    ?>
    </body>
    </html>

    Please tell me where im going wrong.thanks.

     
    • C

      C - 2006-08-06

      Greetings,

      I suggest that you leave index.ph3 untouched.

      To modify the look/integrate MyThreads into your Web site, you should modify the template files.

      Specifically main.tpl.

      What I did for my Web site is insert into main.tpl  the header information that appears at the top of every page of my Web site.

      In mythreads/templates/main.tpl, I added my header after
      <BODY>
      <DIV align="center">
      and before 
      <table border=0 cellspacing=0 cellpadding=0 width="95%">.

      Check it out at http://CVibes.net/

      Hope this helps.

      RootsMan

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.