Re: [PHP] Apache 2.*

This is a discussion on Re: [PHP] Apache 2.* within the PHP General forums, part of the PHP Programming Forums category; --- Martin Hudec <corwin@aeternal.net> wrote: > what you're looking for is called Register Globals which is ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-24-2003
Chris Shiflett
 
Posts: n/a
Default Re: [PHP] Apache 2.*

--- Martin Hudec <corwin@aeternal.net> wrote:
> what you're looking for is called Register Globals which is turned
> off, therefore you just cannot use $variable but must use
> $HTTP_POST_VARS['variable'].


To add to this, if register_globals is disabled by default, it is likely
that you're using a version of PHP that is recent enough to have $_POST.
So, you can use $_POST['foo'] instead of $HTTP_POST_VARS['foo']. Not only
is it shorter, I believe the older name is deprecated.

Chris

=====
Chris Shiflett - http://shiflett.org/

PHP Security Handbook
Coming mid-2004
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
Reply With Quote
  #2 (permalink)  
Old 11-24-2003
Martin Hudec
 
Posts: n/a
Default Re: [PHP] Apache 2.*

Yep I forgot to mention that it is off by default :). Hmmm nice to know that
there is shorter name :). Thanks for info, I haven't used PHP for long time.

On Monday 24 November 2003 17:13, Chris Shiflett wrote:
> To add to this, if register_globals is disabled by default, it is likely
> that you're using a version of PHP that is recent enough to have $_POST.
> So, you can use $_POST['foo'] instead of $HTTP_POST_VARS['foo']. Not only
> is it shorter, I believe the older name is deprecated.


--
:
:. kind regards
:.. Martin Hudec
:.:
:.: =w= http://www.aeternal.net
:.: =m= +421.907.303393
:.: =@= corwin@aeternal.net
:.:
:.: "When you want something, all the universe
:.: conspires in helping you to achieve it."
:.: - The Alchemist (Paulo Coelho)
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:24 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0