Month August 2013

Vagrant bootstrap.sh for full LAMP stack with Solr 4

Just for reference, here is the bootstrap.sh file I use to bring up my vagrant dev box with Solr 4 and Jetty ready to go. #!/usr/bin/env bash apt-get install python-software-properties add-apt-repository ppa:ondrej/php5 apt-get update apt-get install php5 apt-get install php5-mysql…

PHP Interface example

I’ve never really come across the need to use an interface, and usually just use inheritance to extend whatever class I needed to. Recently though I needed a generic base caching class, which would have other classes implement there own…