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!
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
I'm trying to get the file into array strings, but then I just want to ignore/delete the first line which are the fields. Can someone help me?
My overall objective though is to use the information below the first line. I want to then split each thing using the split() function, and then place each variable accordingly into the database. Having this file consistently refresh in order to get the most accurate current information. Can someone please lead me in the right direction?
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: Posting Code in the Forums to learn how to do it too.
array_shift() will get rid of the first row for you.
If this is a comma separated file, or some other format delimited by a common character, consider explode() instead of split(). Anything that uses regular expressions is costly (in terms of processor cycles) and should be avoided if at all possible.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.