Forum Moderators: coopster
When creating text files in php the file has a username and group setting showing up on my server. (username- nobody group 99)
This is different to the username and group settings on files created in ftp. i.e. directly on the server. (where my login settings are used)
So I have to set chmod 0777 on my php created files that I want to edit later in ftp...
Anyone know how I can create the username and group setting on new files in php, so they are all the same?
Just to clarify: these are the file attributes showing up on my server:
file name-> myFile.htm
type-> HTML file
size-> 17422
owner-> nobody
group-> 99
permissions -> rw-r--r--
mod time-> Jun 15 12:50
=============================
It's the owner & group entries above that I was hoping I could specifyt in a php script....
Cheers!
The ownership of a file may only be altered by a super-user for obvious security reasons.
..using a reseller a/c and I assumed I was a super-user! it looks like the problem is that I am *not* because I cannot modify files on my server that are php-created with an chmod other than 0777 even through cPanel by the look of it.
So I can't get at a clients files (other than to read them) if he needs help - thought there may be a way around it.
Best regards, Steve.