$instagram = "ugur2d";
$kaynak = file_get_contents("https://www.instagram.com/$instagram/");
preg_match('@<title>(.*?)</title>@si', $kaynak, $iglink);
echo $iglink[1];
Screen is empty. How can i run it?
$instagram = "ugur2d";
$kaynak = file_get_contents("https://www.instagram.com/$instagram/");
preg_match('@<title>(.*?)</title>@si', $kaynak, $iglink);
echo $iglink[1];
Screen is empty. How can i run it?
After some checkings... your url returns error 404 - file_get_contents will return false if 404 is returned by the server (instagram returns a 404 error page if profile does not exist)
thats why you dont get any result!
anyway you should use curl instead!