I want to parse, process and then overwrite only 1 specific column in a csv file, I'm fine with the first two steps but am having issues with the third. Here's what I have so far:

PHP Code:
<?php
$fh 
fopen("data.csv""r");
$row 1;
while ((
$data fgetcsv($fh1024",")) !== FALSE) {
$get $data[2];
$uc ucwords(strtoupper($get));
echo 
$uc;
echo 
"</br>";
}
?>
That displays fine, I just need it to be written back into it's original column. I know this is done with fputcsv, but I can't seem to get it to work:

PHP Code:
$fp fopen('data.csv''w');
fputcsv($fp$uc",");
fclose($fp); 
That wipes the file.