thanks, I think that's where I can find the solution, it's a unix and maybe php is not the correct user? So maybe php is: user "nobody" and user "nobody" does not have the right to write to my directory. I think I can't change the php.ini file (it gets used for a lot of sites) so I probably have to make an ftp connection and upload the file from there. am I right?
Leo Kuiper www.koelwebdesign.nl ----- Original Message ----- From: Grant Johnson <[EMAIL PROTECTED]> To: koelwebdesign <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]