added php compress functions