hi
i want to copy a file using the command 'copy'. the owner of the new file will be 'nobody', what is very bad in my case (i want only owner to have accest to the file). i do not have access to the php.ini file where i could solve this problem. is there any way to copy a file and retain its ownership or create a new file that has a specified owner?
thanks in advance!
I guess you should try coping file as nobody and then use chown() function to change file's owner.
yeah, tried that but ended up with:
Warning: chown failed: Operation not permitted in test.php on line 5
i think i'll have to think out a different way to get the result need...
Maybe, by code, you are always "nobody" so you cannot change user.
Try creating a directory for each user using .htaccess for web security.