Re: Client File Upload / Dowload
| From: | Catalin Trifu | Date: | Wed, 21 May 2003 13:55:58 +0000 |
| Subject: | Re: Client File Upload / Dowload | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148417@lists.php.net to get a copy of this message | ||
Hi,
For any directory that you would like to upload files to, the user under
which Apache/PHP
runs must have write access. from there you only have to specify the desired
path to save the
files when you save them, after upload (and checks of course).
So, all you need is to make sure that
/home/web.area is writable by the Apache user (usually nobody)
and of course to make sure the directory tree is traversable by that
user.
hope this helps,
Catalin
"Miguel Angelo" <miguel.angelo.lists@migas.mine.nu> wrote in message
news:20030521143502.M45855@migas.mine.nu...
> Hi everyone,
>
> Thankx for reading this.
>
> I'm build a PHP site and part of the site will have a controled area
where
> some users can upload and dowload files.
>
> The autentication part is already done using a Mysql DB, i would like to
> allow some users to upload/dowload files into a special directory not in
the
> web site home (in order to prevent direct downloads)
>
> for exemple in " /home/web.area "
>
> How can i do this ?? can anyone give me some pointers or links to examples
??
>
> Sorry if this is to newbie but i'm a php newbie
>
> Thankx, Stay happy
> Miguel
>