Jump to content

rewind and forward using fgetcsv()


MetalSmith

Recommended Posts

Hello all,

 

I have a text file with tons of names. The format looks like this:

 

firstname,lastname

firstname,lastname

firstname,lastname

firstname,lastname

 

My challenge is I can only display 15 names at one time on the screen of a phone. Using the fgetcsv() command I need a way to advance and rewind the file pointer one line at a time. I have tried the fseek() functions but no luck. Any ideas?

 

Link to comment
https://forums.phpfreaks.com/topic/145222-rewind-and-forward-using-fgetcsv/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.