Advertisement
asadsuman

configPHP

Jan 8th, 2016
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. <?php
  2. /*
  3. *Define()
  4. *Use to define somtings, define() some Static path OR define() some static content.
  5. *like defne('CONSTANT','Hello World!'); if we echo the CONSTANT the ouput will be
  6. *Hello World.
  7. *
  8. */
  9. //Display PHP error OR Warning.
  10. error_reporting(E_ALL);
  11. ini_set('display_errors', 1);
  12.  
  13. define('DB_HOST', 'localhost');
  14. define('DB_USER', 'root');
  15. define('DB_PASS', 'asad');
  16. define('DB_NAME', 'gallery_db');
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement