Editing will not change ownership. Ownership is established by who creates the file initially, and from that point on can only be altered by a user with super-user (root) privilege. If the files are being created by your web application, they likely are owned by the web-server user, not your personal account. Therefore, I suppose you could write a little php web script to copy your script to a new file, so that the web-server user owns it, too, but that's getting ugly, isn't it?
Depending upon what you are trying to do, I suppose you could try using [man]cURL[/man] to read the files via a URL to the local host, but that seems equally ugly. :rolleyes:
Another alternative is to talk to the sysadmin types and get them to set the safe_mode_gid option to "on", and then make sure that your user ID and the web-server user ID share a common user group.