How to make files available for download in PHP?

Asked

Viewed 1,474 times

1

I wonder if it is possible to create files dynamically and make them available for download in PHP.

Basically, I am recovering some data from the Database, and my idea was to automatically create a file with this information, allowing the user to download the file in question (that is not in a forced way).

  • I think it is possible with the download attribute in a link, <a href="" download>

  • 1

    here you can find a download script with php https://answall.com/questions/114254/download-de-arquivos-em-php

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.