Cancelado

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

Habilidades: PHP

Ver mais: php tracking refferer, sample bids, referral code, pay php, escrow referral, php referral tracking code, paypal referral tracking, php referral tracking, pay via escrow, tracking, php simple, error php, belive, tracking php code, traffic referral, script referrer, paypal simple php, php insert select, php code sample, php site sample, sure problem, paypal issue, php escrow script, paypal tracking, tracking site

Acerca do Empregador:
( 42 comentários ) Austin, United States

ID do Projeto: #121991

4 freelancers estão ofertando em média $30 para este trabalho

TakeReal

I can update script to all traffic from www.site.com I can start today.

$30 USD em 1 dia
(1252 Comentários)
7.5
tlchung

let start now

$30 USD em 1 dia
(35 Comentários)
6.7
djken

please see pmb

$30 USD em 1 dia
(37 Comentários)
4.5
sitesound

$20 is actual bid. Fast turn around.

$30 USD em 1 dia
(2 Comentários)
4.2