[Pmwiki-users] PmWiki 1.0.0 released - HTTP_-variables

Knut Alboldt alboldt
Mon Jun 14 07:56:21 CDT 2004


At 15:09 14.06.2004, you wrote:
>It doesn't hurt to still use $HTTP_POST_VARS and the others--they're
>still in PHP at least through version 4.3 and the prerelease versions
>of 5.0--I just wanted to go ahead and switch the core code to be
>up-to-date with PHP's standards.

To be safe in future I'd like to change this anyway.


>The replacements are $_GET, $_POST, and $_REQUEST.  $_REQUEST is
>a combination of $_GET and $_POST.  Furthermore, these are "autoglobals"--
>they're automatically global in every function without needing a
>global line explicitly making them so.
>
>Pm

Isn't the $_REQUEST-array reset in pmwiki.php ? I thought this is done with 
the code

if (ini_get('register_globals')) {
   foreach($_REQUEST as $k=>$v) { unset(${$k}); }
}

at the very beginning. So if I use $_REQUEST, there will be no variables, 
right ?

Knut

>On Mon, Jun 14, 2004 at 08:31:45AM +0200, Knut Alboldt wrote:
> >
> > >* Eliminated references to PHP's $HTTP_* variables (these were
> > >deprecated in PHP 4.1).
> >
> > just went through my config.php and found that I'm still using
> > HTTP_POST_VARS['cancel'] to get the value of a cancel-button.
> > What should I use instead to get the value of a posted variable,
> > $_REQUEST[..] ? I think that might have some other input as well (GET,
> > cookies etc) depending on some PHP-Ini-Settings, right ?
> >
> > Knut
> >




More information about the pmwiki-users mailing list