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 want to check if I downloaded a CSV file completely using PHP. If it were XML I could check if for the closing root element, but I'm not sure how to do this with CSV files... Does anyone have a clue?
If the last line is complete, that is enough. However there is no information included in the file that would state how many records there are. Your only help is from the server you fetch it from. The server is supposed to return a header stating how large the file is.