kangaroojack
29th July 2004, 07:12 PM
Maybe someone could help me out ?
Hi MArk so i wrote everthing together, maybe is easyer to analyze ?
first my domain name http://www.fly-to-australia.com
affconfig.php (located in http://www.fly-to-australia.com/australien_affiliate/
-----------
$domain = "www.fly-to-australia.com/australien_affiliate"; // Your domain name (include www. if used BUT NOT http://)
$server = "localhost"; // Your MySQL server address (usually 'localhost')
$db_user = "b01"; // Your MySQL database username
$db_pass = "123456"; // Your MySQL database password
$database = "123456"; // Your MySQL database name
$currency = "Euro"; // The currency that your affiliates will be paid in
$emailinfo = "mail@post.com"; // Your email address
$yoursitename = "Fly-To-Australia.com - Affiliate - Camper and more -"; // Your sites name
$language = "deu.php"; // language of control panel (only eng.php so far)
For Information: i tested also with www.fly-to-australia.com instead of www.fly-to-australia.com/australien_affiliate as $domain with the same result.
affiliate.php (located in http://www.fly-to-australia.com/australien_affiliate/
-----------
<?php
if($_GET['ref'])
{
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
session_start();
$_SESSION['ref'] = $_GET['ref'];
include "affconfig.php";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 17)");
mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."', '$clientdate', '$clienttime', '$clientbrowse
r', '$clientip', '$clienturl', '')");
}
?>
===> changed cookies to:
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
===> but same result, no sales counted ...
the index.php page is locatetd in http://www.fly-to-australia.com/australien_affiliate/index.php
and contains this:
<?PHP include "affiliate.php";?>
<html>
all klicks are counted but no sales reported.
the Sales page is located in http://www.fly-to-australia.com/test.html
and a other in http://www.fly-to-australia.com/scripts/aus/cgi/question/order.cgi
<?php include "../australien_affiliate/123456.php"; ?> <html>
i also tested with a full path: <?php include "http://www.fly-to-australia.com/australien_affiliate/123456.php"; ?> <html>
and i tested with a test.php (instead of html) page but sales are still not counted.
also i can not see any cookies in my local temp internet foulder. and the best thing, when i update the buy field in the sql database to 1 or 2 (was 0) also there are no entrys in the sale page.
do y have any idea about that?
i need to confirm that before i can go online with the latetst pro verion. and i only can but it if the free version is running fine.
regards joe
Hi MArk so i wrote everthing together, maybe is easyer to analyze ?
first my domain name http://www.fly-to-australia.com
affconfig.php (located in http://www.fly-to-australia.com/australien_affiliate/
-----------
$domain = "www.fly-to-australia.com/australien_affiliate"; // Your domain name (include www. if used BUT NOT http://)
$server = "localhost"; // Your MySQL server address (usually 'localhost')
$db_user = "b01"; // Your MySQL database username
$db_pass = "123456"; // Your MySQL database password
$database = "123456"; // Your MySQL database name
$currency = "Euro"; // The currency that your affiliates will be paid in
$emailinfo = "mail@post.com"; // Your email address
$yoursitename = "Fly-To-Australia.com - Affiliate - Camper and more -"; // Your sites name
$language = "deu.php"; // language of control panel (only eng.php so far)
For Information: i tested also with www.fly-to-australia.com instead of www.fly-to-australia.com/australien_affiliate as $domain with the same result.
affiliate.php (located in http://www.fly-to-australia.com/australien_affiliate/
-----------
<?php
if($_GET['ref'])
{
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
SetCookie ("ref",$_GET['ref'], 0, '/');
session_start();
$_SESSION['ref'] = $_GET['ref'];
include "affconfig.php";
mysql_connect($server, $db_user, $db_pass)
or die ("Database CONNECT Error (line 17)");
mysql_db_query($database, "INSERT INTO clickthroughs VALUES ('".$_GET['ref']."', '$clientdate', '$clienttime', '$clientbrowse
r', '$clientip', '$clienturl', '')");
}
?>
===> changed cookies to:
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
SetCookie ("ref",$_GET['ref']);
===> but same result, no sales counted ...
the index.php page is locatetd in http://www.fly-to-australia.com/australien_affiliate/index.php
and contains this:
<?PHP include "affiliate.php";?>
<html>
all klicks are counted but no sales reported.
the Sales page is located in http://www.fly-to-australia.com/test.html
and a other in http://www.fly-to-australia.com/scripts/aus/cgi/question/order.cgi
<?php include "../australien_affiliate/123456.php"; ?> <html>
i also tested with a full path: <?php include "http://www.fly-to-australia.com/australien_affiliate/123456.php"; ?> <html>
and i tested with a test.php (instead of html) page but sales are still not counted.
also i can not see any cookies in my local temp internet foulder. and the best thing, when i update the buy field in the sql database to 1 or 2 (was 0) also there are no entrys in the sale page.
do y have any idea about that?
i need to confirm that before i can go online with the latetst pro verion. and i only can but it if the free version is running fine.
regards joe