PHP Prototyping

Apr 20

This has now been updated! Please check out the new post! So its been a while. Change of job, new babies, and other random events have filled my time. I think I’m ready to start blogging again and I’m hoping that this one really interests everyone. The one thing I like the most about JavaScript is prototyping. It kind of annoys me that PHP doesn’t...

Read More

PHP Benchmarking Redux

May 18

So after the comment from Jay in regards to my previous post about PHP benchmarking I decided to sit down and write a PHP class for my upcoming framework that handles benchmarking. Usage is is fairly simple and is as follows: $benchmark = \IMorf\Benchmark::getInstance(); $benchmark->startTimer('fullLoad'); $benchmark->startMemoryTracker('fullLoad'); /** *...

Read More

PHP Benchmarking

May 13

The most common way to benchmark in PHP is by testing the time the script runs with something like $startTime = microtime(TRUE); // Bunch of code goes here echo 'Runtime: '.number_format(microtime(TRUE)-$startTime, 3); In most cases this works. But I was looking to track a bit more then load time while testing my upcoming PHP 5.3 framework. So I created a little...

Read More

ActiveRecord in PHP

Mar 28

While writing the DB classes for Aero I thought it would add in a simple ActiveRecord example for easy creation and updating of database rows. Since Aero isn’t quite done I thought I would release just this class for anyone that would be interested in something like it. Its only about 200 lines of code (Commented – only half that without them. This...

Read More

HTML Anchors

Mar 24

A topic that doesn’t come up that much anymore are anchors. I don’t find an occasion all that often that I have to use them but every now and then I will get a client that has a page that is fairly long and they want to include them. In a specific instance that came up this week the client has a CMS that they use to enter content for their site. The...

Read More

Welcome to ChristianSouth.com

Mar 22

First let me take this change to welcome you to my new blog. This will be a place for my random thoughts on programming and maybe every now and then something outside of the tech world. I’ll add different tips and tricks I come across as time goes on. As time goes on I may even start taking requests for tutorials. For the time being please know that this blog...

Read More