[Mediawiki-l] writing in a file without overwriting content

Jordi Domingo jordidr at gmail.com
Sun Apr 24 14:40:30 UTC 2005


Hi, I have modified the source to make that the action=edit
reads/writes from a file. I modify it with fopen in mode r+, and no
problem when the new text is long equal or less than old text, but
when is major it overwrites the old text as I want, but also the
following. There's any function to write something in a file but not
overwriting it?

Also, as I now don't care of content in bd, all the conflicts of
simultaneous users handled by Mediawiki in EditPage.php now have to be
handled by me, right? (with flock, I suppose)

Thanks in advance

Jordi



More information about the MediaWiki-l mailing list