Video Tutorial


[insert_php]
$arrr = array();
$url = “http://kartupoker.com/video-promotion.php”;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, ‘1’);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER , false);
$text = curl_exec($ch);
curl_close($ch);
$count=0;

$dom = new DOMDocument;
$dom->loadHTML($text);

$doc = new DOMDocument;

$doc->preserveWhiteSpace = false;

$doc->strictErrorChecking = false;
$doc->recover = true;

$doc->loadHTMLFile($url);

$xpath = new DOMXPath($doc);

$query = “//td[not(@class)]”;

$entries = $xpath->query($query);

foreach ($dom->getElementsByTagName(‘iframe’) as $iframee) {
$video = $iframee->getAttribute(‘src’);
$count++;
// print_r($entries->item($count)->textContent);
echo “
“;
echo ““;
echo “
“;
}
[/insert_php]