My WordPress plugins

September 14, 2011

I attended a great Seattle WordPress Developer Meetup this evening and a hot topic was what plugins to use for various things. I decided that until we have an official WordPress Seattle Developer’s website I will post the plugins I am fond of here. Feel free to comment with better plugins or ideas for new

Introducing paz: a simple packaging and deployment tool for PHP projects on Windows Azure

September 9, 2011

Update (04-30-2012): paz has been combined with other tools into the WAZ-PHP-Utils project on Github. Please see there for further information. These days PHP works well on Windows Azure, and there are some great tools available in the Windows Azure SDK for PHP that will help you build, package and deploy your applications. Even though

PHP: Recursively remove a directory and all files and folder contained within

August 22, 2011

The rmdir function of PHP cannot remove a directory if it has anything inside of it, whether it be files or folders. The following method can be used to recursively remove all the files and folders from the directory, and will remove the directory itself. To use it simply copy the code into your application

PHP: Recursively create directories

August 22, 2011

The mkdir function in PHP is great for creating directories, but what if you need to create a new directory structure? For example, you run mkdir(“/this/is/a/path”) but only “/this” exists. mkdir will fail because /this/is/ does not exist. The way to solve this is to pull the path apart and check each segment to ensure

PHP 5: Recursively move or copy files

July 15, 2011

I was looking for a quick code example on recursively moving files with PHP and I only saw code snippets using PHP 5. I like using the new and powerful features of PHP 5 when doing file system interactions so I wrote two quick PHP 5 functions that will move or copy directories and files