Ask a Question related to PHP Development, Design and Development.
-
Herouth Maoz #1
Is fwrite atomic or not?
I've seen answers both ways in the archive of this list, and I wonder
what is true.
Suppose I open a file in append mode - like a log file. Two different
HTTP connections fire up two different PHP processes which both open
the same file. Then they both do an fwrite( $fp, "some string" ).
Is the result serializable? That is, is one write guaranteed to be
appended after the the other? Or is there a chance that one will
overwrite the other and truncate the file - in which case, I'll need
an flock() even for the simplest log file.
What if I opened the file in some other mode, like "w" or "r+"?
Herouth
(If you answer, please make sure you cc to my e-mail, as I read this
list in digest mode).
Herouth Maoz Guest
-
fwrite() help needed
I am trying to write to a .rtf file form a php page. I can create a temp rtf file based on a template but i can only change one item on the page.... -
[PHP] using fwrite to create PHP files
I wish to use fwrite() to create a small PHP file. So far, when I attempt to do this, php parses the contents of the file that fwrite needs to... -
fwrite int or float
Is there some easy way to fwrite a 32 bit int or float? -- Ted Huntington Programmer Analyst I Main Library University of California, Irvine... -
fwrite not working in php3
hi there i have a little problem writing files on a php3 server this code worked yesterday but isnt $handle =... -
fwrite problem
Hi all, I am writing a small script which will run on solaris. I want to get the IP address and write it to a file log.dat. File is created fine...



Reply With Quote

