I have a PHP page that allows me to edit the content of a page online (well, I am editing a text file that is included in the php page). The problem is I can't save the file (which is in a different directory "../txt_files". This is because when you log on through the web, you are user "nobody" (usually).
Is there a way to fopen the file but specify a user? I have a user account that has write access to that folder, but I don't know how to specify it over the web. I could just FTP in and change the page, but this is what I'm trying to avoid.
I want to somehow have my user open the file? Any way to do this?
Thanks.
Is there a way to fopen the file but specify a user? I have a user account that has write access to that folder, but I don't know how to specify it over the web. I could just FTP in and change the page, but this is what I'm trying to avoid.
I want to somehow have my user open the file? Any way to do this?
Thanks.