Hi everybody,
I made a script called "download.php" to download files from a specific directory in my server. The idea is I don't want a direct links to my files. Call to the script will be like the following:
download.php?filename=test.wmv
test.wmv is stored in a directory called /files/
The script is working fine, but I have a small problem, I'm using the following statment at the end of my script to start the download:
header("Location: $url");
where $url is /files/test.wmv in our example above, It will just calls the file and starts the download, the question is:
How can I show the prompt for saving the file in which folder in the user's PC? because currently it'll just save the file in the temp internet folder
I want to give my users the ability to save the file in a folder they want.
Thanks in advance
I made a script called "download.php" to download files from a specific directory in my server. The idea is I don't want a direct links to my files. Call to the script will be like the following:
download.php?filename=test.wmv
test.wmv is stored in a directory called /files/
The script is working fine, but I have a small problem, I'm using the following statment at the end of my script to start the download:
header("Location: $url");
where $url is /files/test.wmv in our example above, It will just calls the file and starts the download, the question is:
How can I show the prompt for saving the file in which folder in the user's PC? because currently it'll just save the file in the temp internet folder
I want to give my users the ability to save the file in a folder they want.
Thanks in advance