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

Need Help with PHP

Discussion in 'PHP & Perl' started by rettaibi, Aug 9, 2012.

  1. rettaibi

    rettaibi Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    440
    Likes Received:
    799
    Hello,

    I don't really understand php but i got stuck with something i looked on google but did not found what i wanted.

    I have 1 link in iframe but de link has a page and then redirects to another page so it goes from site 1 to site 2.

    Is there any php code that stops it from going to site 2.

    i am using the cpaframer of brad.

    PHP:
    $html_frame_code '<frameset rows="260,*" frameborder="0" border="0" framespacing="0">
    <frame src="LINK.co/index.html"  scrolling="no" noresize>
     
  2. Autumn

    Autumn Elite Member

    Joined:
    Nov 18, 2010
    Messages:
    2,197
    Likes Received:
    3,041
    Occupation:
    I figure out ways to make money online and then au
    Location:
    Spamville
    You can't stop a server side redirect on another domain that you don't control with PHP.
     
    • Thanks Thanks x 2
  3. rettaibi

    rettaibi Regular Member

    Joined:
    Jun 25, 2012
    Messages:
    440
    Likes Received:
    799
    O i thought maybe it could now i have to find an other way.

    Thank you very much.
     
  4. maple_toast

    maple_toast Newbie

    Joined:
    Jul 23, 2008
    Messages:
    30
    Likes Received:
    50
    I wonder if you could cUrl it with FollowLocation set to false...???
     
  5. gimme4free

    gimme4free Executive VIP Jr. VIP Premium Member

    Joined:
    Oct 22, 2008
    Messages:
    1,881
    Likes Received:
    1,932
    You can detect URL changes within an iFrame & set something to happen upon a URL change but a redirect is in place the majority of the time on a blank page so there would be no point.
     
  6. SonicSam

    SonicSam Registered Member

    Joined:
    Aug 21, 2012
    Messages:
    57
    Likes Received:
    5
    Location:
    X
    Depends on how the redirection is implemented. However you could manually remove any redirection code before outputting the cURL results. However the IP visiting that URL would be the IP of the hosting plan that is running the cURL request, or a proxy specified in curl_setopt, both solutions I don't think OP wants.