NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming > CODE
Reload this Page PHP function to make a serial code :)

CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here.

Advanced Search
7 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 10-13-2004, 04:53 PM THREAD STARTER               #1 (permalink)
Account Suspended
 
axilant's Avatar
Join Date: May 2004
Location: /etc/passwd
Posts: 2,178
axilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to beholdaxilant is a splendid one to behold
 

Member of the Month
July 2005

PHP function to make a serial code :)


This is a function say your making a signup script and you want them to have a activation code or something. Its pretty usefull, only edit the function if you know what you are doing!!! It can actually mess up and might not give a good output.
PHP Code:
function make_serial($string)
{
    
$md5 md5($string);
    
$split str_split($md54);
    foreach(
$split AS $tmp)
    {
            
$serial .= "$tmp-";        
????: NamePros.com http://www.namepros.com/code/51378-php-function-to-make-serial-code.html
    }
    
$tmp substr($serial039);
    return 
$tmp;
}
//usage:
$string "axilant";  //might want to encrypt there username or something, you can deside that :)
$serial make_serial($string); 
axilant is offline  
Old 10-15-2004, 06:36 AM   #2 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,123
Darkfire001 is a splendid one to beholdDarkfire001 is a splendid one to beholdDarkfire001 is a splendid one to beholdDarkfire001 is a splendid one to beholdDarkfire001 is a splendid one to beholdDarkfire001 is a splendid one to beholdDarkfire001 is a splendid one to beholdDarkfire001 is a splendid one to behold
 



Thats awesome, I never knew PHP had a function for that. I might build that into my next Online Game for some added protection.
__________________
Reichelt Solutions
Darkfire001 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 07:26 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger