Jump to content

Changing owner of uploaded files


carlg

Recommended Posts

I am using php with apache.  I have an application where the user uploads files.

 

When the files land on my linux server, they are owned by apache who is the username that actually runs the apache server.

 

What if I want the files to be owned by a different user? Is there a way?

 

I use move_uploaded_file to rename the file once it lands.  I know that php has a chown function, but you must be root to use it.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/81938-changing-owner-of-uploaded-files/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.