×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

PHP Parser

PHP Parser

PHP Parser

(OP)
Good Morning, i am looking for some sample code which i can adapt to do the following in php...

1) Open a source.csv file and fetch the data from row 1
2) the data from row 1 is to be passed into a variable which i then use as part of an api
3) the result from the api is to be written to destination.csv along with the variable
4) flag the data from row 1 on source.csv as done
5) move to row 2... repeats the process until all rows are processed.

Is there anyone who can point me in the right direction?

Many thanks

Brian

RE: PHP Parser

You make an excellent argument for using a database instead of a CSV file.

Without knowing the specifics of the CSV data (is it small enough to do all this processing in active memory?...is this function sporadic enough to not require a lot of processing resources?...are you able to write to the source.csv file to flag rows?) it is difficult to offer any meaningful answers.

Look to a database. This is what databases are for.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close