Jump to content

rj2kix

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

rj2kix's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. on my index page i store the referrer of the website in a cookie, and on my signup page, it checks to see if the cookie was set by a common referrer, or by an affiliate. this will then update my admin statistics with who is referrering me the most signups. whether it be search engines, myspace, affiliates, etc.
  2. what can i use in place of HTTP_REFERER ? because I also use it for detecting where my incoming links are to correlate them with potential conversions for my admin stats. $ref = $_SERVER['HTTP_REFERER']; if (strpos($ref,"myspace.com") !== false && strpos($ref,"myspace.com") != '') setcookie("aff", "myspace"); elseif (strpos($ref,"google.com") !== false && strpos($ref,"google.com") != '') setcookie("aff", "google"); elseif (strpos($ref,"yahoo.com") !== false && strpos($ref,"yahoo.com") != '') setcookie("aff", "yahoo"); elseif (strpos($ref,"msn.com") !== false && strpos($ref,"msn.com") != '') setcookie("aff", "msn"); else setcookie("aff", "typein"); }
  3. anyone have an idea on why my code isnt working or what i should do?
  4. i'm still not clear on a way to get what i'm trying to do accomplished. both codes i've written work flawlessly on firefox, but i need a solution that works with IE7! IE7 is the devil.
  5. why does my HTTP_REFERER code and my Session code both work fine on firefox, and not work at all in ie7?
  6. okay so i implemented sessions, good idea. had session start on the page where they finish taking the Karma Test and set a session variable. Then on the Results page that they are supposed to only see if they've taken the test, I check to see if that sesion variable is set, if it is not set, they go back to the home page. WELLLLL This AGAIN works perfectly in Firefox but STILL does not work in IE7!!! I am getting very frustrated.
  7. well i use this script to protect my results end pages from users who just go straight to them without going thru my site first. is there any other methods i can employ that is mutli browser compatible?
  8. nobody? i'm scratchin my brain here i dont know if its my server or my syntax or ie7's craziness. i'm a firefox guy myself and i build and test everything in it
  9. hello, i have a simple code for my website, that checks to see if they were sent to the page thru the appropriate referral page. if not, they are then redirected to the home page and denied access to said page. this code i have works fine on firefox, but just today i discovered it does not work on ie7 and who knows what other browsers it might not work on. if you could please review and then give some advice i'd really appreciate figuring out this problem. <? $ref = getenv("HTTP_REFERER"); $pos = strpos($ref,"results1.php"); if ($pos === false) { $URL="http://www.truelifekarma.com/index.php?aff=resultspage"; header ("Location: $URL"); } else { } ?>
  10. I have admin statistics for my site, and this code is not working out for me... it counts raws and uniques exactly the same, I can sit and refresh my site and watch the raws and uniques go up both the same exact number. What is wrong with my code that this is happening? <? $visitiedd = $_COOKIE["cameheretoday"]; if(empty($visitedd)) { $result2 = mysql_query("select uniques from stats where date=curdate()"); $blanique = mysql_result($result2,0,"uniques"); $blanique++; $result2 = mysql_query("update stats set uniques=$blanique where date=curdate()"); setcookie("cameheretoday", "yes", time()+86400); } $result = mysql_query("select raws from stats where date=curdate()"); $rawsss = mysql_result($result,0,"raws") ; $rawsss++; $result = mysql_query("update stats set raws=$rawsss where date=curdate()"); ?>
  11. i figured out a way that seems to work up to 98% accurately, with maxmind geoip thanks ythough!
  12. but people in UK and Canada speak english... I need people from US to go to 1 page People from UK to go to another page People from Canada to go to another page and everyone else to go another page
  13. Does anyone know of some good ways to filter traffic by country? I can only monetize US, UK, and Canada traffic, but must send them to a different thing for each country. All other countries I would like to send somewhere else. Help is much appreciated. Thanks in advance. PM ME or reply here
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.