Erythromycin can be administered orally, intravenously, or topically. The form and dosage depend on the type and severity of the infection. Oral erythromycin should be taken on an empty stomach for better absorption unless it causes gastrointestinal upset, in which case it can be taken with food.