index

Discussion in 'HTML & Website Design' started by unknownkind, Jun 19, 2007.

  1. #1
    Can someone someone help me with index.php for the main page like things that should go into it like is this good?

    Index.php

    
    <html>
    
     <head>
    
      <title>| Unknown Treasure | Tutorials, Downloads and more!</title>
    
      <meta http-equiv="cache-control" content="no-cache">
    
      <meta http-equiv="pragma" content="no-cache">
    
      <meta name="description" content="A great site for all your needs!">
    
      <meta name="keywords" content="tutorials, community, chat, downloads, applications, coding, games, music">
    
     </head>
    
     <body>
    
    //////////// This make it redirect to www.website.com/forums/
    <?php
    header('Location: /forums/');
    ?>
      
     </body>
    
    </html>
    
    Code (markup):

     
    unknownkind, Jun 19, 2007 IP
  2. teddyruxpin2000

    teddyruxpin2000 Peon

    Messages:
    61
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    My php is rusty, but I remember something about php redirects needing to come before anything else is output to the browser (unless you use output buffering, or something like that). Basically, it looks like your page will not work, and if it does, it will jump directly to the forums via the redirect, so why include a <head> section?
     
    teddyruxpin2000, Jun 19, 2007 IP