title: how to add support to download a file on a php page?
body: <p>We want to support a feature on our php page such that when user clicks on a button on the page, we  will automatically generate some data into a file and download the file to the client side. A lot of websites has such feature today (for example, download chrome image to install on client machine), how to achieve that in php?</p>