Vecteevs Posted August 19, 2010 Report Share Posted August 19, 2010 Sveiki ir šāds skripts, kas izveido visas iespējamās kombinācijas burtiem <?php $symbs = "abcdefghijklmnoprstuvzqwx"; for($i1=0;$i1<strlen($symbs);$i1++){ $char1 = $symbs[$i1]; for($i2=0;$i2<strlen($symbs);$i2++){ $char2 = $symbs[$i2]; for($i3=0;$i3<strlen($symbs);$i3++){ $char3 = $symbs[$i3]; echo $char1[0].$char2.$char3." "; // rezultāts } } } ?> kā lai liek viņiem visu laiku ģenerēties līdz ir īstais? Link to comment Share on other sites More sharing options...
codez Posted August 19, 2010 Report Share Posted August 19, 2010 Kas ir īstais? Link to comment Share on other sites More sharing options...
Vecteevs Posted August 19, 2010 Author Report Share Posted August 19, 2010 īstā burtu kombinācija kas ir saglabāta DB Link to comment Share on other sites More sharing options...
codez Posted August 19, 2010 Report Share Posted August 19, 2010 ja jau tu zini īsto, kāpēc tad tev viņa jāģenerē? Link to comment Share on other sites More sharing options...
Vecteevs Posted August 19, 2010 Author Report Share Posted August 19, 2010 ir man viens piemērs, gribu uzzināt kā funkcijai var izmēģināt visus iespējamos variantus kamēr atrod īsto. un vēl laiku cik ilgi tas aizņēma Link to comment Share on other sites More sharing options...
Val Posted August 19, 2010 Report Share Posted August 19, 2010 pārbaudi katru uzģenerēto ar vajadzīgo, kamēr abi sakrīt. Link to comment Share on other sites More sharing options...
Maaren Posted August 19, 2010 Report Share Posted August 19, 2010 Čalis vienkārši grib tādā veidā paroles minēt.. :D Nekas tev nesanāks.. ;) Link to comment Share on other sites More sharing options...
Vecteevs Posted August 19, 2010 Author Report Share Posted August 19, 2010 (edited) kura parole tev sastav no 3 burtiem? Un kurš nehasho paroles? :) Edited August 19, 2010 by Vecteevs Link to comment Share on other sites More sharing options...
Maaren Posted August 20, 2010 Report Share Posted August 20, 2010 Jā, tagad tik sapratu, ka runa iet par to "konkursu". :D Nupat domubiedros izlasiju. Link to comment Share on other sites More sharing options...
codez Posted August 20, 2010 Report Share Posted August 20, 2010 iemet linku, kas par konkursu. Link to comment Share on other sites More sharing options...
Maaren Posted August 20, 2010 Report Share Posted August 20, 2010 (edited) iemet linku, kas par konkursu. draugiem.lv domubiedru grupā "Programmēšana", tēma - "Mazā pārbaude"... Edited August 20, 2010 by Maaren Link to comment Share on other sites More sharing options...
bubu Posted August 20, 2010 Report Share Posted August 20, 2010 http://dev.gamez.lv/viewtopic.php?p=24813 Link to comment Share on other sites More sharing options...
Vecteevs Posted August 20, 2010 Author Report Share Posted August 20, 2010 paldies, par linku! :) Link to comment Share on other sites More sharing options...
Recommended Posts