Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fopen and specify a user???

Status
Not open for further replies.

sndkick

Programmer
Nov 1, 2000
71
US
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top