Php55 fixes

A few fixes for warning messages now in php 5.5, replaced split() with explode() and changed method dfinition to static