Re: [PHP] Question about a text file and foreach

2003-03-18 Thread David T-G
Jim -- Please don't hijack threads. This message has nothing to do with calling a function in a page via GET. When you wish to ask a fewsh and unrelated question, please send a fresh and unrelated message. [I keep hearing good things about Evolution. Doesn't it have decent threading?] ...and

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread Erik Price
Jim Greene wrote: Hi All, I have a text file that has entries like the following: user1:mbox1: user1:mbox2: I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2'; I then want to print out the data in the $mboxs variable (array) I am trying to use foreach but it does not work.. I

Re: [PHP] Question about a text file and foreach

2003-03-18 Thread Jim Lucas
You need to split() the variable ($mboxs) on newlines "\n" Jim - Original Message - From: "Jim Greene" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, March 18, 2003 8:22 AM Subject: [PHP] Question about a text file and foreach > Hi All, > I have a text file that has entries