'A' is site with Javascript alert(document.domain);
'B' is the site.
Now my problem is that i want to iframe 'A' site under 'B', so that whenever I will open 'B' site , it should showme 'A' site with javascript popup (document.domain) of 'A'.
Here i coded something which is not working correctly, here it is running javascript under 'B' but i want it to run under 'A'.
<?php
$ch = curl_init();
curl_setopt_array($ch, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => 'http://mysites.com/index.php',
CURLOPT_USERAGENT => 'ghfhfh'
));
$resp = curl_exec($ch);
echo $resp;
echo $_SERVER['REQUEST_URI'];
curl_close($ch);
?>
This is the code in 'B' site index.
After opening 'B' site the javascript pops up 'B' 's domain not 'A'.
anyone help me please.