Taking Fourrts and Pantocid HP on the same day is safe for you, they don't interact harmfully. Since Pantocid HP is usually taken before food and Fourrts after food, the meal itself already creates a natural gap between the two at night.
Next Steps
If the two still feel too close together, ask your pharmacist or prescribing doctor for the exact gap they'd want between the two medicines at night, since that depends on your specific formulation.
Health Tips
Don't stop or reschedule either medicine on your own without checking with your doctor first.