Get exclusive CAP network offers from top brands

View CAP Offers

PHP Re-Direction script

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #605847
    KamielM
    Member

    Hi there,

    I’m wanting to use a PHP re-direct script on my site.

    I was planning on using something like the following:

    [php]
    //Redirect Browser
    header(“Location: http://www.YourSite.com/”);
    ?>
    [/php]
    However, I’ve heard stories that using a header tag like that can cause the cookie not to drop correctly.

    Can anyone confirm that? And if that’s true, can you offer some other ways to write an effective PHP script?

    Thanks a load in advance …

    #753708
    triplecrown
    Member

    Use the following:

    [PHP] header(“Location: http://www.affiliate-web-site-url.com/clickthrgh.asp?btag=affiliatecode”);
    exit;
    ?>[/PHP]

    The affiliate tag is placed after the domain “? so your affiliate tracking code is forwarded. You’d use something similiar, but not the “btag” of coarse.

Viewing 2 posts - 1 through 2 (of 2 total)