Always fun to know as a developer how much you coded, so here is a nice script I use to <censored>yse my own browsergame http://www.landofdestiny.com. It counts the amount of images, lines and characters so perfect for browsergames:
edit: place it in a folder and it will check that folder + all directories in it.
$map = "./";
private $ext_img = array();
public $directories = array();
public function __construct($map)
$this->map = $map;
$this->ext_img = array("jpg","gif","jpeg","png","bmp");