For versioning software I use subversion and when comes time to publish changes I just update the production branch and voilà the website’s update to the latest changes / fixes. The problem is that having a checkout copy in my document root by default exposes the .svn hidden directory and all its files.
The Problem Today I needed to have configuraion variables available across multiple PHP scripts / classes, I didn’t want to pass the array accross files or corrupt the global scope. The solution A this simple class that makes configuration varibles available throught out my application. It uses a singleton pattern so I know there is only […]
One of the problem I had recently was that I wanted to preserve actions in the history so that when users are hitting that back button it would revert to a previous states of the page that was updated using XMLHTTPRequest. Although this isn’t a new problem in ajax applications, I never really had a real need to fix it. A colleague of mine suggested using a library called Really Simple History (RSH), just thought I’d share how I was able to use it.