Hello, I have a file on my server which requires to be downloaded with different name depending of the username:
-paul must download paul.zip
-jim must download jim.zip
but they all download the same file.zip
I currently does that:
header('Content-Length: ' . filesize("file.zip"));
header("Content-Disposition: attachment; filename=username.zip");
But it seems than php can reach it's time limit this way... Is defining a big time limit, the only way to solve that problem ? Can't memory problem appen ?