tech question for PHP gurus...please help!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PhillipB
    Just a Simple Carpenter
    • May 2003
    • 1338

    #1

    tech question for PHP gurus...please help!

    Ok, so on my old server I could parse usernames in HTML by using this:

    echo $PHP_AUTH_USER


    When I switched to a new server running Plesk, it didn't work. So after a little reading about "Global Variables" and mine being turned off, I had to swith the code to this:

    echo $_SERVER['PHP_AUTH_USER']

    Now everything works fine except for my linking codes: I used to pass a "Click" variable through a URL to my tours. The URL would be something like http://www.domain.com?CLICK=xxxxx

    and in my tour page I would have:

    echo $CLICK

    However, on the new server, it's not being passed to the page. The CLICK= part just ends up blank. Is there something I have to change because of my global variables being turned off or ???


    Thanks in advance.
  • Mr. T
    Registered User
    • Jun 2002
    • 62

    #2
    You need to turn on register_globals in your php.ini file...

    Good luck,

    -Mr. T
    Mr. T!

    Comment

    • Butrflied
      Confirmed User
      • Aug 2002
      • 1344

      #3
      If you dont want to parse the whole query string .. you should be able to get the variable with $_GET['CLICK'] .. I believe
      ~Butrflied~

      Comment

      • PhillipB
        Just a Simple Carpenter
        • May 2003
        • 1338

        #4
        Originally posted by Mr. T
        You need to turn on register_globals in your php.ini file...

        Good luck,

        -Mr. T
        Thanks Mr. T. I was told that isn't a good idea from a security standpoint. Is there another solution?

        Comment

        • PhillipB
          Just a Simple Carpenter
          • May 2003
          • 1338

          #5
          Originally posted by Butrflied
          If you dont want to parse the whole query string .. you should be able to get the variable with $_GET['CLICK'] .. I believe
          That worked! Thanks bro I owe you one.

          Comment

          • fuzebox
            making it rain
            • Oct 2003
            • 22353

            #6
            ... Too late.

            Yes, $_GET was what you were looking for

            Comment

            • Butrflied
              Confirmed User
              • Aug 2002
              • 1344

              #7
              Originally posted by APN Philip


              That worked! Thanks bro I owe you one.
              .. you're welcome (and I'm a girl for future reference)
              ~Butrflied~

              Comment

              • PhillipB
                Just a Simple Carpenter
                • May 2003
                • 1338

                #8
                My apologies.

                Comment

                • magnatique
                  Confirmed User
                  • Jan 2001
                  • 1830

                  #9
                  Originally posted by APN Philip
                  My apologies.
                  you better appologize to the lady phil... geeze

                  :P

                  Stunner Media Programs: StandAhead | IndieBucks | BoyCrushCash | Phoenixxx | EmoProfits | BritishBucks | HunkMoney | LatinoBucks
                  Make $$$ with Gay! Lowest Minimum Payouts in the Business, Perfect Track Record, Amazing Sites

                  Comment

                  Working...