I am designing a small website, that makes queries to a SQL database system, without using any CMS. What is the safest way to store the SQL authentication parameters, using a global $PASSWORD seems quite unsafe (having for instance shellshock-like security loopholes in mind). Is it safer to use define("PASSWORD","password") ? 
Is this second method safer if one writes
define("SOMEOBFUSCATEDANDVERYLONGCONSTANTNAME","password");
If I use one of these methods, is it worth encrypting "password" and passing the crypt parameters with another method ? Any explanations and suggestions welcome !
 
     
    