Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-19 Thread Paul Waring
On 18/04/06, Vernon Webb <[EMAIL PROTECTED]> wrote: > I've recently upgraded a server from Fedora Core 3 to Core 5 in the process > php had > been upgraded from either 3 or 4 to php 5. In doing so I had to do a major > overhaul of > a web site as many things stopped working (.i.e $HTTP_POST_VAR,

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Jochem Maas
Lester Caine wrote: Vernon Webb wrote: Register Globals? You got it. Is there any advantage to having this turned off? It's a major security hole if left on ;) it's a major _potential_ security hole. proper initialized of all [global] variables (and santization of incoming data) means an a

RE: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Jim Moseby
> > It's a major security hole if left on ;) > And convincing people to plug that hole was not happening, so > something > more major was needed. Only if the programmer uses it. As I understand it, register_globals being on doesn't present a security risk in and of itself as long as the progra

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Lester Caine
Vernon Webb wrote: Register Globals? You got it. Is there any advantage to having this turned off? It's a major security hole if left on ;) And convincing people to plug that hole was not happening, so something more major was needed. As I understand it - PHP6 will not even have the option to

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread John Nichel
Vernon Webb wrote: Register Globals? You got it. Is there any advantage to having this turned off? One or two http://us2.php.net/register_globals -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing L

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Vernon Webb
> Register Globals? You got it. Is there any advantage to having this turned off? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread Jay Blanchard
[snip] foreach ($checkbox as $value) { echo "Value: $value\n"; } however the value is no longer being echoed to the page. What am I missing here? This is the code that is being submitted, $num being an incremented value: [/snip] Is the checkbox 'checked'? If not it returns no value.

Re: [PHP] php 3 to 5 upgrade: foreach loop no longer working

2006-04-18 Thread John Nichel
Vernon Webb wrote: I've recently upgraded a server from Fedora Core 3 to Core 5 in the process php had been upgraded from either 3 or 4 to php 5. In doing so I had to do a major overhaul of a web site as many things stopped working (.i.e $HTTP_POST_VAR, etc). Haven't gotten through most of that