i set up a page that i can enter in data and it will generate a txt file with this data in it on my site. Then i made another page to edit these files if i want to. The only thing is when the first page generates the text files they don't have public rights, so i have to go back with my ftp program and change the rights so i can edit them with my edit page.
here's the code i have to generate the page.
if ($file=fopen("$fname.txt", "w+")) {
fputs($file, $data);
fclose ($file);
is there another attribute then w+ or do i set something. i think the rights number i can put on directories i use is 777, but how do i make it give all rights to these text files?