Apache SetEnv and regsiter_globals = Off

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pierre

    Apache SetEnv and regsiter_globals = Off

    I use the SetEnv directive in my httpd.conf (before loading LoadModule
    env_module /usr/lib/apache/1.3/mod_env.so) :

    SetEnv var value

    and i must have a php.ini with regsiter_global s = Off
    but when I set the regsiter_global s = Off in php.ini the SetEnv
    directive in httpd.conf don't work :(
    I use php 4.3.3 and apache 1.29 on a Debian

    Is there a way to a solution ?

    Thanks.

    Pierre
  • Agelmar

    #2
    Re: Apache SetEnv and regsiter_global s = Off

    Pierre wrote:[color=blue]
    > I use the SetEnv directive in my httpd.conf (before loading LoadModule
    > env_module /usr/lib/apache/1.3/mod_env.so) :
    >
    > SetEnv var value
    >
    > and i must have a php.ini with regsiter_global s = Off
    > but when I set the regsiter_global s = Off in php.ini the SetEnv
    > directive in httpd.conf don't work :(
    > I use php 4.3.3 and apache 1.29 on a Debian
    >
    > Is there a way to a solution ?
    >
    > Thanks.
    >
    > Pierre[/color]

    What do you mean that the SetEnv directive doesn't work? Are you accessing
    it using $_ENV['whatever']?


    Comment

    • Pierre

      #3
      Re: Apache SetEnv and regsiter_global s = Off

      On Tue, 30 Dec 2003 17:32:32 -0500, "Agelmar"
      <ifetteNOSPAM@c omcast.net> wrote:
      [color=blue]
      >Pierre wrote:[color=green]
      >> I use the SetEnv directive in my httpd.conf (before loading LoadModule
      >> env_module /usr/lib/apache/1.3/mod_env.so) :
      >>
      >> SetEnv var value
      >>
      >> and i must have a php.ini with regsiter_global s = Off
      >> but when I set the regsiter_global s = Off in php.ini the SetEnv
      >> directive in httpd.conf don't work :(
      >> I use php 4.3.3 and apache 1.29 on a Debian
      >>
      >> Is there a way to a solution ?
      >>
      >> Thanks.
      >>
      >> Pierre[/color]
      >
      >What do you mean that the SetEnv directive doesn't work? Are you accessing
      >it using $_ENV['whatever']?[/color]

      No, I use $idpart direct but I try with :
      $_ENV['idpart'];
      but that don't work too :(

      Comment

      Working...