Skip to content

Instantly share code, notes, and snippets.

View cherihung's full-sized avatar

Cheri Hung cherihung

View GitHub Profile
<?php
/*
* Converts CSV to JSON
* This is forked from @robflaherty's csv-to-json.php gist: https://gist.github.com/robflaherty/1185299
* Fork Modification $feed = $_GET["file"] to fetch feed url via a url variable https://gist.github.com/cherihung/5287225
*/
header('Content-type: application/json');
// Get CSV feed location in query string passed