why aren't you storing this stuff in mysql? The problem with what you have now is that there are no file locks (flock), so you're going to be getting into a whole lotta mess with those kind of file writes with traffic.
Anyway, in answer to your original question, a line break is \n. *always* in within double quotes, never single eg
fwrite($fh, $_SERVER['REMOTE_ADDR'] . "\n");
__________________
For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)
All models are wrong, but some are useful. George E.P. Box. p202
|