Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Generating codes  (Read 6990 times)

0 Members and 1 Guest are viewing this topic.

alex116

  • Guest
Re: Generating codes
« Reply #15 on: November 26, 2006, 07:07:13 AM »
it still doesn't echo them in  1 (one) column. It displays them in one line :

aaa.net aab.net aac.net aad.net aae.net aaf.net aag.net aah.net aai.net aaj.net aak.net aal.net aam.net aan.net aao.net aap.net aaq.net aar.net aas.net aat.net aau.net aav.net aaw.net aax.net aay.net aaz.net aa0.net aa1.net aa2.net aa3.net aa4.net aa5.net aa6.net aa7.net aa8.net aa9.net aba.net abb.net abc.net abd.net abe.net abf.net abg.net abh.net abi.net abj.net abk.net abl.net abm.net abn.net abo.net abp.net abq.net abr.net abs.net abt.net abu.net abv.net abw.net abx.net aby.net abz.net ab0.net ab1.net ab2.net ab3.net ab4.net ab5.net ab6.net ab7.net ab8.net ab9.net aca.net acb.net acc.net acd.net ace.net acf.net acg.net ach.net aci.net acj.net ack.net acl.net acm.net acn.net aco.net acp.net acq.net acr.net acs.net act.net acu.net acv.net acw.net acx.net acy.net acz.net ac0.net ac1.net ac2.net ac3.net ac4.net ac5.net ac6.net ac7.net ac8.net ac9.net ada.net adb.net adc.net add.net ade.net adf.net adg.net adh.net adi.net adj.net adk.net adl.net adm.net adn.net ado.net adp.net adq.net adr.net ads.net

Again, I need them like this :

aaa.net
aab.net
aac.net
aad.net
....net


Probabply the /n parameter doesn't work. I'm thinking of replacing all the SPACE chars with ENTER(RETURN). But I dont know how to do it. Could this be a solution?
« Last Edit: November 26, 2006, 07:13:19 AM by alex116 »

Rob Pomeroy



    Prodigy

  • Systems Architect
  • Thanked: 124
    • Me
  • Experience: Expert
  • OS: Other
Re: Generating codes
« Reply #16 on: November 26, 2006, 01:46:33 PM »
It just depends on how you're running the PHP.  If you're running it in a browser, you need the
 tags before and after the PHP.  Alternatively, you can leave out the pre tags, and replace the '\n' with '
' (an HTML line break).
Only able to visit the forums sporadically, sorry.

Geek & Dummy - honest news, reviews and howtos

alex116

  • Guest
Re: Generating codes
« Reply #17 on: November 27, 2006, 02:41:02 AM »
Thank a lot Rob, it works just fine with < br/ >.

Neil



    Expert
  • Fear me Track. Noone can escape my wrath.
  • Thanked: 3
    Re: Generating codes
    « Reply #18 on: November 27, 2006, 02:54:52 PM »
    On my computer, it displays all the results... :-?

    If you want it to display it one line after the other, then change it be so! Copying others' programs will not help you learn :P

    The total number of possible combinations is the number of possible selections for each charector. So 36 * 36 * 36 = 46656. Your formula just isn't right for this particular scenorio. If you want to know why, ask a statistition ;)