php proxy ads on footer

Discussion in 'PHP' started by mypoint, Nov 1, 2008.

  1. #1
    hi everytime i place proxy ads on the footer of a php proxy proxified page, the ad displays in both the footer and header

    i only want the ad to display in the footer


    how can i do this? please let me know thanks!
     
    mypoint, Nov 1, 2008 IP
  2. Sir P

    Sir P Peon

    Messages:
    76
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi there,

    You may find that the proxy script your using uses the section you put your code in for the footer aswell as the header. If you tell us which script of give us some code examples then maybe we can help more.

    cheers
     
    Sir P, Nov 2, 2008 IP
  3. mypoint

    mypoint Well-Known Member

    Messages:
    985
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #3
    hi yes i think thats what its doing

    $_response_keys['content-disposition'] = 'Content-Disposition';
    $_response_headers['content-disposition'][0] = empty($_content_disp) ? ($_content_type == 'application/octet_stream' ? 'attachment' : 'inline') . '; filename="' . $_url_parts['file'] . '"' : $_content_disp;
    $_response_keys['content-length'] = 'Content-Length';
    $_response_headers['content-length'][0] = strlen($_response_body);
    $_response_headers = array_filter($_response_headers);
    $_response_keys = array_filter($_response_keys);

    the code goes below this line $_response_keys['content-length'] = 'Content-Length';

    is there a way to fix this? thanks!
     
    mypoint, Nov 2, 2008 IP
  4. mypoint

    mypoint Well-Known Member

    Messages:
    985
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #4
    any help on this please? thanks!
     
    mypoint, Nov 3, 2008 IP
  5. mypoint

    mypoint Well-Known Member

    Messages:
    985
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #5
    ok dont worry about this, i have found the solution thanks!
     
    mypoint, Nov 3, 2008 IP
  6. Sir P

    Sir P Peon

    Messages:
    76
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ok good stuff.

    Sorry I didnt get back to this thread intime. If you need help with it again in future just update the thread :)
     
    Sir P, Nov 4, 2008 IP