Skip to content

Instantly share code, notes, and snippets.

Avatar

David Buchweitz davidbuchweitz

View GitHub Profile
View uPDO.php
<?php
/**
* µPDO - Micro PDO wrapper
*
* A tiny wrapper for trusted queries.
*
* https://gist.github.com/davidbuchweitz/8c2b897c4d9e331cd916fd6fd9aec5f5
*/
View letslogic_api_example.php
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);