Professional Web Applications Themes

Global variable question question - PHP Development

When registered globals is set to off this does not effect the $PHP_SELF variable right? In other words I should be able to call $PHP_SELF with out having to do this $_SERVER['PHP_SELF'], right? Thanks, Jason Giangrande...

  1. #1

    Default Global variable question question

    When registered globals is set to off this does not effect the $PHP_SELF
    variable right? In other words I should be able to call $PHP_SELF with
    out having to do this $_SERVER['PHP_SELF'], right?

    Thanks,
    Jason Giangrande

    Jason Giangrande Guest

  2. #2

    Default Re: Global variable question question


    "Jason Giangrande" <jasongiangrande.org> wrote in message
    news:1058987969.29509.10.cameldragon.giangrande.o rg...
    > When registered globals is set to off this does not effect the $PHP_SELF
    > variable right? In other words I should be able to call $PHP_SELF with
    > out having to do this $_SERVER['PHP_SELF'], right?
    >
    > Thanks,
    > Jason Giangrande
    I would assume that if you turned register_globals off $PHP_SELF will no
    longer be available. Course you can always extract($_SERVER); if you want
    the effect of register_globals inside your script without turning the
    feature on globally.
    - Kevin


    Kevin Stone Guest

  3. #3

    Default Re: [PHP] Global variable question question

    > When registered globals is set to off this does not effect the $PHP_SELF
    > variable right? In other words I should be able to call $PHP_SELF with
    > out having to do this $_SERVER['PHP_SELF'], right?
    No. With register_globals OFF, $PHP_SELF is not set.

    ---John Holmes...
    Cpt John W. Holmes Guest

  4. #4

    Default Re: [PHP] Global variable question question

    Actually, I am running PHP 4.3.2 on a Gentoo Linux box with
    registered_globals set to Off and $PHP_SELF does work. The production
    box running Red Hat and PHP 4.3.0, with register_globals also set to
    Off, doesn't work using $PHP_SELF (as apparently it should), and this is
    why I was asking.

    Jason

    On Wed, 2003-07-23 at 16:13, Lars Torben Wilson wrote:
    > On Wed, 2003-07-23 at 12:19, Jason Giangrande wrote:
    > > When registered globals is set to off this does not effect the $PHP_SELF
    > > variable right? In other words I should be able to call $PHP_SELF with
    > > out having to do this $_SERVER['PHP_SELF'], right?
    > >
    > > Thanks,
    > > Jason Giangrande
    >
    > Without going into why you didn't read the manual or just try it, the
    > answer is 'wrong'. ;) If register_globals is off, $_SERVER['PHP_SELF']
    > is what you will need.
    >
    >
    > Good luck,
    >
    > Torben
    >
    Jason Giangrande Guest

Similar Threads

  1. $GLOBAL question
    By Robin Kopetzky in forum PHP Development
    Replies: 3
    Last Post: August 18th, 08:41 PM
  2. [PHP] $GLOBAL question
    By Jonathan Pitcher in forum PHP Development
    Replies: 0
    Last Post: August 18th, 05:48 PM
  3. [PHP-DEV] Making a variable global question
    By Ken Spencer in forum PHP Development
    Replies: 3
    Last Post: August 1st, 06:35 PM
  4. Replies: 1
    Last Post: July 15th, 02:23 PM
  5. Replies: 0
    Last Post: July 15th, 12:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139