Re: file upload, again
| From: | koelwebdesign | Date: | Tue, 13 Nov 2001 21:11:37 +0000 |
| Subject: | Re: file upload, again | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-14301@lists.php.net to get a copy of this message | ||
or can I copy a file doing something like:
copy file to http://user:pass@www.blah.com/blah?
well, I think you need a path instead of a webadress
Leo Kuiper
www.koelwebdesign.nl
----- Original Message -----
From: Grant Johnson <grant@amadensor.com>
To: koelwebdesign <leo@koelwebdesign.nl>; <php-db@lists.php.net>
Sent: Tuesday, November 13, 2001 9:43 PM
Subject: Re: [PHP-DB] file upload, again
> The web server user needs to have access to that directory. On NT,
> there are 2 of these users. On *nix, there is one. Giving these users
> access to write to that directory is not a huge risk.
>
> koelwebdesign wrote:
>
> >hi there,
> >I've searched the lists and forums for a couple of days now but nope...
> >when I upload a file all is well, it get stored in the tmp directory, the
> >filename and path get stored in the mysql database, however, it won't
copy
> >to the desired directory unless I give everyone write permissions to that
> >directory. offcourse I don't like this.
> >How do I tell php to use my username and password when copying the file
from
> >the tmp dir to the desired dir?
> >Do I really have to make an ftp connection first? or is there a more
simple
> >way?
> >How do you upload all those pictures to the webserver?
> >
> >thanks
> >
> >Leo Kuiper
> >www.koelwebdesign.nl
> >
> >
> >
> >
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>