goldenCAN php code and cj - working or?

Discussion in 'Commission Junction' started by profusion, Sep 14, 2008.

  1. #1
    I failed to integrate my php code :( even I put it to blanck file.php and try to load it, it does not work?
    someone php guru here? the golden CAN dive me that code:

    <?php
    $SID="45A8F8CD-ECDA-40DC-BC5A-A70B8E3116A9";
    $IPAddress = urlencode($_SERVER['REMOTE_ADDR']);
    $UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']);
    $Host=urlencode($_SERVER['HTTP_HOST']);
    $PageURL=urlencode($_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']);
    $URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=".$SID;
    $URL=$URL.'&Host='.$Host;
    $URL = $URL.'&PageURL='.$PageURL;
    $URL = $URL.'&IPAddress='.$IPAddress;
    $URL = $URL.'&UserAgent='.$UserAgent;
    include($URL);
    ?>
     
    profusion, Sep 14, 2008 IP
  2. hammerking

    hammerking Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Bro this is not rite place to sow yourr error..
     
    hammerking, Sep 14, 2008 IP
  3. profusion

    profusion Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ok I just did it, del the post!
     
    profusion, Sep 15, 2008 IP
  4. arrisweb

    arrisweb Well-Known Member

    Messages:
    1,277
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    160
    #4
    try this include($URL); changed to readfile($URL);


    <?php
    $SID="45A8F8CD-ECDA-40DC-BC5A-A70B8E3116A9";
    $IPAddress = urlencode($_SERVER['REMOTE_ADDR']);
    $UserAgent = urlencode($_SERVER['HTTP_USER_AGENT']);
    $Host=urlencode($_SERVER['HTTP_HOST']);
    $PageURL=urlencode($_SERVER['SCRIPT_NAME'].'?'.$_SERVER['QUERY_STRING']);
    $URL="http://si.goldencan.com/GetData.aspx?ver=2.0&SID=".$SID;
    $URL=$URL.'&Host='.$Host;
    $URL = $URL.'&PageURL='.$PageURL;
    $URL = $URL.'&IPAddress='.$IPAddress;
    $URL = $URL.'&UserAgent='.$UserAgent;
    readfile($URL);
    ?>
     
    arrisweb, Sep 15, 2008 IP
  5. profusion

    profusion Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    thanks ! also include function was not On :)
     
    profusion, Sep 15, 2008 IP
  6. edwardc18

    edwardc18 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi arrisweb & profusion!

    Thanks for the Question and the answer. I'm not a programmer. so, I spend around 2hrs to solved this problem. just one word "include" waste my time. anyway thanks both of you. I change include to readfile its working fine.

    And You have more advantage script link this, or similar but more advantage. please letme know.

    Regards;
    Edward
     
    edwardc18, Nov 10, 2008 IP