[PHP] Setting variables from a text file

2001-11-14 Thread Rudi Ahlers
Hi Say I have a text file, separated by | ( a pipe). Now, I want to extract that info, in the form of variables. I can extract and display the info in the text files, but that's not what I want. I want to be able to tell it that the first entry should be variable1, the second entry should be

Re: [PHP] Setting variables from a text file

2001-11-14 Thread Jeff Lewis
- Original Message - From: Rudi Ahlers [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 3:08 PM Subject: [PHP] Setting variables from a text file Hi Say I have a text file, separated by | ( a pipe). Now, I want to extract that info, in the form

RE: [PHP] Setting variables from a text file

2001-11-14 Thread Matthew Luchak
:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 3:12 PM To: Rudi Ahlers; PHP General Subject: Re: [PHP] Setting variables from a text file Someone may have a better way but you can read each line (assuming the file uses \n for a new record) and use: arrayname = explode

Re: [PHP] Setting variables from a text file

2001-11-14 Thread Rudi Ahlers
General [EMAIL PROTECTED] Sent: Wednesday, November 14, 2001 10:11 PM Subject: Re: [PHP] Setting variables from a text file Someone may have a better way but you can read each line (assuming the file uses \n for a new record) and use: arrayname = explode(|,$variable_holding_line_from_file