Skip to content

Instantly share code, notes, and snippets.

@lafraga93
Last active September 11, 2019 14:21
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 lafraga93/7f0995da05a5041de33e6a7f2eaaea02 to your computer and use it in GitHub Desktop.
Save lafraga93/7f0995da05a5041de33e6a7f2eaaea02 to your computer and use it in GitHub Desktop.
PHP Example File V2 - Docker Tutorial
<?php
$pdo = null;
try {
$pdo = new PDO('mysql:host=mysql;dbname=database', 'root', '12345');
} catch (PDOException $e) {
print $e->getMessage();
die();
}
var_dump($pdo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment