jonass Posted November 8, 2003 Report 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?
Little_Hacker Posted November 8, 2003 Report 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>
jonass Posted November 8, 2003 Author Report 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 :) )
sviesc Posted November 10, 2003 Report 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
Recommended Posts