السلام عليكم ورحمه الله وبركاته
عندى مشكله بسيطه فى محاوله استخراج الدوله وعلمها من موقع معين باستخدام الايبى
الكود
رمز PHP:
$urr = 'http://check-host.net/ip-info?host='.$ip;
$content = file($urr);
$data = $content[134];
preg_match('/src="(.*)" \/>/', $data, $matches);
$flag = $matches[1];
$flag= 'http://check-host.net/'.$flag;
$data = $content[135];
preg_match('/<strong>(.*)/', $data, $matches);
$country = $matches[1];
ارجو المساعده من اهل الخبره
أكثر...