örnek: bu etki http://www.example.com/234234/go.html sadece bir iframe kodu
nasıl ben iframe kodu url alabilirim?
go.html:
<iframe style="width: 99%;height:80%;margin:0 auto;border:1px solid grey;" src="i want this url" scrolling="auto" id="iframe_content"></iframe>
ben bu pasajı var, ama onun çok kötü kodlanmış ..
function downloadlink ($d_id)
{
$res = @get_url ('' . 'http://www.example.com/' . $d_id . '/go.html');
$re = explode ('<iframe', $res);
$re = explode ('src="', $re[1]);
$re = explode ('"', $re[1]);
$url = $re[0];
return $url;
}
teşekkür ederim!