help with fscanf
View Single Post
03-02-2009, 06:56 PM
Join Date: Feb 2009
Location: New York
Originally Posted by
@allworknoplay: That's because I don't have to load the data into PHP when just using fscanf.
@Salathe: The problem with your code is that it requires me to load
line into PHP and then check it. I need to be able to do this with only fscanf if at all possible.
Ok I have an idea. You don't want to load the entire file into PHP, so I get that.
What if you were to return all of the lines you were searching for anyway, but then once you retrieve the line, you then parse the info?
This way you're only parsing what you need AFTER you get the full line, instead of trying to parse it ahead of time which would require much more resources?
Does that make sense?
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay