Advertisement
Guest User

Untitled

a guest
Sep 30th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. SQL_TYPE=mysql
  2. HOST=localhost
  3. USER=incognito
  4. PASS=topsecret
  5. DATABASE=mycooldb
  6.  
  7. $defines = parse_ini_file('defines.ini');
  8. foreach($defines as $field=>$data)
  9. define($field, $data);
  10.  
  11. die('host = '.HOST) // gives HOST
  12.  
  13. die('host = '.HOST) // gives localhost - as it should
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement