Location: PHPKode > projects > News manager > config.php
<?php
/* ######################## DATABASE ######################## */

  // Database server
  $db_server = "localhost";
  
  // Database name
  $db_name = "my_database";
  
  // Database username
  $db_user = "root";

  // Database password
  $db_password = "pwd";
  
  // Database table to store news
  // (will be created automatically)
  $db_table = "news_manager";

/* ##################### CONFIGURATION ###################### */

  // Number of news to be shown
  $shownews = 5;
  
  // Password for the administration
  $passwd = "admin";

  // Title (will be displayed in the browser's header
  $title  = "News";

/* ######################### LAYOUT ######################### */

  // Header to be used on each page
  $header = <<<EOT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="style.css" rel="stylesheet" type="text/css">
    <title>$title</title>
  </head>
  <body>
    <table border="0" cellspacing="0" cellpadding="0" align="center" width="90%">
      <tr>
        <td>
EOT;

  // Footer to be used on each page
  $footer = <<<EOT
        </td>
      </tr>
    </table>
  </body>
</html>
EOT;

  // Login form
  $login = <<<EOT
          <form action="admin.php" method="get">
            Password: <input name="pwd" type="password"> <input type="submit" value="Login">
          </form>
EOT;
?>
Return current item: News manager