Re: Uploading files / processing with a PHP script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ron Piggott (PHP) wrote:
When I upload a file into an application I am writing with the HTML form
command

<INPUT NAME="userfile" TYPE="file">

and then give the PHP command

move_uploaded_file( $userfile , $destination_file_name);

the owner of the file is 'www'.  Is there any way I am able to
automatically change the owner of the file to my FTP login identity (for
example 'rpiggott')

As far as I am aware only the root user can change the owner of files. You could set up a very specific sudo command to allow the www user to chown files to rpiggott but that's beyond the scope of this mailing list (plus I'd have to look it up and you can do that just as well as I can). Of course that would need you to have root on the server in the first place.

-Stut

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux