/ Published in: PHP
Expand |
Embed | Plain Text
<?php $url="http://test.com/"; $ch = curl_init(); $userAgent = 'Googlebot/2.1 (http://www.googlebot.com/bot.html)'; curl_setopt($ch, CURLOPT_USERAGENT, $userAgent); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); $data = curl_exec ($ch); curl_close ($ch); $regex = '/<p class=\"title\"><a href=\"\/watch\/([^`]*?)<\/p>/';; } ?>
You need to login to post a comment.
