Progressive Upload with PHP and APC

A year or two ago, I was given the task to make a Progress Bar work with PHP. From my own research a few years ago, this task was impossible and so I thought I would need some sort of Flash + Javascript + PHP combination to make this happen. Instead, I found a nice [...]

Tags: , ,

Simple Optimizing Tips for PHP Part III – Commenting

As we write PHP code (or any language for that matter) we begin to start thinking about optimizing code. But even though our intentions are for “the greater good”, we sometimes miss things that should be obvious. Today’s article takes a look at: Commenting Commenting, to some, doesn’t make sense to be an “optimizing” tip. [...]

Tags: , , ,

How to Fix svn: Directory __DIR__ containing working copy admin area is missing (and other misc SVN shortcuts)

So, you have a directory called myclass, you’ve added the directory to SVN, and then you issue a commit. During the commit, you get a message saying either a file is outdated, or a directory already exists that causes this commit to fail. No big deal right? So you fix those issues and try to [...]

Tags: , ,

MySQL Quick Reference

This is just a simple quick reference for normal mysql routines that I forget from time to time and have to lookup. Indexes Adding a “normal” index via CREATE INDEX mysql> CREATE INDEX [index_name] ON tablename (index_columns); Example mysql> CREATE INDEX fname_lname_age ON people (firstname,lastname,age); Adding a unique index via CREATE INDEX mysql> CREATE UNIQUE [...]

Tags: ,

Simple Optimizing Tips for PHP Part II – Recursive Functions

As we write PHP code (or any language for that matter) we begin to start thinking about optimizing code. But even though our intentions are for “the greater good”, we sometimes miss things that should be obvious. Today’s article takes a look at: Recursive Functions Functions are one of the most important tools we have [...]

Tags: , , ,