adding PHP function to get revision history

adding PHP function to get revision history