|
Posted by McKirahan on 12/29/06 05:10
The documentation for "file_put_contents" contains this:
file_put_contents ( string filename, mixed data [, int flags [, resource
context]] )
and this:
flags can take FILE_USE_INCLUDE_PATH, FILE_APPEND and/or LOCK_EX
What isn't clear is how FILE_APPEND and LOCK_EX are used together.
This works:
file_put_contents($name,$data,FILE_APPEND);
but this doesn't:
file_put_contents($name,$data,FILE_APPEND LOCK_EX);
and this doesn't:
file_put_contents($name,$data,FILE_APPEND, LOCK_EX);
What am I doing wrong? I can find no examples that use both.
Thanks in advance.
Navigation:
[Reply to this message]
|