Re: [PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-03 Thread Steve Yates
> From: Alex Shi [mailto:[EMAIL PROTECTED]] > 1. why PHP changed the way to access submitted vars; Because if you use a hidden variable like $validuser='yes' inside your script you probably forgot to check whether the user did this: www.eol.ca/page.php?validuser=yes > 2. any good suggestion

Re: [PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-01 Thread Mike Dunlop
That's because in the newer versions of php the register globals directive is set to off by default...If you turn that directive on and then restart apache, you will be able address GET/POST vars normally (by their identical var name) - Mike D >Hi, > >I didn't realized that PHP had been go

Re: [PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-01 Thread Alex Shi
THanks! "John W. Holmes" <[EMAIL PROTECTED]> wrote in message 000f01c269a4$a7329be0$7c02a8c0@coconut">news:000f01c269a4$a7329be0$7c02a8c0@coconut... > > I didn't realized that PHP had been going so fast that it was creating > > problems for compatiblility. > > > > Here is my situation: PHP on m

RE: [PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-01 Thread John W. Holmes
> I didn't realized that PHP had been going so fast that it was creating > problems for compatiblility. > > Here is my situation: PHP on my development server is 4.0.6 while > on the application server it is PHP 4.2.2. I bet you all know that there's > a huge basic differences between the two but

RE: [PHP] PHP 4.2.2 vs PHP 4.0.6

2002-10-01 Thread Jarrad Kabral
Alex You can change back to the old way of parsing vars by simply changing the "register_globals" setting to "on" in your PHP config. Though this is certainly not recommended (mainly for security concerns). Good PHP coding practice suggests that you use superglobals when you wish to access sessi