files created for user other than "nobody" or "www"
Just wanted advice on something.
I have to interact with the file system with the application I'm writing and need to be able to create files and modify them as I like.
Fwrite() and fopen() will always creates files with permissions for user "nobody", "www", "httpd", (or whatever). I don't want these files with permissions set to these users but I want to be able to control what "user" will the file belong to.
How can I do that?? I'm looking at the ftp functions of php to use. Am I on the right track here ??
Any short suggestion would be great!!
Is there something like fwrite() in the ftp functions of php??