--- On Mon, 9/29/08, Pete <[EMAIL PROTECTED]> wrote: > I am having problems writing a file (in fact, it's a > Google sitemap) to a site. > > I know that it has something to do with permissions and > owners. But how can I see what the settings are for this > file? And what "owner" will PHP be known as? > > -- > Pete Clark
That depends on the operating system of the server which provides your web hosting. In most cases you will have a particular user for login/SFTP/scp. The webserver user is normally different (a good thing) and many Apache installations will use a nonprivileged user such as "nobody" or "apache" or "httpwww" or something similar. If you have command-line access (ie ssh) to the server, you can perform some basic commands (ie Linux or Unix's ls -l) to see the permissions and ownership of your files. If you don't have this access, your SFTP/scp (you aren't still using regular unsecure FTP right?) client program likely has a command to see and possibly set some values. As always, be careful with ownership and permissions. As soon as you have a file or directory which can be written by PHP, there is an opportunity for an outsider to abuse it. James