hey all i'm trying to make a site where people paste a CSV file directly into a textarea (say its called "original-text") and parse it, with my script then generating something from that. i know how to parse a csv file on the server (using fgetcsv) but not how to get the input from a POST variable INTO that fgetcsv. so far i've tried something like this, to no avail:
$file_handle = fopen("php://input", "r");
while (!feof($file_handle) ) {
$line_of_text = fgetcsv($file_handle);
echo $line_of_text[0] . '<br />';
}