Handling UTF-8 in JavaScript, PHP, and Non-UTF8 Databases

May 25 19 Comments Category: Development

Dealing with characters outside the ASCII range on the web is tough. It’s tough in other environments too, but particularly for web applications since text needs to move through so many places without being mangled — from user input, through JavaScript, into and out of PHP and string manipulation functions, into and out of databases. [...]

Simple File-Based PHP Caching

January 03 1 Comment Category: Development

Sometimes dynamic elements of a page can slow down page loading or use too many resources for re-running the code every page load to be practical. The sidebar of this site touches four databases to pull up the stats it shows, and the counter I just added to the header gets its count from a [...]