PHP listing script >> to list combinations

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
greenstar91
Forum Newbie
Posts: 2
Joined: Tue May 20, 2008 10:12 am

PHP listing script >> to list combinations

Post by greenstar91 »

Hello,

I have recently finished a combination calculator for finding the number of combinations of a group of numbers.

http://greenstar91.007sites.com/index.php <<excuse the free hosted site!

Now I want to create a script that will list every single combination in order for a user defined character set (most likely lower case + numbers) i.e. if user types in 'abcdefghijklmnopqrstuvwxyz0123456789' and 6 combination length. I want the script to list every combination starting from aaaaaa, aaaaab, aaaaac e.t.c.

Can anyone suggest how I would go about this or give me a url to a script which already does this.

Thanks
greenstar91
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: PHP listing script >> to list combinations

Post by onion2k »

The example you gave would generate 12GB of data. Don't do this with PHP. It's completely the wrong language for it.
greenstar91
Forum Newbie
Posts: 2
Joined: Tue May 20, 2008 10:12 am

Re: PHP listing script >> to list combinations

Post by greenstar91 »

which language would you suggest then?
Post Reply