Code Snippets

Showing 31 to 35 of 35 posts.


Posted on November 19th, 2013 by Graeme

Abstract class order

The abstract class must be included before the extending class, and the extending class cannot be instantiated until before its definition.

Read more...


Posted on November 13th, 2013 in PHP by Graeme

PHP : GET multiple parameters with the same name from the URL

One way to access multiple parameters with the same name is simply to get the entire query string using $_SERVER[‘QUERY_STRING’], and then exploding the query string to get what you need.

Read more...


Posted on November 12th, 2013 in PHP

Fetching data from an RSS feed

Here’s a quick function showing you how to access data from an RSS Feed. This one uses the BBC’s news feed.

Read more...


Posted on October 22nd, 2013

Making a SPARQL Query

Using sparql.org and Virtuoso to make SPARQL Quieries

Read more...


Posted on October 16th, 2013 by Graeme

Querying DBPedia

DBPedia contains data derived from Wikipedia’s infoboxes, category hierarchy, article abstracts, and various external links.

Read more...