I have an interesting need for PHP...
My users will upload a file that I want PHP to do a little data processing on. The file will be a fixed width file with lines terminated by \n. I want PHP to grab certain segments of each line and load it into a MySQL table. For example... Position 1 for a length of 4 contains a store number, position 5 for 8 contains a UPC number, position 13 for 20 contains an item description, and so on. How would I get PHP to do this? I want to grab a line, load the values, grab the next line, load the values, and on and on. How do I structure this in the code? Thanks!