1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

is it possible to do this?

Discussion in 'HTML & JavaScript' started by leedaman, Jul 19, 2010.

  1. leedaman

    leedaman Junior Member

    Joined:
    Sep 7, 2009
    Messages:
    132
    Likes Received:
    27
    hi i am currently doing a lot of fb marketing
    the problem i have is the app i am using on page auto invies all friends so as soon as page gets big too many invites go out,
    what i was thinking is there a way to put a index file that will send only 50% to the invite script but the rest directly to my landing`àge diredtly?

    any input on this would be great
     
  2. leedaman

    leedaman Junior Member

    Joined:
    Sep 7, 2009
    Messages:
    132
    Likes Received:
    27
    no help?
     
  3. catchers

    catchers Newbie

    Joined:
    Aug 12, 2010
    Messages:
    32
    Likes Received:
    6
    try this:

    <?php
    $choice = rand(0,1);
    if($choice==0){
    header("Location: hxxp://yourhostdotcom/landingpage.html");
    } else {
    header("Location: hxxp://yourhostdotcom/fbpage.html");
    }
    ?>