Skip to content

Instantly share code, notes, and snippets.

View cmuench's full-sized avatar

Christian Münch cmuench

View GitHub Profile
<?php
$cURLSession = curl_init();
curl_setopt($cURLSession, CURLOPT_URL, sprintf('http://graph.facebook.com/%s', 'XXXXXXXXXXX')); // remplacer XXXXXXXXXXX par l'id de votre page Facebook
curl_setopt($cURLSession, CURLOPT_RETURNTRANSFER, 2);
curl_setopt($cURLSession, CURLOPT_CONNECTTIMEOUT, 2);
$apiResult = curl_exec($cURLSession);
curl_close($cURLSession);
$apiResult = json_decode($apiResult);
<?php
$cURLSession = curl_init();
curl_setopt($cURLSession, CURLOPT_URL, sprintf('http://graph.facebook.com/%s', 'XXXXXXXXXXX')); // remplacer XXXXXXXXXXX par l'id de votre page Facebook
curl_setopt($cURLSession, CURLOPT_RETURNTRANSFER, 2);
curl_setopt($cURLSession, CURLOPT_CONNECTTIMEOUT, 2);
$apiResult = curl_exec($cURLSession);
curl_close($cURLSession);
$apiResult = json_decode($apiResult);
@cmuench
cmuench / File.php
Created March 30, 2012 10:46 — forked from colinmollenhour/A-repo-moved.md
Cm_Cache_Backend_File
<?php
/**
* Cm_Cache_Backend_File
*
* The stock Zend_Cache_Backend_File backend has extremely poor performance for
* cleaning by tags making it become unusable as the number of cached items
* increases. This backend make many changes resulting in a huge performance boost,
* especially for tag cleaning.
*
* This cache backend works by indexing tags in files so that tag operations