Skip to content

Instantly share code, notes, and snippets.

@pumamammal
pumamammal / gist:63da4e90bf31e615c2c07aba66819e40
Last active June 22, 2016 22:59 — forked from betweenbrain/gist:5405671
Use cURL and SimpleXML to retrieve and parse Wordpress RSS feed
<?php
$site = array('www.nbcnewyork.com/rss', 'http://www.nairaland.com/feed', 'www.nbc12.com/category/213869/rss-feeds');
foreach ($site as $i ) {
$curl = curl_init();
curl_setopt_array($curl, Array(
CURLOPT_URL => $i,
CURLOPT_USERAGENT => 'spider',
@pumamammal
pumamammal / QRLogo.php
Created June 2, 2016 05:32 — forked from NTICompass/QRLogo.php
QR Code + Logo Generator
<?php
/**
* QR Code + Logo Generator
*
* http://labs.nticompassinc.com
*/
$data = isset($_GET['data']) ? $_GET['data'] : 'http://labs.nticompassinc.com';
$size = isset($_GET['size']) ? $_GET['size'] : '200x200';
$logo = isset($_GET['logo']) ? $_GET['logo'] : FALSE;