Skip to content

Instantly share code, notes, and snippets.

@samt

samt/stub.php Secret

Created January 12, 2012 11:43
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 samt/00ca02f7c86f6aac2e52 to your computer and use it in GitHub Desktop.
Save samt/00ca02f7c86f6aac2e52 to your computer and use it in GitHub Desktop.
public function somemethod()
{
$dbh = new PDO('mysql:blad','user','pass');
if (!$dbh)
{
throw new Exception('Error connecting to database');
}
return $dbh;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment