Created
April 18, 2012 08:08
-
-
Save Streek/2411926 to your computer and use it in GitHub Desktop.
Extract Database Information Via PHP on Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//$_ENV['SHARED_DATABASE_URL'] should be changed to your environment variable. | |
extract(parse_url($_ENV['SHARED_DATABASE_URL'])); | |
R::setup("pgsql:host=$host dbname=".substr($path,1), $user, $pass); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment