Hello!
I have a file-upload script in PHP that copies an uploaded file from the temp directory, into a specified location on my site. Recently i noticed that some of the uploaded files show apache as the owner and not my username. I have been racking my brains trying to figure what I did to mess this up and I can't see my mistake.
Can someone with this kind of experience explain the following to me please:
1) Is there a specific way to tell PHP to copy the file as a particular user instead of defaulting to apache (or nobody)?
2) should I be using PHP's FTP operations to do file upload for any security or performance reasons?
Thank you in advance for any help!
Shaheeb R.