Author Topic: PHP owns again  (Read 1806 times)

ober

  • Ashton Shagger
  • Ass Wipe
  • Posts: 14305
  • Karma: +73/-790
  • mini-ober is taking over
    • Windy Hill Web Solutions
PHP owns again
« on: May 29, 2012, 10:22:17 PM »
I parse a lot of files and I was doing it all manually, reading in each line of the file, splitting on commas, processing.  Then the client uploaded a file that had commas in the data I was reading.

http://www.php.net/manual/en/function.str-getcsv.php

I made one change from explode to that and it fixed everything.  Booya.  There is also http://www.php.net/manual/en/function.fgetcsv.php if that is of any interest to anyone.