If my server is running in php suexec mode can I use fopen, fwrite and fclose to a file that has the permission set to 644?
fwrite in suexec mode
Yes you can. I have PHPsuexec on my site and has a file using fopen, fwrite and fclose set at 644, and it's totally functional