RE: [PHP] extracting data from text file

2002-07-01 Thread Beverly Steiner
Here's one way assign each line: "; echo "state is $state"; echo "city is $city"; echo "comapny is $company"; echo "division is $division"; echo "url is $url"; echo "email is $email"; fclose($whattoread); ?> Bev -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sen

Re: [PHP] extracting data from text file

2002-07-01 Thread Pushkar Pradhan
Just use file(), this is most appropriate for reading file line by line. http://www.php.net/manual/en/function.file.php > > On Monday, July 1, 2002, at 05:17 PM, [EMAIL PROTECTED] wrote: > > > I have trend this but it does not work properly > > > > $fp = @fopen(file.txt,"r"); > >

Re: [PHP] extracting data from text file

2002-07-01 Thread Erik Price
On Monday, July 1, 2002, at 05:17 PM, [EMAIL PROTECTED] wrote: > I have trend this but it does not work properly > > $fp = @fopen(file.txt,"r"); > $line = explode("\n",$fp); > $valueC = "$line[0]"; > $valueST = "$line[1]"; > @fclose($fp); What er