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); > > http://www.php.net/manual

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

2003-03-05 Thread Richard Kurth
Hello Chris, Don't know how I did that but it worked strange. Maybe the reason I am getting the extra line is because I am testing the script on Windows 200 and not on a good Linux box. Wednesday, March 5, 2003, 1:37:43 PM, you wrote: CW> On Wed, 5 Mar 2003, Richard Kurth wrote: >> This script

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, wi

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[2]: [PHP] remove a line from a text list

2003-03-05 Thread Richard Kurth
Hello Jason, Wednesday, March 5, 2003, 12:38:39 PM, you wrote: JW> 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 ext

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 > > $rec

[PHP] remove a line from a text list

2003-03-05 Thread Richard Kurth
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 $recordsarray = file($members); $remove = "[EMAIL PROTECTED]"; $temp