> while (!feof ($fp)) {
>         $line = fgets($fp, 4096);
>       $data = explode(",", str_replace("\"", "", $line));  //using
> str_replace to get rid of quote marks
>    //following line to see if data is correct
>         echo $data[0]." ".$data[1]."<br>";


> }
> fclose($fp);

You should make sure you don't accidentally delete some double quotes inside
the strings - maybe
would be a better option.


PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to