Skip to content

Instantly share code, notes, and snippets.

View element121's full-sized avatar

element121 element121

  • UK
View GitHub Profile
-- This is MySQL sample provided from http://element121.com/2015/11/07/how-to-join-the-same-table-twice-in-a-single-sql-query-statement/
-- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 11, 2016 at 10:57 PM
-- Server version: 5.6.17
-- PHP Version: 5.5.12
@element121
element121 / LastRss_example.php
Last active December 9, 2015 23:16
How to parse / integrate a Wordpress.com blog RSS feed into a PHP page
// include lastRSS
include "lastRSS.phps";
// Create lastRSS object
$rss = new lastRSS;
// Set cache dir and cache time limit (1200 seconds)
// (don't forget to chmod cahce dir to 777 to allow writing)
$rss->cache_dir = '';
$rss->cache_time = 0;