Try adding in a '\r' as well. This stands for a carriage return and '\n' means a line feed. The '\r' is necessary if your viewing the log file with something like notepad, etc.
eg; fputs ($sysname_log, $time - SystemName: $sysname\r\n"); Cheers -----Original Message----- From: MAAS [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 16 July 2002 12:22 AM To: [EMAIL PROTECTED] Subject: [PHP-WIN] fputs - need help!! Hi I use this line fputs ($sysname_log, "$time - SystemName: $sysname\n"); I would like to get a log file, and everytime I refresh this page it will make a new line and write $the local time - SystemName: $sysname So after a while it will look like this $the local time - SystemName: $sysname $the local time - SystemName: $sysname $the local time - SystemName: $sysname BUT, this is not working, I donīt get a new line, everything is on the same line. Why?? I use WIN2K and IIS. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php