Skip to content

Instantly share code, notes, and snippets.

View davidbuchweitz's full-sized avatar

David Buchweitz davidbuchweitz

View GitHub Profile
<?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);
@davidbuchweitz
davidbuchweitz / uPDO.php
Created October 8, 2019 19:52 — forked from davidbuchweitz-zz/uPDO.php
Micro PDO Wrapper
<?php
/**
* µPDO - Micro PDO wrapper
*
* A tiny wrapper for trusted queries.
*
* https://gist.github.com/davidbuchweitz/8c2b897c4d9e331cd916fd6fd9aec5f5
*/