Skip to content

Instantly share code, notes, and snippets.

@phpfiddle
Created July 30, 2013 14:21
Show Gist options
  • Save phpfiddle/6113331 to your computer and use it in GitHub Desktop.
Save phpfiddle/6113331 to your computer and use it in GitHub Desktop.
Umhay.net test code getLInk manga
Exm: </br>
http://s2.truyen18.org/doctruyen/mom-is-my-classmate/chapter-36/96607.html </br>
http://truyen.vnsharing.net/Truyen/MTO-SORA-NO-OTOSHIMONO/Chapter-65-Pha%CC%81o-Hoa?id=75988 </br></br>
<!---Form get link -->
<form method="post" action="">
<samp>LINK get:</samp>
<input type="text" name="getlink" size="30" />
<input type="submit" name="submit" />
</form>
<?php
$get9 = $_POST['getlink'];
echo "LINK: " . $get9 . "</br></br>";
$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, "$get9");
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