GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   tech question for PHP gurus...please help! (https://gfy.com/showthread.php?t=223652)

PhillipB 01-20-2004 08:02 PM

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 01-20-2004 08:09 PM

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

Good luck,

-Mr. T

Butrflied 01-20-2004 08:11 PM

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

PhillipB 01-20-2004 08:12 PM

Quote:

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?

PhillipB 01-20-2004 08:14 PM

Quote:

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.

fuzebox 01-20-2004 08:16 PM

... Too late.

Yes, $_GET was what you were looking for :)

Butrflied 01-20-2004 08:18 PM

Quote:

Originally posted by APN Philip


That worked! Thanks bro I owe you one.

.. you're welcome :) (and I'm a girl for future reference) :girl

PhillipB 01-20-2004 08:23 PM

My apologies.

magnatique 01-20-2004 08:39 PM

Quote:

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

:P


All times are GMT -7. The time now is 06:20 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123