Reply to Re: how can i cache data that took from a txt file before?

Your name:

Reply:


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]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация