Skip to content

Instantly share code, notes, and snippets.

@wesleyvicthor
Created April 5, 2012 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wesleyvicthor/2313694 to your computer and use it in GitHub Desktop.
Save wesleyvicthor/2313694 to your computer and use it in GitHub Desktop.
do not do that!
<?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;
}";
}
@alganet
Copy link

alganet commented Apr 5, 2012

wtf

@wesleyvicthor
Copy link
Author

a thing very wrong, dude. :x

@hussani
Copy link

hussani commented Apr 5, 2012

really?

@thiagophx
Copy link

bitch please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment