Jump to content

Any help converting script


nonexistentera

Recommended Posts

Hello there.

I have a script that makes a permutation.

ex.

a

b

c

aa

ab

...and so on

function md5this($length,$limit){
while ($length<$limit){
	set_time_limit(0);
	$charset = "abcd";


	for($i=0;$i<strlen($charset);$i++)
		$x[]=$charset{$i};
                        //Right below
		for($i=0,$z="",$e="echo ";$i<$length;$i++){
 		   	$z.="foreach(\$x as \$y[$i])"; 
			$e.="\$y[$i].";

		}
		$evalinsert = eval($z.$e."\"<br />\";");
                        //To Here


	$length++;
}
}

I am wondering if anyone can help me changing the eval part. I am trying to keep everything nice and simple. and I also need to be able to insert it into MySQL and with how it is now I cannot do so.

 

Any help is much appreciated.

 

Link to comment
https://forums.phpfreaks.com/topic/124890-any-help-converting-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.