Wordpress - pureform.wordpress.com - Adventures in PHP / DHTML / CSS and MySQL

Latest News:

Make prototype.js’s toQueryString method php safe 10 Jul 2009 | 10:49 am

LAST UPDATED APRIL 12, 2011 One hurdle I came across today is Prototype’s Hash.toQueryString() method, which turns a hash into a query string [bet you couldn't have guessed that ;-)]. The wall I ran ...

Binding your setTimeout methods in JavaScript using Prototype 21 Apr 2009 | 08:59 am

Never mind, use this instead :-) www.prototypejs.org/api/function/delay Two features which are indispensable in Prototype are it’s bind and bindAsEventListener functions. I’m not going to write abou...

Memcache & MySQL PHP Session Handler 9 Apr 2009 | 10:36 am

LAST UPDATED MAY 17, 2009 I have recently read Cal Henderson’s book, Building Scalable Web Sites, and was inspired 6 ways from Sunday on just about every approach I take to web development. I highly ...

Simple Image Resize Calculator Function 9 Jan 2009 | 02:11 pm

Here is a simple function to calculate the width and height of an image given the constraints you want the image to fit in. This is great for creating thumbnails which need to fit into a specific heig...

Setting up your localhost as example.com 15 Jun 2008 | 10:39 am

Often times when people install WAMP [or LAMP] stacks on their machines, they’ll commonly use http://localhost/ to access their local server. I did so for years until I started working with dynamic su...

Using Memcache with MySQL and PHP 22 May 2008 | 08:37 am

Memcache is a great caching tool available for nearly every scripting or programming environment. I use it with PHP to speed up some applications I have written by completely avoiding asking the datab...

Use one DB connection on your custom wordpress install 12 May 2008 | 01:30 pm

Like most people who use WordPress, I have hacked a few installs 6 ways from Sunday for some of my projects. While digging through my hacks I had noticed that the script was connecting to my database ...

Make your website completely UTF-8 friendly 24 Mar 2008 | 05:59 pm

LAST UPDATED JUNE 15, 2009 Running an Internationalization / Localization [or i18n / L10n] friendly website can be tricky, and sometimes downright maddening for those who haven’t yet delved into the ...

Never use ORDER BY RAND() again! 6 Mar 2008 | 01:27 pm

I have been guilty of using ORDER BY RAND() in MySQL queries to return random records from time to time, but everyone knows to avoid it like the plague. For those who agree with me, aside from using i...

Installing memcache on Windows for PHP 11 Jan 2008 | 09:43 am

LAST UPDATED SEPTEMBER 11, 2010 Installing memcache on Windows XP / Vista is kind of like voodoo for those of us who are not disciplined with compiling code from source. I initially attempted to inst...

Recently parsed news:

Recent searches: