<?php
$Url = 'http://www.tinymoviez142.org/tt3253624?soaked-in-bleach';
function GetPage($url)
{
$user_agent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 15);
$data = curl_exec($ch);
curl_close($ch);
return $data;
}
// $Get = file_get_contents($Url);
$Get = GetPage($Url);
if (!$Get)
{
die('مشکل در اتصال');
}
preg_match("/<title>(.*?)<\\/title>/", $Get, $Title);
echo '<p>Title: ' . $Title[1] . '</p>';
preg_match("/<meta.*?\"description\".*?content.*?\"(.*?)\".*?>/", $Get, $Description);
echo '<p>Meta "Description": ' . $Description[1] . '</p>';
preg_match("/<meta.*?\"og:description\".*?content.*?\"(.*?)\".*?>/", $Get, $OgDescription);
echo '<p>Meta "og:description": ' . $OgDescription[1] . '</p>';
require_once ('simple_html_dom.php');
$html = str_get_html($Get);
$About = $html->find('#page > div.post > table > tbody');
echo $About[0] /*->plaintext*/;
?>