project-open-data / csv-to-api

Proof of concept to dynamically generate RESTful APIs from static CSVs
http://labs.data.gov/csv-to-api/
326 stars 81 forks source link

Provide an alternative to str_getcsv #9

Closed waldoj closed 11 years ago

waldoj commented 11 years ago

The only thing that's keeping this from working on systems running PHP 5.2 is the use of str_getcsv. It's a centrally important function (it's the heart of the program), but there are workarounds that would make it possible for this to be used on older systems. PHP 5.3 was just made the default version in major Linux distributions in the past year—no doubt there are government systems for which that's a real obstacle. Use a drop-in replacement for str_getcsv on systems that do not already have that functionality.

benbalter commented 11 years ago

Wrote this code a while back, merged in and tested.