I am creating an online voting platform. My clients will need an offline version of my website where users come and vote, then the results are collected by entering a passkey into the site and extracting a spreadsheet file (or whatever).
I know how to create the static-code (HTML, CSS, and JS) for the offline webpage in PHP, except for how to put that resulting code into individual files.
How do I write individual files in PHP (not saving on the server), compress them, and then send the compressed package over the network?