Follow @endyourif rss Facebook LinkedIn

PHP: self vs $this - what's the difference?

Published on Jan 30, 2020

This is a very unique topic that I found very interesting. Inside a class with PHP you can access a property or method by using either: self::myVariable or $this->myVariable. Let's explore the unique difference, specifically with how it relates to polymorphism.

Deleting an element from an array in PHP

Published on Jan 26, 2020

There are multiple ways to delete an element from array with PHP: unset, array_splice, and array_diff. The splice method is very similar to my article on removing a specific element with JavaScript article.

Using CakePHP with the jQuery Sortable Plugin

Published on Mar 4, 2019

It's time to permanently remove all "manual" sorting from the Internet. You know the one I mean where it has the up and down arrows Ė or even worse, the text box that accepts a numerical order input. By implementing the jQuery Sortable Plugin, you will be able to provide a simple, but effective drag-and-drop ordering solution for just about any type of data!

In a recent article, I described the required HTML and Javascript code need to implement the jQuery Sortable Plugin on a gallery of images. If you haven't already done so, please begin by reading this article because this one will gloss over those features and focus on how to implement this with CakePHP.

Cannot find module (SNMPv2-TC)

Published on Feb 18, 2019

When I run PHP via the command line (aka php cli), I often would be spammed with the following error messages:
Cannot find module (SNMPv2-TC)
Cannot find module (SNMPv2-SMI)

Messages like this would repeat for 30 or 40 lines. These errors would not stop my command from executing; however, it was extremely noisy when trying to see the output.

Setting Up CakePHP with IIS

Published on Jun 11, 2013

Iíve found myself doing this several times over the past little while as I had to switch computers.† Each time I would struggle with a few of the steps, so I thought I would document them this time and share for future me (or you if you like).

What Do You Care Most About When Reviewing Someone Elseís Code?

Published on Jun 10, 2013

Implementing the Repository Pattern with CakePHP

Published on Jun 3, 2013

Recent Guest Posts on

Published on Jan 7, 2013

PHP: Single Quotes versus Double Quotes

Published on Oct 9, 2012

Upgrading my Blog - The Final Saga!

Published on Sep 24, 2012

The Best Way to Prevent SQL Injection

Published on Sep 19, 2012

CakePHP 2.x Login System

Published on Sep 18, 2012

A Short Rant About Coding Conventions

Published on Sep 13, 2012

Comparing a while loop against a foreach loop of an array

Published on Sep 12, 2012

What I Learned This Summer

Published on Sep 7, 2012

It's LEMP not LAMP!

Published on Sep 6, 2012

PHP: Require/Include vs Autoloader

Published on Aug 29, 2012

CakePHP Version Comparison with PHP Version Comparison

Published on Jun 25, 2012

Building A Scalable Queueing System With PHP

Published on Feb 14, 2011

Maintaining a session in a session-less environment

Published on Jan 17, 2011

The flaws of using isset()

Published on Apr 8, 2009

Re-map key/value array data in PHP

Published on Mar 19, 2009

How to create a socket server in PHP

Published on Mar 2, 2009

StringExtractComponent for CakePHP

Published on Feb 28, 2009

Facebook Development and $_SERVER['HTTP_REFERER']

Published on Feb 15, 2009