PHP , What is the difference between fopen r+ and r ! does it matter if i used r+ when not intending
- by Naughty.Coder
when I use fopen function , why don't I use r+ always , even when I'm not going to write any thing ... is there a reason for separating writing/reading process from only reading ..
like , the file is locked for reading when I use r+ , because i might write new data into it or something ...
another question : in php manual
a+ : Open for reading and writing;
place the file pointer at the end of
the file. If the file does not exist,
attempt to create it.
What is supposed to be read if you are at the end of the file ..(pointer at the end) !!?
where to learn more about the filesystem thing .... it's confusing