jonass Posted November 8, 2003 Report Share Posted November 8, 2003 man ir teksta fails, kura saturs izskataas shadi <code><font color="#000000"> viens divi </font> </code> kaa lai liek php lasiit tieshi pirmo rindinju vai tieshi otro? Link to comment Share on other sites More sharing options...
Little_Hacker Posted November 8, 2003 Report Share Posted November 8, 2003 domaaju ka shadi.. <code><font color="#000000"> <font color="#0000CC"><?php $fails </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/file]file[/url]</font><font color="#006600">(</font><font color="#CC0000">'tasfails.txt'</font><font color="#006600">); echo </font><font color="#0000CC">$fails</font><font color="#006600">[</font><font color="#0000CC">0</font><font color="#006600">]; </font><font color="#FF9900">// 0 buus pirmaa rinda, 1 buus otraa rinda, utt </font><font color="#0000CC">?> </font> </font> </code> Link to comment Share on other sites More sharing options...
jonass Posted November 8, 2003 Author Report Share Posted November 8, 2003 aha un vai ir iespeejams arii ierakstiit tikai noteiktaas rindinjaas tajaa failaa? <code><font color="#000000"> <font color="#0000CC"><? $pirmaa </font><font color="#006600">= </font><font color="#0000CC">1</font><font color="#006600">; </font><font color="#0000CC">$otraa </font><font color="#006600">= </font><font color="#0000CC">2</font><font color="#006600">; </font><font color="#0000CC">$file </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/fopen]fopen[/url]</font><font color="#006600">(</font><font color="#CC0000">"fails.txt"</font><font color="#006600">, </font><font color="#CC0000">"w"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$file</font><font color="#006600">[</font><font color="#0000CC">0</font><font color="#006600">], </font><font color="#0000CC">$pirmaa</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$file</font><font color="#006600">[</font><font color="#0000CC">1</font><font color="#006600">], </font><font color="#0000CC">$otraa</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fclose]fclose[/url]</font><font color="#006600">(</font><font color="#0000CC">$file</font><font color="#006600">); </font><font color="#0000CC">?> </font> </font> </code> (kods noteikti ir garaam :) ) Link to comment Share on other sites More sharing options...
sviesc Posted November 10, 2003 Report Share Posted November 10, 2003 Nu mans domāt ka šitais visu sarakstīs vienā rindiņā <code><font color="#000000"> <font color="#0000CC"><? $f </font><font color="#006600">= </font><font color="#0000CC">[url=http://lv.php.net/fopen]fopen[/url]</font><font color="#006600">(</font><font color="#CC0000">"fails.txt"</font><font color="#006600">,</font><font color="#CC0000">"w"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$f</font><font color="#006600">,</font><font color="#CC0000">"</font><font color="#006600">$</font><font color="#CC0000">1n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fputs]fputs[/url]</font><font color="#006600">(</font><font color="#0000CC">$f</font><font color="#006600">,</font><font color="#CC0000">"</font><font color="#006600">$</font><font color="#CC0000">2n"</font><font color="#006600">); </font><font color="#0000CC">[url=http://lv.php.net/fclose]fclose[/url]</font><font color="#006600">(</font><font color="#0000CC">$f</font><font color="#006600">); </font><font color="#0000CC">?></font> </font> </code> moš šitā kas sanāk Link to comment Share on other sites More sharing options...
Recommended Posts