Hi,
I hope you can help. I'm completely new to php and am trying to use a redirect script to set up multiple ClickBank landing pages, but something's gone wrong.
I was given some advice on how to do it but I obviously messed up somewhere along the line and would appreciate an expert eye being cast over what I've done as I'm not sure what the problem is.
Any advice you can give me would be gratefully received!
My ClickBank nickname is major. I currently have 3 products
being sold through ClickBank. They are at -
I created redir.php and uploaded it to my server as follows -
==========================
<?
if(!$pa){
$pa=1;
}
$num = array(
1 => "2 => "3 => ");
Header( "Location: $num[$pa]"
;
?>
==========================
I created and uploaded click.php as follows -
==========================
<?
$loc = "Header( "Location: $loc"
;
setcookie ("pa","", time() -10000, "/", ".4future-trading.com",
0); file://setting a new cookie
setcookie ("af","", time() -10000, "/", ".4future-trading.com",
0); file://setting a new cookie
setcookie ("pa",$p, time() +86400, "/", ".4future-trading.com",
0); file://setting a new cookie
setcookie ("af",$a, time() +86400, "/", ".4future-trading.com",
0); file://setting a new cookie
?>
==========================
Before doing all this I created and uploaded a test.php file and that worked fine.
My ClickBank home page had been set to but I changed it to
When I then tried going to
(hoping this would take me to /midas.html) I got the following
error message -
Parse error: parse error in
/home2/sites/adc/4future-trading.com/web/click.php on line 4
I'm afraid I'm a bit of a technophobe and php is completely new to me, so it's quite likely I've made some glaring error, but alas I don't know what it is!! Can you see where I've gone wrong and what I need to do to fix it?
For the meantime I've just reset my ClickBank home page to
Thanks for any help you're able to give.
Regards,
Andrew
I hope you can help. I'm completely new to php and am trying to use a redirect script to set up multiple ClickBank landing pages, but something's gone wrong.
I was given some advice on how to do it but I obviously messed up somewhere along the line and would appreciate an expert eye being cast over what I've done as I'm not sure what the problem is.
Any advice you can give me would be gratefully received!
My ClickBank nickname is major. I currently have 3 products
being sold through ClickBank. They are at -
I created redir.php and uploaded it to my server as follows -
==========================
<?
if(!$pa){
$pa=1;
}
$num = array(
1 => "2 => "3 => ");
Header( "Location: $num[$pa]"
?>
==========================
I created and uploaded click.php as follows -
==========================
<?
$loc = "Header( "Location: $loc"
setcookie ("pa","", time() -10000, "/", ".4future-trading.com",
0); file://setting a new cookie
setcookie ("af","", time() -10000, "/", ".4future-trading.com",
0); file://setting a new cookie
setcookie ("pa",$p, time() +86400, "/", ".4future-trading.com",
0); file://setting a new cookie
setcookie ("af",$a, time() +86400, "/", ".4future-trading.com",
0); file://setting a new cookie
?>
==========================
Before doing all this I created and uploaded a test.php file and that worked fine.
My ClickBank home page had been set to but I changed it to
When I then tried going to
(hoping this would take me to /midas.html) I got the following
error message -
Parse error: parse error in
/home2/sites/adc/4future-trading.com/web/click.php on line 4
I'm afraid I'm a bit of a technophobe and php is completely new to me, so it's quite likely I've made some glaring error, but alas I don't know what it is!! Can you see where I've gone wrong and what I need to do to fix it?
For the meantime I've just reset my ClickBank home page to
Thanks for any help you're able to give.
Regards,
Andrew