1. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Hey all:

    I am trying to access the enviroment variables (mainly the $REMOTE_USER one) inside a function, but it doesnt seem to be able to access it. I was wondering how I might access it in the function? Any help appreciated!

    IIS Manager
    Uniworx - The Student Website
  2. #2
  3. No Profile Picture
    Devshed Newbie (0 - 499 posts)
    Not sure, but maybe a:

    global $REMOTE_USER;

    inside your function will do the trick. That'd work for any other variable defined outside of the function's scope, but I'm not sure if it applies to server variables (likely so for consistency's sake).


Similar Threads

  1. problem with functions
    By veni123 in forum C Programming
    Replies: 8
    Last Post: February 5th, 2004, 02:22 PM
  2. functions and the passing of variables
    By keef0r in forum HTML Programming
    Replies: 1
    Last Post: January 25th, 2004, 02:42 PM
  3. Replies: 4
    Last Post: December 11th, 2003, 07:12 AM
  4. Replies: 0
    Last Post: December 10th, 2003, 11:54 AM
  5. Replies: 0
    Last Post: December 10th, 2003, 11:40 AM

IMN logo majestic logo threadwatch logo seochat tools logo