What is the difference between a penile ulcer and herpes?

Herpes is usually caused by the herpes virus, which is a viral infection and usually requires antiviral treatment, either topical topical or oral acyclovir tablets, while penile ulcers can be caused by bacterial infection, inflammatory irritation, etc. This condition requires oral anti-inflammatory medication or the application of erythromycin ointment for disinfection.