Re: [PHP] remove a line from a text list

2003-03-05 Thread Jason Wong
On Thursday 06 March 2003 04:18, Richard Kurth wrote: This script will remove a line from a text list of email address and then re-write the list. The only problem I am having is when it re-writes the list it adds a extra line between each record. How can I stop this from happening

Re: [PHP] remove a line from a text list

2003-03-05 Thread Chris Wesley
On Wed, 5 Mar 2003, Richard Kurth wrote: This script will remove a line from a text list of email address and then re-write the list. The only problem I am having is when it re-writes the list it adds a extra line between each record. How can I stop this from happening Your code works as

Re: [PHP] remove a line from a text list

2003-03-05 Thread Leif K-Brooks
Note: implode() can, for historical reasons, accept its parameters in either order. For consistency with explode(), however, it may be less confusing to use the documented order of arguments. Chris Wesley wrote: The above line: I'm assuming you want to collapse $recordsarray into a sting,

RE: [PHP] remove a line from a text list

2003-03-05 Thread John W. Holmes
Your code works as you'd expect ... on my mod_php 4.2.2 Apache 1.3.26 setup. It's amazing though, because implode() is used incorrectly. See below: [snip] Try switching the arguments around in the call to implode(), to: $lines = implode('',$recordsarray);