Setup WordPress on Windows Azure

October 25, 2011

If you are looking for information on hosting WordPress on Windows Azure there have been a lot of WordPress tutorials popping up in blogs lately. Unfortunately many(most) of these posts contain misinformation, error, or are out of date. The good news is that the Microsoft Interoperability team hosts an official tutorial on deploying WordPress on

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