×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Ciprian Hanga
Added: Mar 28, 2017 5:20 PM
Views: 19
Tags: no tags
Website config file.
  1. <?php
  2. // Always use this line to include this file:
  3. // include_once $_SERVER['DOCUMENT_ROOT'] . "/project/_helpers/site-config.php";
  4.  
  5. // DB connection variables.
  6. $dbhost = 'localhost';
  7. $dbuser = 'root';
  8. $dbpassword = '';
  9. $dbname = 'shoutit';
  10.  
  11. // Website variables.
  12. $config_sitename = 'Internet Jokes Database';
  13.  
  14. // This kind of path should be used only when referring to files for
  15. // the internal application logic.
  16. // For HTTP links intended for the end user, use DNS based URLs instead.
  17. // (Example: $basedir = "ciprianhanga.com/blog";)
  18. // FIXME: learn to implement routing.
  19. $config_basedir = $_SERVER['DOCUMENT_ROOT'] . "/shoutit";
  20.