The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
1) Is there an easy way to strip "'s from a text file using php?
It's not really feasible to do a s/r using a text editor as the files will be uploaded by a user and actioned directly rather than them passing through my control first. 2) How can I read a line at a time from a csv file before exploding it? Say grab all characters into a string until \n and then process, then repeat in a loop until EOF (I could do this in c++ - albeit a bit rusty now - but not really sure in php) Any solutions greatly appreciated. Matt. -------------------------- If there's no way of easily reading the file a line at a time, is it a really bad idea to read a 1000+ line file in to an array in one go, and then exploding it into lines on \n, and then exploding each line at a time on the delimiter? Lastly, if I do this, is this a good way of exploding a line at a time until EOF?? PHP Code:
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|