0
I made a file with fopen(); and I need it to be downloaded on the user’s computer and deleted right away, and it is necessary that the file name is in a variable, because the file name will vary depending on the user.
0
I made a file with fopen(); and I need it to be downloaded on the user’s computer and deleted right away, and it is necessary that the file name is in a variable, because the file name will vary depending on the user.
Browser other questions tagged php filing-cabinet variables download delete
You are not signed in. Login or sign up in order to post.
You can show your code and what doesn’t work?
– brasofilo
use unlink("directory/filename.ext"); or if it is in the unlink folder("filename.ext");
– user60252
related https://answall.com/questions/114254/download-de-arquivos-em-php
– user60252
attribute download from Html5 https://www.w3schools.com/tags/att_a_download.asp
– user60252