Posted by Steve on 03/03/07 17:12
<onurpay@gmail.com> wrote in message
news:1172920563.419076.269030@z35g2000cwz.googlegroups.com...
Hi there. i need to cache data from a txt file.
problem : the txt file is too big. it has lots of categories in it. it
is too slow to show that data in my page. so i want to cache it maybe
in a txt or xml file in my server. so second time that i need the data
it won't be too slow. i want to take the data once in a day but show
several times. the code below is working as well as i need. but it is
too slow to open every time refresh my page. if any suggestions, thank
you.
Gόncel : is a category name in the txt file.
BCList2.txt : data file from another site
rather than tell you how to do that, i'd simply advise that you import your
data into a db and query the data. if you plan on going the text-file route,
you'll have to outside of php to cache the data and make it accessible to
all callers. i'm sorry to say, your current architectural plans are not
wise.
hth
[Back to original message]
|