This file contains 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 | |
/** | |
* GIT Webhook | |
* | |
* Instructions: | |
* 1. Set up SSH Keys | |
* 2. Register SSH Keys and Webhook on VCS | |
* 3. Set up the GIT remote vía SSH | |
* 4. Register variables in this script | |
* |
This file contains 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 | |
/** | |
* Quickstart: | |
* The following sequence should only give an idea of how to use PDO | |
* DON'T USE THIS CODE FOR A REAL SCENARIO! | |
*/ | |
$dsn = 'mysql:dbname=name_of_your_table'; // Define 'data source name' | |
$user = 'username'; // Define username | |
$pass = 'secret'; // Defeine password | |
$pdo = new PDO($dsn, $user, $pass); // Create the PDO object |