[PHP-WIN] Re: Session Variables Problem (Missing)

2004-01-12 Thread Brad Lawryk
Thanks Hubo, When I make a page with that code ... it always says 'New Session'. No matter what I do the 'Session Variable Saved' never shows up. Brad "Hubo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > The code shown below is a complete php script for you. Save these lines into

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Svensson, B.A.T. (HKG)
On Mon, 2004-01-12 at 16:12, Bobo Wieland wrote: > worked like a charm! =) > > don't think it'll tell you much, but this is the actual code i'm using now: > > for ($j = 1; $j < 10 && $num_rows > 0; $num_rows -= MAXSHOWN, $j++) {} The syntax is quite clear to me, but what about this break condit

Re: [PHP-WIN] Global Variables and Form Variables

2004-01-12 Thread Svensson, B.A.T. (HKG)
On Mon, 2004-01-12 at 15:43, Jim MacDiarmid wrote: > For some reason, the first time I attempt to access a form variable or > global variable PHP does not seem to think it's defined. For each one > that shows an "undefined" error, I've had to put the following code at > the beginning of the script

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Bobo Wieland
worked like a charm! =) don't think it'll tell you much, but this is the acctual code i'm using now: for ($j = 1; $j < 10 && $num_rows > 0; $num_rows -= MAXSHOWN, $j++) {} .bobo - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: "Bobo Wieland" <[EMAIL PROTEC

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Svensson, B.A.T. (HKG)
In C/C++ you can so I just assumed it would also be possible in php . Try on your own risk. :) On Mon, 2004-01-12 at 15:26, Bobo Wieland wrote: > thank you! > > You learn something new everyday... Didn't think you could use expressions > like that in a for-loop... > -- PHP Windows Mailing Lis

[PHP-WIN] Global Variables and Form Variables

2004-01-12 Thread Jim MacDiarmid
For some reason, the first time I attempt to access a form variable or global variable PHP does not seem to think it's defined. For each one that shows an "undefined" error, I've had to put the following code at the beginning of the script. Should I have to do this? I have the register_glob

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Bobo Wieland
thank you! You learn something new everyday... Didn't think you could use expressions like that in a for-loop... .bobo - Original Message - From: "Svensson, B.A.T. (HKG)" <[EMAIL PROTECTED]> To: "Bobo Wieland" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 12, 2004

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Svensson, B.A.T. (HKG)
> ERRATA: > > for ($i = 0, $j = 0; (!($j = 5) && $i < 10 && $j < 5); $i++, $j++) ERRATA 2: for ($i = 0, $j = 0; (!($j == 5) && ... -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Svensson, B.A.T. (HKG)
On Mon, 2004-01-12 at 15:11, Svensson, B.A.T. (HKG) wrote: > On Mon, 2004-01-12 at 15:07, Bobo Wieland wrote: > > Hi... > > > > Is there a way to set a for loop to exit when the FIRST of many > > expresions evaluate to false? > > > > the code: for ($i = 0, $j = 0; $i < 10, $j < 5; $i++, $j++) {}

Re: [PHP-WIN] a for-loop syntax question

2004-01-12 Thread Svensson, B.A.T. (HKG)
On Mon, 2004-01-12 at 15:07, Bobo Wieland wrote: > Hi... > > Is there a way to set a for loop to exit when the FIRST of many > expresions evaluate to false? > > the code: for ($i = 0, $j = 0; $i < 10, $j < 5; $i++, $j++) {} will > execute 10 times, but i was hoping it would exit when $j was set t

[PHP-WIN] a for-loop syntax question

2004-01-12 Thread Bobo Wieland
Hi... Is there a way to set a for loop to exit when the FIRST of many expresions evaluate to false? the code: for ($i = 0, $j = 0; $i < 10, $j < 5; $i++, $j++) {} will execute 10 times, but i was hoping it would exit when $j was set to 5... Is there some way of doing this? .bobo

RE: [PHP-WIN] Windows XP hang problem

2004-01-12 Thread Mike Brum
It seems to me like you did all the testing you need to and that the problem is F-Secure. Why not give them a call and ask support what's going on since it's prohibiting the execution of one of your executables? Beyond that, I work with anti-virus software - there has to be a way to exclude direc

[PHP-WIN] Windows XP hang problem

2004-01-12 Thread Damjan Rems
Can anybody confirm this bug scenario? Windows XP-SP1, PHP 4.3.4 or 5.0.0b3,F-Secure Antivirus 5.41 When running the simpliest script from documentation in Windows COMMAND prompt, window hangs. Ctrl+C doesn't help. Window has to be killed. I also found this: F-Secure Active, PHP run from local dr

[PHP-WIN] PHP hangs in Windows XP

2004-01-12 Thread d_rems
Can anybody confirm this hang scenario? Windows XP-SP1, PHP 4.3.4 or 5.0.0b3,F-Secure Antivirus 5.41 When running the simpliest script from documentation in Windows COMMAND prompt, window hangs. Ctrl+C doesn't help. Window has to be killed. I also found this: F-Secure Active, PHP run from local

php-windows Digest 12 Jan 2004 09:21:29 -0000 Issue 2077

2004-01-12 Thread php-windows-digest-help
php-windows Digest 12 Jan 2004 09:21:29 - Issue 2077 Topics (messages 22545 through 22552): Calling a function from a hyperlink 22545 by: kaizer boab 22546 by: Mike Brum 22547 by: Stuart 22548 by: kaizer boab 22549 by: Stuart 22550 by: kaizer b

[PHP-WIN] PHP hangs in Windows/XP

2004-01-12 Thread Damjan Rems
Can anybody confirm this bug scenario? Windows XP-SP1, PHP 4.3.4 or 5.0.0b3,F-Secure Antivirus 5.41 When running the simpliest script from documentation in Windows COMMAND prompt, window hangs. Ctrl+C doesn't help. Window has to be killed. I also found this: F-Secure Active, PHP run from local dr