document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. <?php
  2. $services_json = json_decode(getenv("VCAP_SERVICES"),true);
  3. $mysql_config = $services_json["mysql-5.1"][0]["credentials"];
  4. return array(
  5.     \'db\' => array(
  6.     \'dsn\' => \'mysql:dbname=\'.$mysql_config["name"].\';host=\'.$mysql_config["hostname"].\';port=\'.$mysql_config["port"],
  7.         \'username\'       => $mysql_config["username"],
  8.         \'password\'       => $mysql_config["password"],  
  9.     )
  10. );
');