Im using this script to write to a file, which doesnt exist:
$fi=fopen("$dir/$id", "w"); fwrite($fi, $data); fclose($fi);
However, when it creates it, it is 644 CHMOD. How can i make it so it is 666?
straight out of the php manual use it 😉 chmod ("/somedir/somefile", 0666); hope that helps you
Yup. Thats it, thanks for the help!