Created
April 5, 2012 20:03
-
-
Save wesleyvicthor/2313694 to your computer and use it in GitHub Desktop.
do not do that!
This file contains hidden or 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 | |
public function establishConnection() | |
{ | |
return "function connectToPostgres() { | |
\$db= '<dbname>'; | |
\$user= '<user>'; | |
\$pwd= '<pwd>'; | |
\$connection = \"host=<host> port=<port> dbname='\$db' user='\$user' password='\$pwd'\"; | |
\$connect = pg_connect(\$connection); | |
return \$connect; | |
}"; | |
} |
really?
bitch please
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a thing very wrong, dude. :x