PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i'm sorry... for some reason I thought u wanted to know how to insert the file pointer...
I would have no idea how to actually get the actual "first" line of text...
i'm now curious on how so if anyone knows, post... somehow put the textfile data into a array and read the array as such somehow?
fgets($file_handler) will return a single line at a time, and if the file is freshly opened, it will get the first line. but if you've already moved the file pointer around a bit, rewind($file_handler) is exaclty what you need to go back to the beginning of the file.
did you mean how to put the first line into a file, mabe?