On Fri, 27 May 2005 11:59:53 +0100 symbulos <partners@xxxxxxxxxxxx> 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! You are going the right way. Put an index.html file in that directory that redirects people to your home page or whereever. You could alternatively restrict the directory with password access. -- Michael -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php