25 Jan
2005
25 Jan
'05
4:46 p.m.
$file=fopen("/tmp/dhcp.log","w+");
Try changing "w+" to "a".
Mode "w+" means that the filepointer is set to the BEGINNING of the file so every separate flow coming from stdin is overwriting the file again and again. Mode "a" is append mode (filepointer at the end, appending to the file).
Yop, Thanks, that's it!! Although w+ should have worked, too. Even if the messages were written to the beginning of the file. Who cares, it works! Stefan -- GMX im TV ... Die Gedanken sind frei ... Schon gesehen? Jetzt Spot online ansehen: http://www.gmx.net/de/go/tv-spot