Archive for the ‘PHP’ Category

Back in September of last year, Jim Greer of Kongregate.com posted an article in the forums about a new badge data service served in JSON. This was great news for developers, we could finally grab data from our user accounts without having to do a web scrape on our user page.

However, this forum post seems to be the only official documentation on what is a very interesting data feed, so it is with this reason that I decided to create this beginner’s tutorial on how to use it. Read More »

The web has so many useful services now, many offering their own API that you can draw data from and create your own mashups with. Websites like Twitter, Facebook, Flickr, and Kongregate are just a few.

Their data output is most commonly formatted in RSS (for feed readers), and JSON (a lighter form than XML used a lot for AJAX). In this post I’ll show you how to use the cURL library to collect data from any public web page. Read More »

In the below examples I’ll use data from a fictional database table named “users”. We’re looking to return the 10 most recently added users with a date of birth later than January 1st 1970.
Read More »

At the point that your site becomes more complex, you look to ways of simplifying your page code to give yourself less headaches. Ultimately you’re looking for a way to separate that header that you’ve copy-pasted so many times to different static web pages, into a page that all your other pages can call, and will stay the same.

If like me you hadn’t heard about PHP until this point where you are looking to add in other scripts to your web pages, then now is a very good time to learn about PHP includes.

1
< ?php include( 'header.html' ); ?>

Read More »