Hi,
I hope that someone can put me out of my misery.
I have created a script that uses standard I/O functions to create a file.
$fno=fopen('mypage.html',"w");
fwrite($fno,$data);
fclose($fno);
This works fine as I have the folder permissions set to 777.
However, when I try to edit the file from an ftp client, I get permission denied. I can rename it, and delete it from ftp, but not edit and save it. I added a chmod to my code and set the permissions of the generated page to 777 as a test, but alas the same result.
Does anyone have any ideas?
Just as a point to note; it seems that the created file is set to owner 'nobody', and not the domain owner account. I tried to use chown to change it to the domain owner account (which is the ftp account), but received a permission denied in the script. I do not know if this is something to do with it, as quite frankly, it is way above my head.
Thanks
Adam