Convert the IPCount script to PHP and add in comma-splicing