Hosting e-commerce export code

how does exporting code with e-commerce work? for example:

my client has a Website where people can order their food online. What if i export the code. what happened if i would export it, and host it on another server? would it still be functional and would he receive the orders per mail?

if not how could you do this?