[PHP] Problem in a generate password function

2008-03-31 Thread Mário Gamito
Hi, I have the code of a function to generate a random 10 character long password following my signature. To test it i do: $clearpass = create_pass(); print('Clear: ' . $clearpass); die(); But the output is only Clear: Why isn't it working ? Any help would be appreciated. Warm Regards,

Re: [PHP] Problem in a generate password function

2008-03-31 Thread Stut
Mário Gamito wrote: I have the code of a function to generate a random 10 character long password following my signature. To test it i do: $clearpass = create_pass(); print('Clear: ' . $clearpass); die(); But the output is only Clear: Why isn't it working ? Works fine here:

Re: [PHP] Problem in a generate password function

2008-03-31 Thread Jim Lucas
Mário Gamito wrote: Hi, I have the code of a function to generate a random 10 character long password following my signature. To test it i do: $clearpass = create_pass(); print('Clear: ' . $clearpass); die(); But the output is only Clear: Why isn't it working ? Any help would be

Re: [PHP] Problem in a generate password function

2008-03-31 Thread tedd
At 12:20 PM -0700 3/31/08, Jim Lucas wrote: I have a very similar routine, but for the previous line, since you can reference a string as an array, I do this: $char = $possible[mt_rand(0, strlen($possible)-1)]; In this example, it would save ten function calls, if not more. just a suggestion