Re: [PHP] Sorry, really stupid question...

2002-12-28 Thread Michael J. Pawlowsky
Why not just put the carriage return before the names then. \nphil \nbob *** REPLY SEPARATOR *** On 28/12/2002 at 3:39 PM Phil Powell wrote: >I checked, and I am adding just "bob". Turns out to be a wacky logic >problem. > >nicknames.txt contains this: > >phil\n >bob\n > >Whe

Re: [PHP] Sorry, really stupid question...

2002-12-28 Thread Phil Powell
I checked, and I am adding just "bob". Turns out to be a wacky logic problem. nicknames.txt contains this: phil\n bob\n When "bob" leaves the chatroom nicknames.txt becomes: phil\n BUT.. apparently that's not it either; the carriage return is also somehow stripped out. So instead it's this:

Re: [PHP] Sorry, really stupid question...

2002-12-28 Thread David Rice
Hi Phil: It probably does what you are asking it to do. Have you checked the value of $nickname to see if you are setting it to "bob" or appending "bob" to it? i.e first time $nickname = "phil" second time $nickname = "philbob" HTH David On Saturday, December 28, 2002, at 02:24 PM, Phil Powell