XAMPP is *NOT* a secure webserver, and is NOT suitable for public access. You will be hacked very quickly if you use it for public access.

Your problems are a result of misconfigured settings in your xampp software. Your problems are not related to using Zen Cart.