PDA

View Full Version : tracking page



pghcollectibles
05-18-2009, 11:01 PM
lets say i have a tracking page that i use an include() at the beginning of each page i want to track

how would i go about loading that page before EVERY file that may get requested, even pictures etc? htaccess?

the page has no output or headers so it wont occur certain errors, but i would rather (even though the page executes very quickly) that its url does not "flash" in the address bar (like if htaccess had a rewrite rule that called it and gave it the HTTP_HOST . REQUEST_URI as a GET variable then the tracking file had at the end a header location of the $_GET['page'] or whatever. I would do a preg_match() on the GET variable to try to avoid injections)

i just dont think thats the "correct" way, even though it may do the job