Peruttu

PHP Simple Referral Tracking Problem

I currenty have a php tracking script that is tracking incorrectly. It uses mysql to track.

Currently It tracks only traffic from [url removed, login to view]

I need it to track all traffic from [url removed, login to view]

//Sample of the code where i belive the error exists//

<?php

include_once("config.php");

preg_match('@^(?:https?://)?([^/]+)@i',$script_url,$matches);

preg_match('/[^.]+.[^.]+$/',$matches[1],$matches);

$script_domain=$matches[0];

preg_match('@^(?:https?://)?([^/]+)@i',$_SERVER['HTTP_REFERER'],$matches);

preg_match('/[^.]+.[^.]+$/',$matches[1],$matches);

$referrer=$matches[0];

if($script_domain!=$referrer AND $referrer!="" AND !preg_match("!$block_referrers!i",$_SERVER['HTTP_REFERER']))

{

$result=mysql_query("SELECT url,i_ip FROM babeloggerv3_submit_ratio WHERE url='$referrer' AND i_ip='".getenv('REMOTE_ADDR')."'");

$ip_exists=mysql_num_rows($result);

if(!$ip_exists){mysql_query("INSERT INTO babeloggerv3_submit_ratio (time,url,i_ip) VALUES ('".time()."','$referrer','".getenv('REMOTE_ADDR')."')");}

}

?>

//

Im sure its a real small issue perhaps 10-15$ would be enough?

Anyway I appreciate your bids, I will pay via paypal or escrow from GAF after completion. Thanks

Taidot: PHP

Näytä lisää: php tracking refferer, www referral code, www escrow it, where is escrow, sample of bids, referral code, pay php, escrow referral, escrow com via paypal, com problem, php referral tracking code, ifscript_domain referrer referrer, paypal referral tracking, php referral tracking, pay via escrow, escrow com paypal, tracking, time-tracking, PHP simple, error php

Tietoa työnantajasta:
( 42 arvostelua ) Austin, United States

Projektin tunnus: #121991

4 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön

TakeReal

I can update script to all traffic from [login to view URL] I can start today.

$30 USD 1 päivässä
(1252 arvostelua)
7.5
tlchung

let start now

$30 USD 1 päivässä
(35 arvostelua)
6.7
djken

please see pmb

$30 USD 1 päivässä
(37 arvostelua)
4.5
sitesound

$20 is actual bid. Fast turn around.

$30 USD 1 päivässä
(2 arvostelua)
4.2