PHP Server Environment Variables seem to not registering..

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

    PHP Server Environment Variables seem to not registering..

    How to get Windows XP Server(where PHP Server is running) environment
    variables?

    I use the echo $_ENV['PATH'] seem to not working. The same for any other
    environment variables.

    I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks


  • Pedro

    #2
    Re: PHP Server Environment Variables seem to not registering..

    [ not posted to alt.php ]

    Artco News wrote:[color=blue]
    > How to get Windows XP Server(where PHP Server is running) environment
    > variables?
    >
    > I use the echo $_ENV['PATH'] seem to not working. The same for any other
    > environment variables.
    >
    > I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks[/color]

    Are you running in safe mode?

    Check your php.ini for
    safe_mode
    safe_mode_allow ed_env_vars

    and maybe
    safe_mode_prote cted_env_vars

    --
    I have a spam filter working.
    To mail me include "urkxvq" (with or without the quotes)
    in the subject line, or your mail will be ruthlessly discarded.

    Comment

    • ChronoFish

      #3
      Re: PHP Server Environment Variables seem to not registering..

      In you ini file you should have an attribute called

      variables_order =

      If you use the "recommende d" php.ini, the Environment variables are not
      included. Simply add an "E" to the list. See below:


      ; This directive describes the order in which PHP registers GET, POST,
      Cookie,
      ; Environment and Built-in variables (G, P, C, E & S respectively, often
      ; referred to as EGPCS or GPC). Registration is done from left to right,
      newer
      ; values override older values.
      variables_order = "EGPCS"



      Hope this helps,
      CF



      "Artco News" <artconews@veri zon.net> wrote in message
      news:Y29qb.304$ Ca.167@nwrdny02 .gnilink.net...[color=blue]
      > How to get Windows XP Server(where PHP Server is running) environment
      > variables?
      >
      > I use the echo $_ENV['PATH'] seem to not working. The same for any other
      > environment variables.
      >
      > I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks
      >
      >[/color]


      Comment

      • Artco News

        #4
        Re: PHP Server Environment Variables seem to not registering..

        Thanks ... I'll do that.

        "ChronoFish " <deja@chronofis h.com> wrote in message
        news:Ll9qb.1658 $oB3.280@lakere ad03...[color=blue]
        > In you ini file you should have an attribute called
        >
        > variables_order =
        >
        > If you use the "recommende d" php.ini, the Environment variables are not
        > included. Simply add an "E" to the list. See below:
        >
        >
        > ; This directive describes the order in which PHP registers GET, POST,
        > Cookie,
        > ; Environment and Built-in variables (G, P, C, E & S respectively, often
        > ; referred to as EGPCS or GPC). Registration is done from left to right,
        > newer
        > ; values override older values.
        > variables_order = "EGPCS"
        >
        >
        >
        > Hope this helps,
        > CF
        >
        >
        >
        > "Artco News" <artconews@veri zon.net> wrote in message
        > news:Y29qb.304$ Ca.167@nwrdny02 .gnilink.net...[color=green]
        > > How to get Windows XP Server(where PHP Server is running) environment
        > > variables?
        > >
        > > I use the echo $_ENV['PATH'] seem to not working. The same for any other
        > > environment variables.
        > >
        > > I'm running PHP-4.3.4 version with Apache 2.0.48. Thanks
        > >
        > >[/color]
        >
        >[/color]


        Comment

        Working...