Re: [PHP-WIN] what's wrong with this while loop?

2005-06-07 Thread graeme
You could help by saying what you mean by "the result is strange" There is a increment of $tot at the end so it should be incrementing, but is it? What does your echo statement say? You could move most of the file checking out of the loop, test and open before the loop, if the file is okay th

Re: [PHP-WIN] what's wrong with this while loop?

2005-06-07 Thread Luis Moreira
What's wrong with the while loop ? You mean besides the fact that you are accessing an array and not specifying the index ? $rand_key[] = $key_chars{$rand_pos}; Other than that, saying te result is strange is not good enough. If you want help, you have to be more specific. As to the "50 millio

RE: [PHP-WIN] what's wrong with this while loop?

2005-06-07 Thread Murray @ PlanetThoughtful
> Following my code is to write a 15digit random generated password into a > file named test.txt. I was trying to keep it random generating 100 > passwords > and be written into test.txt by using a while loop, however, the result is > strange. > > Take a look at the code (most of it is from php.ne

[PHP-WIN] what's wrong with this while loop?

2005-06-06 Thread bo
Following my code is to write a 15digit random generated password into a file named test.txt. I was trying to keep it random generating 100 passwords and be written into test.txt by using a while loop, however, the result is strange. Take a look at the code (most of it is from php.net) and what

RE: [PHP-WIN] What's wrong with these two programs?

2004-11-24 Thread George Pitcher
ntain my lazy programming approach - not having to think about where the arg is coming from. Cheers George in Oxford > -Original Message- > From: Michael Adams [mailto:[EMAIL PROTECTED] > Sent: 24 November 2004 9:45 am > To: [EMAIL PROTECTED] > Subject: Re: [PHP-WIN] What's

Re: [PHP-WIN] What's wrong with these two programs?

2004-11-24 Thread Michael Adams
On Tue, 23 Nov 2004 15:15:49 +1000 "Michael Purdy" <[EMAIL PROTECTED]> wrote: > Anthony > > Assuming you have not omitted any of the code for script 2: > > You need to have a get the posted value at the start of script 2 i.e. > > $username = $_REQUEST['userName']; > > Mike And assuming both A

RE: [PHP-WIN] What's wrong with these two programs?

2004-11-23 Thread Gryffyn, Trevor
to point you in that direction as a possibility. -TG > -Original Message- > From: aomarlow [mailto:[EMAIL PROTECTED] > Sent: Monday, November 22, 2004 10:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] What's wrong with these two programs? > > > Hi, &

Re: [PHP-WIN] What's wrong with these two programs?

2004-11-22 Thread Michael Purdy
TED]> Sent: Tuesday, November 23, 2004 1:36 PM Subject: [PHP-WIN] What's wrong with these two programs? > Hi, > > Can anyone tell me what's wrong with the two following > programs? The first (whatsName.html) is straight > HTML, and is supposed to build a form th

RE: [PHP-WIN] What's wrong with these two programs?

2004-11-22 Thread Armando
L PROTECTED] Sent: November 22, 2004 9:36 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] What's wrong with these two programs? Hi,   Can anyone tell me what's wrong with the two following programs?  The first (whatsName.html) is straight HTML, and is supposed to build a form that asks a que

[PHP-WIN] What's wrong with these two programs?

2004-11-22 Thread aomarlow
Hi,   Can anyone tell me what's wrong with the two following programs?  The first (whatsName.html) is straight HTML, and is supposed to build a form that asks a question.  The second program, (hiUser.php) is supposed to read the value input by the user, and process it.  I'm not having any trouble w

Re: [PHP-WIN] What's wrong ;(

2002-11-19 Thread Steel
Hi _GeS_, Tuesday, November 19, 2002, 12:45:03 PM, I've got: _> Hi! _> Can someone change this line so that it works, please ? _> echo '' . _> $line["url"] . ''; It seems to me, that You must add slashes before single quote, if You enclose the string within single quotes. Like this: echo ''

[PHP-WIN] What's wrong ;(

2002-11-19 Thread _GeS_
Hi! Can someone change this line so that it works, please ? echo '' . $line["url"] . '';