Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

commented Apr 5, 2012

wtf

@wesleyvicthor

This comment has been minimized.

Copy link
Owner Author

commented Apr 5, 2012

a thing very wrong, dude. :x

@hussani

This comment has been minimized.

Copy link

commented Apr 5, 2012

really?

@thiagophx

This comment has been minimized.

Copy link

commented Apr 8, 2012

bitch please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.