title: PHP - Read every line in a CSV, take the data and Post/CURL each line one by one
body: <p>I have about 14,000 lines in a CSV file.</p>
  
  <p>Each line is formatted like this:</p>
  
  <pre><code>Firstname Lastname,UUID
  Firstname Lastname,UUID
  </code></pre>
  
  <p>I want to Post/CURL to a url like:</p>
  
  <pre><code>http://some.url/directory/file.php?name=Firstname%20Lastname&amp;uuid=UUID
  </code></pre>
  
  <p>I have tried doing this a few ways, but I always run into an issue - what's a good way to do this, and I don't want to attack the URL by sending 14,000 requests at once.</p>
  
  <p>I do not need any data back from each posting, I just need to send the data over to the PHP file so it can be analyzed.</p>
  
  <p>NOTE: Each post means a mysql query will be analyzing the data, so I don't want to flood the server with 14,000 mysql requests at once either - more reason why I might want to throttle this.</p>
  
  <p>I just have to do this one time ever.</p>
  
  <p>Would something like <a href="https://stackoverflow.com/questions/10481087/pull-data-from-csv-file-and-submit-each-row-to-url-with-curl">pull data from csv file and submit each row to url with curl</a> be a good place to start?</p>