OK, I am working on my own little ad tracking system and want to catch the querystring from the URL.
Somehow,
does NOT give me a query value, although you will find it should everywhere on them intartubes.
Right now, I am doing it like this, using the request URI instead.
(two sperate functions, just pasted this together)
does NOT work when I use it with the HTTP Referer.
Anyone? or should I keep my ham-handed way of doing this?
::emp::
aka
The guy who is working on a fucking TUTORIAL about this. :anon.sml:
Somehow,
Code:
parse_url($_SERVER['HTTP_REFERER']);
Right now, I am doing it like this, using the request URI instead.
Code:
$refer = parse_url($_SERVER['HTTP_REFERER']);
$host = $refer['host'];
$refer = parse_url($_SERVER['REQUEST_URI']);
$query = $refer['query'];
(two sperate functions, just pasted this together)
Code:
$query = $refer['query'];
does NOT work when I use it with the HTTP Referer.
Anyone? or should I keep my ham-handed way of doing this?
::emp::
aka
The guy who is working on a fucking TUTORIAL about this. :anon.sml: