RE: [PHP] Random String Generation

2003-03-12 Thread John W. Holmes
> What I am trying to do is to create a email verification routine with PHP. > When people register on the site they will get an email sent to them with > a > link such as http://mysite.com/activation.php?ID=ghjghjg367ghjlkj9hjlkjhn0 > > That way when they click on the link it will verify the code

Re: [PHP] Random String Generation

2003-03-12 Thread Justin French
on 13/03/03 5:49 AM, Mike Walth ([EMAIL PROTECTED]) wrote: > Hello: > > What I am trying to do is to create a email verification routine with PHP. > When people register on the site they will get an email sent to them with a > link such as http://mysite.com/activation.php?ID=ghjghjg367ghjlkj9hjlk

Re: [PHP] Random String Generation

2003-03-12 Thread Ernest E Vogelsinger
At 19:56 12.03.2003, you said: [snip] >On Thursday 13 March 2003 02:49, Mike Walth wrote: > >You have started a new thread by taking an existing posting and replying to >it while you changed the subject. > >...etc... [snip]

Re: [PHP] Random String Generation

2003-03-12 Thread Pete James
The method I use is to take their user_id or email and create an HMAC (hashed message authentication code) by hashing it with a secret key on my end. This way the activation link looks like the following: http://mysite.com/activation.php?user_id=petej&ID=ghjghjg367ghjlkj9hjlkj THe activation scr

Re: [PHP] Random String Generation

2003-03-12 Thread Jonathan Pitcher
Mike, This is can be simple or complex depending on how complex you get. Here is an example that should work. function getRandString() { $NumOfElements = 5; // Chooses that number of elements from the Element Array $ElementArray = array(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z);

Re: [PHP] Random String Generation

2003-03-12 Thread Jason Wong
On Thursday 13 March 2003 02:49, Mike Walth wrote: You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a "References:" header that tells

[PHP] Random String Generation

2003-03-12 Thread Mike Walth
Hello: What I am trying to do is to create a email verification routine with PHP. When people register on the site they will get an email sent to them with a link such as http://mysite.com/activation.php?ID=ghjghjg367ghjlkj9hjlkjhn0 That way when they click on the link it will verify the code aga