contact

or cancel

Matt

california_app

A Quick Weather API with PHP

I wanted to add a small weather status to the top of a web application, just to remind me what was going on in that city. This is some really simple code, based off of WunderGround’s API, using a city … Read more…

Author

Matt

Category

PHP

code-igniter-model-guide

A GUIDE to Simple Code Igniter Models

After a lot database code, you realize that the majority of your methods take on the same structure. For a while now, I have started all of our Code Igniter models with five generic methods to interact with the database, … Read more…

Author

Matt

Category

PHP

tiny-php-preview

Tiny PHP: A Fun PHP Minifier

Tiny PHP is a little tool we put into our labs that performs some “minification” on PHP code. Is it a trivial and completely academic exercise because PHP doesn’t benefit from being smaller like CSS or Javascript? Yes. But it’s … Read more…

Author

Matt

Category

PHP

php_simple_pagination

Simple PHP Pagination Code

The Problem: You have a data set (array) and you want to paginate it. You know the page you are on, and how many results per-page you want to display. The Solution: This simple script has an input of those … Read more…

Author

Matt

Category

PHP

new-prime-footer

Footer Fun with PHP, Part 3: WordPress Posts

Our final addition to the PHP footer chronicles is adding some basic information about our most recent blog posts. We have written about Getting Blog Posts from WordPress before, but will toss up a slightly different method in this post. … Read more…

Author

Matt

Category

PHP

Footer Fun with PHP, Part 2: Flickr

Following our Twitter PHP blog post, we need to talk about Flickr. Flickr continues to be our choice of a photo sharing tool, mainly because their API support, and we appreciate some of their smart server-side handling of images. This … Read more…

Author

Matt

Category

PHP

Footer Fun with PHP, Part 1: Twitter

We recently rebuilt our footer and made sure to add some of our social outlets, like our blog posts, Twitter feed, and Flickr feed. This can sometimes cause a headache for a developer because there are so many choices on … Read more…

Author

Matt

Category

PHP