title: Using PHP to create a offline version of my site's page
body: <p>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).</p>
  
  <p>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.</p>
  
  <p>How do I write individual files in PHP (not saving on the server), compress them, and then send the compressed package over the network?</p>