As logs are like ([:alpha:]+\n)*, there's always a trailing newline character which caused the output logfile to be cleared and nothing was written into it.
It hasn't been cleared. The file contained a few lines from my tests, when I started the php script directly on the command line. Actually, nothing happens to that file, when I use "w+". I use php for sysadmin tasks, so I'm "normally" familiar with opening and writing to files. But this behaviour really suprises me. Stefan -- ***************************************** in-put GbR - Das Linux-Systemhaus Stefan-Michael Günther Moltkestraße 49 D-76133 Karlsruhe Tel./Fax : +49 (0)721 / 83044 - 98/93 http://www.in-put.de ***************************************** -- 10 GB Mailbox, 100 FreeSMS http://www.gmx.net/de/go/topmail +++ GMX - die erste Adresse für Mail, Message, More +++