Programming and Scripts

Some scripts and other programming ideas.

Simple Function Testing and Debugging in PHP

Firing a function from your browser The concept is as simple as firing a function from your browser, and it leans on PHP's call_user_func_array. I'm going to outline the concept as I have implemented it. This exact implementation... Read more »

MySQL Optimization - A Little Tip

Some simple suggestions Well I don't consider myself an expert, I do have experience with working with larger datasets and there are a couple of things that I always do to keep queries performing well. Optimize Queries with EXPLAIN Explain... Read more »

PHP Frameworks and A Very Nice Application Flow Chart

The Flow Chart CodeIgniter looks to be an interesting framework from the people behind Expression Engine. My interest was peaked when looking through their expansive documentation and coming across the following diagram: This... Read more »

Xdebug debugger for PHP, v2 RC1

Happily, release candidate 1 of Xdebug 2.0 was released on Sunday. I've downloaded the .dll for my WAMP setup and things are looking good with this new version. If you're worried about the speed of your app, or happen to be looking for... Read more »

Reducing HTTP Requests

HTTP requests and data packets First, a quick look at just what we are talking about. Most of this is taken from CSS Sprites, Background Images and Website Optimization. Packet size and http requests From Web Page Design and Download... Read more »

On PHP - My Thoughts

Now I see that Tim Bray has written On PHP, where he states: ...based on my limited experience with PHP (deploying a couple of free apps to do this and that, and debugging a site for a non-technical friend here and there): all the PHP... Read more »

PHP and MVC without the OOP

Before I get into this, and you serious programmers get too worked up, I realize that MVC was spawned in an Object Oriented Programming (OOP) world, but the fact is that the ideas behind MVC concepts can be applied to procedural code and... Read more »

Hijacking Requests with Ajax

Posting in the weblog over at DOMscripting, Jeremy states ...you should just be building old-fashioned page by page submissions before hijacking them with Ajax, and then goes on to add Plan for Ajax from the start. Implement Ajax at the... Read more »

Debugging Server Side Ajax Functions

Client side Debugging JavaScript can be a hairpulling experience, but with the likes of Firefox and it's Javascript Console and Dom Inspector, one has some decent tools for cleaning up errors. And there is always the alert(someVar) when... Read more »

Get Your PHP Cake - MVC for PHP

PHP Cake is a framework developed by Michal Tatarynowicz and based on Rails. With 8 releases this month alone, the code is rapidly developing into something that will be very useful for people who want to develop easily in PHP using... Read more »

Sorting Tables

Get sorted Well, I knew this function existed somewhere in the back of my head because I knew to search for it. It did the rounds some time ago but it was so easy and useful that I thought what the heck, post it again. Stuart Langridge,... Read more »

Check out the blog categories for older content