hello there, I have question regarding PHP programming.I hope you help me. Well I am using php on RH linux 7.2.My question is :How can I create a file in other users account space and read and write to that file when ever I need.Eg: My computer system has a user gst whose directory is /home/gst. Now how can I create a file and write & read to this file in that directory using PHP programming Apache server. waiting for your response.Bye & cheers. Gautam
Use: fopen('/home/gst/theFileName.txt', 'w');
You might have to set the right permissions to allow the Apache user to write to that folder.
Diego
Why would you ever want apache to be able to write in your user's directories? that is extremely dangerous.