ghx Posted August 30, 2008 Report Share Posted August 30, 2008 Sveiki! Varbūt kāds var palīdzēt izveidot php skriptu ar kuru refreshojot lapu parādās katru reizi cits teksts. Paldies. Link to comment Share on other sites More sharing options...
iall Posted August 30, 2008 Report Share Posted August 30, 2008 http://paste.php.lv/7935?lang=php Link to comment Share on other sites More sharing options...
bubu Posted August 30, 2008 Report Share Posted August 30, 2008 <?php echo time(); ?> Link to comment Share on other sites More sharing options...
SkaKri Posted September 6, 2008 Report Share Posted September 6, 2008 (edited) <?php echo rand(1, 10); ?> Edited September 6, 2008 by SkaKri Link to comment Share on other sites More sharing options...
Grey_Wolf Posted September 6, 2008 Report Share Posted September 6, 2008 bubu --> ja pietiekami atri spaidiisi F5 teksts buus vienads (nu ja paspesi 1 sek laikaa norefresot vairakas reizes... ) ;) SkaKri --> tikai 10 variacijas ... :( Link to comment Share on other sites More sharing options...
bubu Posted September 6, 2008 Report Share Posted September 6, 2008 Mazie kapracīši.. :) Link to comment Share on other sites More sharing options...
SkaKri Posted September 6, 2008 Report Share Posted September 6, 2008 SkaKri --> tikai 10 variacijas ... :( <?php echo rand(1, 10000); ?> Link to comment Share on other sites More sharing options...
john.brown Posted September 6, 2008 Report Share Posted September 6, 2008 (edited) $lenght = rand(1,500); $source = 'aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPrRsSuUvVzZxXwWqQ1234567890'; $sLenght = strlen($source) - 1; $out = ''; $wl = 0; for($i = 0; $i < $lenght; $i++) { $el = rand(0,$sLenght); $out .= $source{$el}; $wl ++; if(rand(1,15) <= $wl) { $out .= ' '; $wl = 0; } } echo $out; :) Edited September 6, 2008 by john.brown Link to comment Share on other sites More sharing options...
SkaKri Posted September 6, 2008 Report Share Posted September 6, 2008 [..] Yes! Vēl tikai jāpiekabina wordliste. Link to comment Share on other sites More sharing options...
Recommended Posts