• Home
  • Contact
blog.biernacki.ca

Kuba's Online Workshop

  • Home
  • Contact

PHP Serial Number Generator

03/21/2007 PHP 5 Comments

I needed to generate roughly 50k unique serials. So I searched the web and found one solution, which I modified slightly and created to fit my needs. Its in PHP and will output a generated comma delimited CSV column1, column2 format (MS Excel will open that up for editing).

When I generated 50k serials, I used Office 2007’s Functions to remove duplicates (I didn’t code this into PHP as it was a waste of time for me due to the nature of what I needed the output for).

To give you an idea how many dupes I got it was about 1k dupes our of 50k serials, so not bad. One way to get around not having duplicates (if you use this for a web based serial number process) would be to combine the generated serial with say a database column that only takes unique serials, so if you have an existing serial, simply generate another and you shouldn’t have any problems).

Download the Code:
PHP Serial Generator

Finally a freeware solution

Occidental Grand Papagayo - Costa Rica

Categories
  • Android
  • Apple
  • Coldfusion
  • Cool Apps
  • CSS
  • GitHub
  • Hardware
  • How To
  • In the News
  • Javascript
  • Linux
  • PHP
  • RC Hobby
  • Reviews
  • SysAdmin
  • Thoughts & Rants
  • Tinkering
Recent Comments
  • Jim on Fixing ONKYO RC-710m Remote volume issues
  • Tony on Fixing ONKYO RC-710m Remote volume issues
  • Robert Lawrence on Fixing ONKYO RC-710m Remote volume issues
  • Dasen on Fixing ONKYO RC-710m Remote volume issues
  • Ahmed on Fixing ONKYO RC-710m Remote volume issues
RollmyBlog
  • Twitter
  • WebMojo Design
  • Windsor Ultimate
Archives
  • June 2020
  • January 2015
  • June 2014
  • February 2014
  • January 2014
  • December 2013
  • May 2013
  • February 2013
  • July 2012
  • June 2012
  • February 2012
  • December 2011
  • November 2011
  • October 2011
  • September 2011
  • August 2011
  • April 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • August 2010
  • July 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • November 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • April 2009
  • March 2009
  • February 2009
  • December 2008
  • November 2008
  • October 2008
  • September 2008
  • August 2008
  • June 2008
  • October 2007
  • September 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • January 2007
Proudly powered by WordPress | Theme: Doo by ThemeVS.