Tag Archives: Code

Calculating memory used by PHP to generate that page

Do you know how much memory those loops are using ? Why is this page taking so long to load ? Well with this simple PHP code you can daily benchmark different versions of your script to use the least … Continue reading

Posted in Code, framework, Technology, work | Tagged , , , , , | Leave a comment

Mootools Gallery ZoomBox Plugin

I needed a simple lightweight Mootools Gallery Lightbox, and after a few googles, I found nothing that suited my needs with out all the extra ‘captions’ and grouping and bloat. This is a simple zoom from start position type lightbox … Continue reading

Posted in Code, design, fun, javascript, Technology, work | Tagged , , , , , , , , | Leave a comment

Use PHP to find your mobile browser

I needed a quick way to include different files based on the if the visitor to a site is on a mobile device or a regular browser/computer. Every browser has a user agent depending on the operating system, browser and … Continue reading

Posted in apple, Code, fun, Technology, work | Tagged , , , , , | 3 Comments

Javascript URI Address Segment Selection

I use the great CodeIgniter, PHP Framework a lot, Most site’s now days I create use it. One of the many good things is that way it handles pages request’s and PHP $_SERVER['REQUEST_URI'] to find which page we are on. … Continue reading

Posted in Code, fun, javascript, Technology, work | Tagged , , , | Leave a comment

Using Mootools Request.HTML response Javascript using $exec

Javascript frameworks are great, no matter which one you use their all built to do more, quickly. I use Mootools for most of my JS needs, and something is I often use is the AJAX request functionality. Today I needed … Continue reading

Posted in Code, javascript, Technology, Uncategorized, work | Tagged , , , , , | Leave a comment

IP Addressing – know your External IP

I often want to know my IP address from when I am not, when I am not at Home/Work. I know that there are Lots of sites out there that will sett it to you, but I wanted to set … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

Non-Ascii charactors in my AJAX responses !?

A while ago, I co-wrote a large site with Ryan while I was working at Zipline Interactive, this site uses Mootools 0.98 as we found to be getting a lot of �������� all through the JAX requested response code. For … Continue reading

Posted in Code, design, javascript, Technology, work | Tagged , , , , , , , , , , , , | Leave a comment

Controlling Input with Mootools Javascript

On a project that I was recently working on, I had a series of text input boxes that I wanted to be numeric only fields. I have my PHP form validation to check that the data is numeric before entering … Continue reading

Posted in Code, javascript, Technology, work | Tagged , , , , , , , , , , , , , , | 6 Comments