Spread cream cheese onto 4 slices of bread. Top the cream cheese with a slice of pineapple and a slice of ham. Cover with the remaining slices of bread.
Heat the butter in a large skillet over medium heat. Fry sandwiches in butter until golden brown on both sides, about 4 minutes total.