Page 1 of 1

PHP listing script >> to list combinations

Posted: Tue May 20, 2008 10:55 am
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

Re: PHP listing script >> to list combinations

Posted: Tue May 20, 2008 11:07 am
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.

Re: PHP listing script >> to list combinations

Posted: Tue May 20, 2008 11:55 am
by greenstar91
which language would you suggest then?