Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-20-2004, 08:02 PM   #1
PhillipB
Just a Simple Carpenter
 
Join Date: May 2003
Location: Your mom's house...
Posts: 1,338
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.
PhillipB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:09 PM   #2
Mr. T
Registered User
 
Join Date: Jun 2002
Posts: 62
You need to turn on register_globals in your php.ini file...

Good luck,

-Mr. T
__________________
Mr. T!
Mr. T is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:11 PM   #3
Butrflied
Confirmed User
 
Join Date: Aug 2002
Location: SoFLa
Posts: 1,344
If you dont want to parse the whole query string .. you should be able to get the variable with $_GET['CLICK'] .. I believe
__________________
~Butrflied~
Butrflied is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:12 PM   #4
PhillipB
Just a Simple Carpenter
 
Join Date: May 2003
Location: Your mom's house...
Posts: 1,338
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:14 PM   #5
PhillipB
Just a Simple Carpenter
 
Join Date: May 2003
Location: Your mom's house...
Posts: 1,338
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.
PhillipB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:16 PM   #6
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,119
... Too late.

Yes, $_GET was what you were looking for
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:18 PM   #7
Butrflied
Confirmed User
 
Join Date: Aug 2002
Location: SoFLa
Posts: 1,344
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)
__________________
~Butrflied~
Butrflied is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:23 PM   #8
PhillipB
Just a Simple Carpenter
 
Join Date: May 2003
Location: Your mom's house...
Posts: 1,338
My apologies.
PhillipB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-20-2004, 08:39 PM   #9
magnatique
Confirmed User
 
magnatique's Avatar
 
Join Date: Jan 2001
Location: Montreal
Posts: 1,830
Quote:
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
magnatique is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.