Welcome to WebmasterWorld Guest from 22.214.171.124 , register , free tools , login , search , pro membership , help , library , announcements , recent posts , open posts Become a Pro Member
Realtime URL collection; I'm lookin for where the user is, not where he/she came from. Willis
Right now I have a hits table that goes with my counter and it records as one would expect, every hit the user makes.
As is my recording part of the script is using
I know that collects the referer; but I want the realtime url.
I've looked around and found:
But after I did some tests - that would not include anything after the index.php part; meaning:
ROOT/test.php?page=2 & ROOT/test.php
I need that - for example -?page=2 part.
How can I get it as the page exists, not waiting for the next click?
I'm not a PHP guy, but I've done a similar setup myself in ASP - what you need to do is take the query string data (there is a variable for this, in ASP it's just QUERY_STRING), prefix it with a question mark, and throw it in after the URL.
So you would be inserting URL?QUERY_STRING
Anyway ... hope this at least tells you where to look for the data ;)
You want $_SERVER['REQUEST_URI'] [ php.net] Willis
Thanks guys; digitalv I was given ur idea a shot but . . hehe its so much simpler when the feature is present automaticly. Thanks Timotheos makes this much easier for future plans.
Hey side question - - Is it possible using PHP to distinguish if the browser in question is using frames to view the site?
Im sorry this is the wrong thread but i need an answer from Willis... the old thread was locked.
As a n00b...
"This entire time Ive been trying barn_de 's method; all I had to do was add one more line pointing out the location of php4ts.dll."
Exactly, what did that line contain? And where did you put it?
Thank you very much