some experiments in php and ruby