wrong user/group when files are created with fopen
Posted: Mon Mar 29, 2004 7:04 pm
When i use fopen() to open files, they have the wrong user/group, and can't modify them to where i have write priveleges. I'm on linux, and recently i've moved to a local server.
$open=fopen("file.php","a");
This will open the file, and let me write to it once.(What I write to it on the starting script) But if I call an fopen() to open it in a different script, I get the error that its not a valid resource. I'm guessing the reason is there is no write permission. How can i change the user/group from 'wwwrun/www' inside the script? or maybe change something else that makes files created by an fopen command 'me/mygroup'. Can someone help?
Archived topic from Iceteks, old topic ID:2193, old post ID:18577
$open=fopen("file.php","a");
This will open the file, and let me write to it once.(What I write to it on the starting script) But if I call an fopen() to open it in a different script, I get the error that its not a valid resource. I'm guessing the reason is there is no write permission. How can i change the user/group from 'wwwrun/www' inside the script? or maybe change something else that makes files created by an fopen command 'me/mygroup'. Can someone help?
Archived topic from Iceteks, old topic ID:2193, old post ID:18577