You are here: Re: Stopping users to see uploaded files « PHP « IT news, forums, messages
Re: Stopping users to see uploaded files

Posted by Jens Kleikamp on 05/27/05 16:40

<veröffentlicht & per Mail versendet>

symbulos wrote:

> Dear friends,
>
> we are using php for developing a small tool for uploading files for
> download
> (publications). Using the usual move_uploaded_file, the publications are
> loaded into a directory where the webserver can write / read.
>
> Unfortunately, that means every person who connects to the directory can
> see the files. If some of the files are for sale, how do you stop the user
> from seeing them / downloading them without permission?
>
> Is there any other way to upload files using php?
>
> Thanks in advance!

Probably you want to upload the files in a directory outsite the document
root, but read permission by the webserver user.
Then you can you use e.g. PEAR::HTTP_Download for sending the files to the
client.

Hope this helps, and sorry for my bad english. :)

cheers
Jens

 

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

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