Port of Scott Czepiel's "spssread.pl" to PHP.