title: How to edit (replacing would be fine) a row in a .csv file using php?
body: <p>So I've looked at fputcsv but it seems to replace the whole file. Is there a way that a I can replace or edit a particular row in a CSV file using PHP? I do NOT want to upload (as an array or some other data structure) the entire CSV edit the upload and then replace or overwrite the file. I want to edit the CSV file in place. </p>
  
  <p>For example if I had example.csv that looks like: </p>
  
  <pre><code>Name  Amount Price
  Chair 500    20.00
  Boat  20     20000.00
  </code></pre>
  
  <p>And I wanted to replace the amount of chair's to 100. How would I go about that by just editing the CSV file? Can I do it without uploading the entire file. I'm avoiding that because I'm thinking this is going to be a rather large file and changes may occur frequently. </p>
  
  <p>Also I am saying upload this might be poorly phrased as this is all done on the server side not the client.</p>