PHP Posts

jQuery / Javascript

Limit Character Count in ACF Repeater Text Field

Sarah Berg • April 7, 2013

Limiting the characters in a given field is a good way to dummyproof your admin dashboard so content writers don’t write novel length entries for a field that should only be a few words. This could…

Read More

PHP

Can’t Update in WordPress – Missing Archive File

Sarah Berg • April 5, 2013

Working on a lot of WordPress sites, I’ve never encountered this till this point. The first clue was that I couldn’t just install plugins from the plugin library, i had to install them manually. However, updating…

Read More

PHP

Events Lists in WordPress.

jordanrodriguez • March 16, 2013

So you want to make an events list in WordPress? There is a lot to do! First off lets define how this should work. Since I’m writing this blog I’ll tell you how mine works and…

Read More

MySQL

How to Write a Recursive Function with PHP

jsandahl • January 3, 2013

For the uninitiated, the recursive function can be a mind-bender. The concept, however, is not as difficult as it may seem at first glance. The difficulty of a recursive function is that it must have a…

Read More

jQuery / Javascript

Flexible ajax using jQuery

jordanrodriguez • December 22, 2012

We recently had to send a delete request to a javascript confirm. We were using bootstrap so instead of the standard confirm(); command we wanted to display our own module. We also wanted a universal command…

Read More

PHP

How Can I Make a Php Alphabet Loop?

Sarah Berg • December 21, 2012

A useful feature of many coding languages is the “for loop”. A basic loop in php has for following structure: for (init; condition; increment) { code to be executed; } Parameters: init: Mostly used to set…

Read More

PHP

How do I remove a domain from a string in PHP?

Sarah Berg • November 15, 2012

This doesn’t feel like it should be that hard, and luckily it’s not! However, some of the more common ways I found had been commented on being rather unreliable.  Most people recommend an easy str_replace, removing…

Read More

PHP

How PHP Globals Work

jsandahl • November 14, 2012

I had a reminder of how globals work recently. I was trying to perform a WordPress query using the $wpdb global for the database. The global was declared at the top of the file like this:…

Read More

PHP

Backing up files into a tar.gz and uploading them elsewhere with FTP all in PHP

Andy Stramer • November 8, 2012

File redundancy is always important. One only learns how important when they lose their site once. If your site is php, you can even create a script to back up your site for you: $files =…

Read More

PHP

How to Use Multiple Conditions in a Single If Statement

jsandahl • November 2, 2012

This is certainly elementary programming knowledge, but bears repeating here. The scenario is that you need to check multiple cases in order to execute a certain piece of code. The scenario might be if you have…

Read More

API

Getting the cheapest Buy It Nows with Ebay Finding Service API and PHP

Andy Stramer • October 13, 2012

Prerequistes: cURL and a Ebay Account. Everyone likes a good deal. With the Ebay API you can build your own tools that may give you a leg up on all the other deal seekers. Ebay’s API…

Read More

Kohana

Kohana CRUD – Or How to Create, Update, and Delete From the Database with ORM

jsandahl • October 4, 2012

ORM::factory has become a good friend as of the last few weeks. Once you understand the basic idea behind queries, you know they can be reduced down to CRUD. That is, you will be Creating, Updating,…

Read More

Kohana

Create Your Own Kohana Module

jsandahl • September 24, 2012

Kohana surprises once again with its simplicity in working with the code. Let’s say you have a framework or class and you want to make it load on every page within your Kohana application. Regularly, you’d…

Read More

Kohana

Getting Started with Kohana

jsandahl • September 19, 2012

So you’ve read my Model-View-Controller article from last week and now you’re ready to get started working with Kohana, the best open-source, lightweight MVC out there for PHP. I’ve simplified the process I use for your…

Read More

Kohana

How Does a Model-View-Controller Work?

jsandahl • September 13, 2012

There’s a lot of buzz around the term Model-View-Controller (MVC) and frameworks. If you’re just starting to wrap your mind around how they work, this article is written for you. If you’re considering using MVC, here’s…

Read More