Re: [PHP] Setting variables from a text file

2001-11-14 Thread Jeff Lewis
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); Then you can do assign the variables as such: $name = $arrayname[0]; etc Could be a better way from the list :) Jeff -

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