Hi,
I need to generate a file that contains informations a user may choose, and then allow the user to download this file.
But I'm actually facing some problems : initially, I wanted to use a random name (and use the file_exists() command) to be sure that the file doesn't exist.
Then, create it in /tmp.
I would just need to give a link to this file and it should work, the user could download it.
The problem is that it isn't very user-friendly to give a file with a random name, I would prefer a nicer one (such as "playlist.ext or so").
(only way I've found : create a random directory name and then the file in this directory. Is this a solution ?)
I am perhaps totally wrong in the way I'm trying to manage it, and would appreciate any help :-)
Thanks a lot !
Eric