CryRat Posted June 30, 2003 Report Share Posted June 30, 2003 oki fishka vienkarsh man vajag no viena *.txt dabut ara vienu rindu to es daru shita <code><font color="#000000"> <font color="#0000CC"><? $file </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/file]file[/url]</font><font color="#006600">(</font><font color="#CC0000">"teksts.txt"</font><font color="#006600">); echo </font><font color="#0000CC">$file</font><font color="#006600">[</font><font color="#0000CC">15</font><font color="#006600">]; </font><font color="#FF9900">// ne vienmer ir 15 :) </font><font color="#0000CC">?></font> </font> </code> jautajums: cik shitas kods bremze ? teksts.txt ir ~10 k un aug ! vai nevar uztaisit ta lai PHP nelada visu *.txt bet uzreiz tikai to rindinu ? :blink: Link to comment Share on other sites More sharing options...
RuncZ Posted June 30, 2003 Report Share Posted June 30, 2003 nu konkreeti cik vinjsh bremzees, teu diezvai kaads varees pateikt, jo shajaa izteiksmee ir pietiekoshi daudz nezinaamo (servera dzelzhu un softa konfiguraacija, noslodze, ar domu, palaisto programmu skaits un smagums, etc etc) un ja arii kaads to visu zinaatu... nu izreekjinaat protams var, bet diezvai kaads njemsies to dariit.... katraa zinjaa jo lielaaks buus txt fails, jo leenaak straadaas scripts (logjiski ne?)... veel iespeejams, ka uz lieliem txt failiem fopen(), fread(), un fclose() straadaa aatraak, bet par cik, kaa saprotu, tev ir vajadziiga tieshi viena rinda no faila, tad attieciigi tas viss atkal ir jaaskalda gabalinjos, kas savukaart atkal visu sabremzee (nu par shito konkreeti nezinu... var buut arii savaadaak) :) Link to comment Share on other sites More sharing options...
CryRat Posted June 30, 2003 Author Report Share Posted June 30, 2003 vispar ta jau ir kas ta tas 10 k pat ja 100 k butu tas nav ipashi jutams... vienkarshi ta nepatikami ka tiek ieladeti 10 k no kuriem 99% nav vajadzigi... <_< Link to comment Share on other sites More sharing options...
RuncZ Posted July 1, 2003 Report Share Posted July 1, 2003 Nu ko lai saka... ņem zobos datubāzes :) Link to comment Share on other sites More sharing options...
Recommended Posts