|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Article Discussion: Generating One-Time URLs with PHP
Generating One-Time URLs with PHP If you have any questions or comments about this article please post them here.
. You can read the article here . |
|
#2
|
|||
|
|||
|
I suppose the author didn't consider storing the file behind the webroot or in a database and stream it to the user when appropriate.
|
|
#3
|
|||
|
|||
|
Dear daholygoat,
Storing the file "behind" the web tree is exactly what I did in this article (/tmp). As you understand, storing it "inside" the web tree would have taken the whole protection mechanism away. Using a database would have been another, equally valid, solution to the problem. Actually, you could very easily edit the scripts in the article to stream data from a database instead of directly from the filesystem. However, I choose to use a plain file to keep the article as simple and straight-forward as possible. Thanks for your interest in the article, hope it was of at least some help ![]() Best, Dan |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > Article Discussion: Generating One-Time URLs with PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|