Hi,
I'm running PHP 5.0.4 on Windows XP, under Jetty, a Java HTTP Server and
Servlet container.
The container is configured to pass *.php requests to a CGI servlet which execs
php-cgi.exe
Everything seems to work fine and the expected text/html output is returned, however PHP is always setting
I need to generate 10million 12-char string and I am able to do so, however
the problem is how to avoid repetition keeping each string unique? it will
be a disaster to compare each string,isn't it?
ps Thanks Yong.
Bo
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: ht
> I need to generate 10million 12-char string and I am able to do so,
> however
> the problem is how to avoid repetition keeping each string unique? it will
> be a disaster to compare each string,isn't it?
One way to handle this would be to insert the 10 million values into a MySQL
table [1] that
A couple of ideas to improve the chances of generating unique strings
You could create 20,000,001 char(6) strings, merge the first with the
last, second with the second last and so on, creating char(12) strings
or
You could create 20,000,001 char(7) strings, merge the first with the
last, se