Say, does anyone know how I can open a file in php and just read and display the odd lines only because that is where the important data is?
This is what I would like to do actually:
Read from the text file, only odd no lines.
Read from table
Compare odd line with records in table
if already in table break
else insert it
**Note:The data at the odd lines may be repeated
eg. aaaaaaaaaaaaaaaaa
xxxxxxxxxxxxxxxxxxxxxxx
bbbbbbbbbbbbbbbbbbbb
xxxxxxxxxxxxxxxxxxxxxxx
ccccccccccccccccccccccc
xxxxxxxxxxxxxxxxxxxxxxx
bbbbbbbbbbbbbbbbbbbb
Important is a, b,c-the xxxxx not important
First read the odd line from text file.
If is not in the table, insert. For it to be able to insert, it needs to check the whole table.
The issue arises when it comes to te second line of bbb.
Once it finds that there is already a record bbbb in the table. It should stop and continue with the next odd line from the text file.
I am not sure how to do this.
Hope someone can help me out here. I am new at programming.
Thanks a million.