Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created July 30, 2013 08:34
Show Gist options
  • Save phpfiddle/6111276 to your computer and use it in GitHub Desktop.
Save phpfiddle/6111276 to your computer and use it in GitHub Desktop.
Umhay.net mt.SiniCHi test get
<?php
$link = 'http://s2.truyen18.org/doctruyen/mom-is-my-classmate/chapter-36/96607.html';
$link1 = 'http://truyen.vnsharing.net/Truyen/MTO-SORA-NO-OTOSHIMONO/Chapter-65-Pha%CC%81o-Hoa?id=75988';
$ch = curl_init();
curl_setopt ($ch, CURLOPT_URL, $link1);
curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13');
curl_setopt ($ch, CURLOPT_HTTPHEADER, array ( "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Language: en-us,en;q=0.5", "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7" ));
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$tan = curl_exec($ch);
curl_close($ch);
$part = explode("http://2.bp.blogspot.com/", $tan);
array_shift($part);
foreach ($part as $url) {
echo '<img src="http://2.bp.blogspot.com/'.$url.'" /><br />';
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment