Need Help with PHP

rettaibi

Regular Member
Joined
Jun 25, 2012
Messages
475
Reaction score
838
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>
 
O i thought maybe it could now i have to find an other way.

Thank you very much.
 
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.
 
I wonder if you could cUrl it with FollowLocation set to false...???
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.
 
Back
Top