This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 |