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!
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have a php script that runs through a .xls file (which actually is saved as excel but I believe is a tab delimited .csv file). It was working for a bit but for some reason no longer is parsing it correctly.Basically I want to create an array with items in the array being rows of the .xls sheet. To do that I use an explode and set the delimiter to be a line break \r. It seems that the line breaks aren't getting picked up. Here's the code:
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hmm, well almost there. Looks like there's something in some of the fields causing it to break early for some reason. Just realized it's a comma in some of the field contents. View here (look at item 6 for example): http://www.nextcoupons.com/php_parse/pa ... ics_v2.php