Sharding php script