ghx Posted August 30, 2008 Report 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.
SkaKri Posted September 6, 2008 Report Posted September 6, 2008 (edited) <?php echo rand(1, 10); ?> Edited September 6, 2008 by SkaKri
Grey_Wolf Posted September 6, 2008 Report 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 ... :(
SkaKri Posted September 6, 2008 Report Posted September 6, 2008 SkaKri --> tikai 10 variacijas ... :( <?php echo rand(1, 10000); ?>
john.brown Posted September 6, 2008 Report 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
SkaKri Posted September 6, 2008 Report Posted September 6, 2008 [..] Yes! Vēl tikai jāpiekabina wordliste.
Recommended Posts