View Single Post
Old 03-02-2009, 06:56 PM   #6 (permalink)
allworknoplay
The Gregarious
 
allworknoplay's Avatar
 
Join Date: Feb 2009
Location: New York
Posts: 645
Thanks: 64
allworknoplay is on a distinguished road
Default

Quote:
Originally Posted by ETbyrne View Post
@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 every 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?
allworknoplay is offline  
Reply With Quote