You are here: PHP downloading files « All PHP « IT news, forums, messages
PHP downloading files

Posted by Micko on 11/23/06 12:59

I want to write a script that doesn't let anybody download file but only
the logged in users. I wrote a script for downloading the files but it
still lets someone to enter a URL and download it.
Example:
My file is www.server.com/uploads/bla.txt
The logged user gets it throught www.server.com/download.php?file=bla.txt
But someone can still download it by typing in the URL

Can this be forbidden, maybe with chmod for reading and only allowe
reading and not users it for server or maybe during the download?

How to solve this?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация