Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2003
    Location
    Detroit, MI
    Posts
    7

    Unanswered: Classes & Server Variables

    I am trying to set the values of server variables from methods inside my PHP class modules. The server variables seem to go out of scope when the class file method that set the variables is exited.

    Is there a way to set server variables from within class module methods?

    Thanks in advance.

  2. #2
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    20
    As you dind't post the code how you set the variables the following should work with PHP >= 4.1.0
    Code:
    $_SERVER[<name>] = 'foo';
    also look at the putenv-function

Posting Permissions

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