Hello Tristan,

Monday, January 12, 2004, 2:30:15 PM, you wrote:

TPrsc> What I want to do now, is allow the other site users to upload files to
TPrsc> that same directory...
TPrsc> From what I'v estudied on line, I can't do this, but I'm not convinced...
TPrsc> Anyone know if this os possible, via a web based form?

Depends on the configuration of your server. Apache as standard will
run as "nobody", so when files are uploaded that is who owns them -
nobody. This user has very limited access rights and you won't be able
to move the files to anywhere that isn't pretty wide open.

Some hosts (well, Pair Networks at least) offer a PHP wrapping script,
which allows you to run PHP scripts as your local user, so you can
upload files anywhere - this is what I use and it's great.

Alternatively, you could upload them to a temp directory (within your
web root) and use a CRON job to move them where you really want them
at set intervals, again if executed with the right permissions this
would also work.

-- 
Best regards,
 Richard                            mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to