PHP – Get direct link megashare.vn

by HKVN on December 31, 2009

Ừ thì share :d . Cũng k0 có gì bí mật cả, vài dòng code thôi mà ;)) .

<?php
	
$urls = $_POST['url'];
	
if (isset($urls)){
		$str=explode("\n",$urls);
		foreach ($str as $url) {
			if (!empty($url) && substr($url, 0, 19) == "http://megashare.vn"){
			$input = file_get_contents($url) or die('Could not access file: $url');
			$regexp = 'href=\\\"(.*)\\\">';
			if(preg_match("/$regexp/siU", $input, $matches)) {
				print '<a href="' . $matches[1] . '">' . $matches[1] . '</a><br />' ;
			  }
		 }
		}
	
} else {
?>
	Lấy link từ megashare.vn - Hỗ trợ lấy nhiều link cùng lúc - [HKVN]
	<form method="POST" action="index.php" id="form">
		<textarea name="url" cols="50" rows="15" id="url"></textarea>
		<br />
		<input type="submit" name="submit" value="Submit"></input>
	</form>
<?php
}
?>

Random Posts

{ 28 comments… read them below or add one }

Thumb up 0 Thumb down 0 [#1] Vinh January 2, 2010 at 9:30 am VIET NAM Mozilla Firefox Windows

Bạn ơi, mình làm đúng như code của bạn mà nó get link ko đc, cả 2 host free đều thế, bạn test giùm mình nha. Địa chỉ đây : http://mgsvn.byethost16.com/ hoặc http://mgsvn.110mb.com/
Gíup giùm mình nha bạn :-)

Reply

Thumb up 0 Thumb down 0 [#2] hatso1 January 3, 2010 at 5:44 pm VIET NAM Mozilla Firefox Windows

cám ơn nhiều. hì hì đúng lúc megashare đang lỗi nên chưa test được. với lại mình cũng chưa biết cách chuyển nó grab thành link để cho vào code xem phim online hì hì ^__^
Cám ơn nhiều nhé

Reply

Thumb up 0 Thumb down 0 [#3] As247 January 4, 2010 at 1:12 pm VIET NAM Internet Explorer Windows

Hứ hứ. Xem online được chết liền :-s

Reply

Thumb up 0 Thumb down 0 [#4] HKVN January 4, 2010 at 7:27 pm VIET NAM Mozilla Firefox Windows

Mạng nhanh chắc là xem đc đấy :d .

Reply

Thumb up 0 Thumb down 0 [#5] Vinh January 4, 2010 at 8:46 am VIET NAM Mozilla Firefox Windows

Trời ơi, em làm thử nó ko hoạt động, anh chị vao thử tinyurl.com/mgsvn0 xem thử giùm em cái, chán quá, toàn báo lỗi :-( Nếu ai biết web đó bị lỗi gì chỉ em với nha

Reply

Thumb up 0 Thumb down 0 [#6] HKVN January 4, 2010 at 10:00 am VIET NAM Mozilla Firefox Windows

Host của bạn không hỗ trợ hàm file_get_contents rồi. Đổi host khác đi chắc là ok :d .

Reply

Thumb up 0 Thumb down 0 [#7] Vinh January 4, 2010 at 10:27 am VIET NAM Mozilla Firefox Windows

Host nào thích hợp hả bạn mình xài 110 mb cũng ko đc :-(

Reply

Thumb up 0 Thumb down 0 [#8] As247 January 4, 2010 at 1:25 pm VIET NAM Internet Explorer Windows

Megashare này làm vớ vẩn nhỉ :d link cứ để người ta get ầm ầm :-| ai lại làm cái wait trên client bao giờ :-| Nó mà chơi wait trên server + ajax request để getlink thì ta cũng chờ đẹp thôi :-s Còn nếu ai muốn lấy link để xem phim online thì thế này: “Sorry, our server is too busy! The movie will be started in 90 seconds,… 60 seconds,… 47seconds,… and so on…” :-J

Reply

Thumb up 0 Thumb down 0 [#9] Vinh January 4, 2010 at 4:08 pm VIET NAM Mozilla Firefox Windows

Đang là beta thôi bạn, sau này thì chưa biết đc, có ai chỉ mình host free có hỗ trợ file_get_contents như HKVN noi1i ko, please

Reply

Thumb up 0 Thumb down 0 [#10] HKVN January 4, 2010 at 6:52 pm VIET NAM Mozilla Firefox Windows

Cũng không vớ vẩn lắm :d . Megaupload cũng wait trên client đấy thôi.
@Vinh: Tớ không rõ về các host free lắm. Cậu thử x10hosting chưa? hoặc summerhost.info xem.

Reply

Thumb up 0 Thumb down 0 [#11] hatso1 January 9, 2010 at 7:45 am VIET NAM Mozilla Firefox Windows

Giúp mình 1 chút được không? mình ngồi sửa mãi mà không được, mình muốn gộp cái này & cái code redirect –> cho link vào http://localhost/megashare/links.php?url=http://megashare.vn/download.php?uid=1&id=51278&bn=PRISON.BREAK.S04E19.txt thì nó chuyển luôn tới link đã get (chỉ get 1 link 1 lần).
Làm ơn giúp mình nhé. thanks

Reply

Thumb up 1 Thumb down 0 [#12] As247 January 26, 2010 at 11:04 am VIET NAM Internet Explorer Windows

Thay đoạn print thành header(“Location: $link”); là được mà :d

Reply

Thumb up 0 Thumb down 0 [#13] As247 January 4, 2010 at 8:02 pm VIET NAM Internet Explorer Windows

Free host mà kiếm đc cái file_get_contents mà lại url open thế kia thì cũng hơi khó đấy :d Nhưng không phải là không có :d Bạn vào http://bluechiphosting.com/plancompare đăng ký 1 cái nhé ;-) Nhưng cái này chỉ dùng để test thôi vì dung lượng và băng thông quá ít :-J demo đây http://play.vui360.com/mgs.getdirect.php
@HKVN tinyurl.com/mgsvn0 chả byethost là gì (summerhost thì cũng là hàng của byethost thôi) :-&QUOT; mà wait trên client thì nói làm gì :-J

Reply

Thumb up 0 Thumb down 0 [#14] As247 January 4, 2010 at 8:03 pm VIET NAM Internet Explorer Windows

Free host mà kiếm đc cái file_get_contents mà lại url open thế kia thì cũng hơi khó đấy :d Nhưng không phải là không có :d Bạn vào http://bluechiphosting.com/plancompare đăng ký 1 cái nhé ;-) Nhưng cái này chỉ dùng để test thôi vì dung lượng và băng thông quá ít :-J demo đây http://play.vui360.com/mgs.getdirect.php
@HKVN tinyurl.com/mgsvn0 chả byethost là gì (summerhost thì cũng là hàng của byethost thôi) :-&QUOT; mà wail trên client thì nói làm gì :-J

Reply

Thumb up 0 Thumb down 0 [#15] Vinh January 4, 2010 at 8:16 pm VIET NAM Mozilla Firefox Windows

Thanks, để mình xài thử rùi báo cáo lại nhé :-) Dù sao cũng thanks bạn :-)

Reply

Thumb up 0 Thumb down 0 [#16] Vinh January 4, 2010 at 8:49 pm VIET NAM Mozilla Firefox Windows

summerhost xài giống như byethost, ko đc. x10host thì ko cho VN dang ký :-( còn host nào khác ko bạn :-)

Reply

Thumb up 0 Thumb down 0 [#17] Vinh January 4, 2010 at 9:27 pm VIET NAM Mozilla Firefox Windows

x10 host xài speed rất nhanh, nhanh hơn host bạn nữa đó, reg đc rùi, nó bắt xài English, ko cho Vietnamese :-( Nhưng thôi tạm xài đc :-)
http://mgsvn.x10hosting.com/index.php

Reply

Thumb up 0 Thumb down 0 [#18] As247 January 5, 2010 at 1:30 am VIET NAM Internet Explorer Windows

Nhanh nhưng mà quảng cáo kìa 8-x . Định giới thiệu cho cái host 50MB/1.5GB nhưng mà lúc tối không comment được :-s chả hiểu openID của bác HKVN kiểu gì :-s giờ vào thì thấy mọi việc có vẻ đều ổn rồi nhỉ :d
Mà đi copy code của người khác mà

Get link megashare.vn – Support to get a lot of links together. – [Copyright by VINH Trinh Quoc]

8-x [-x

Reply

Thumb up 0 Thumb down 0 [#19] HKVN January 5, 2010 at 1:34 am VIET NAM Mozilla Firefox Windows

Haizz, ý thức kém thật. Lại nhớ đến vụ lễ hội hoa :-&LT; .

Reply

Thumb up 0 Thumb down 0 [#20] Vinh January 4, 2010 at 9:35 pm VIET NAM Mozilla Firefox Windows

Mọi người test giùm em trang get link em vất vã mới tạo giùm em với :-)
http://bit.ly/mgsvn

Reply

Thumb up 1 Thumb down 0 [#21] HKVN January 4, 2010 at 11:22 pm VIET NAM Mozilla Firefox Windows

Phải để lại cho tớ cái Copyright chứ =)) .

Reply

Thumb up 0 Thumb down 0 [#22] As247 January 5, 2010 at 1:23 am VIET NAM Internet Explorer Windows

Hix add cái openId của google vào lại không comment được là sao nhỉ :-?

Reply

Thumb up 0 Thumb down 0 [#23] HKVN January 5, 2010 at 2:44 am VIET NAM Mozilla Firefox Windows

Chả hiểu sao nó cho hết thành spam :)) =))

Reply

Thumb up 0 Thumb down 1 [#24] As247 January 5, 2010 at 1:30 pm VIET NAM Internet Explorer Windows

Vậy thì bỏ vợi cái sau đi, để 2 cái thế kia nhìn cũng giống spam thiệt :-J , mang tiếng ra x_x

Reply

Thumb up 1 Thumb down 0 [#25] Vinh January 5, 2010 at 8:48 am VIET NAM Mozilla Firefox Windows

OK, sẽ để lại copyright cho bác HKVN, hiện có 3 server http://bit.ly/mgsvn ; http://bit.ly/mgsvn2 ; http://bit.ly/mgsvn3

Reply

Thumb up 0 Thumb down 0 [#26] Vinh January 5, 2010 at 4:28 pm VIET NAM Mozilla Firefox Windows

Đã thêm dòng coded by HKVN, các bác xem lại giùm nhé :-)

Reply

Thumb up 1 Thumb down 0 [#27] As247 January 5, 2010 at 9:48 pm VIET NAM Internet Explorer Windows

Gớm, bài này sắp thành bài hot nhất rồi 8-} Này thì get link :-&LT; http://as247.vui360.com/blog/get-direct-link-megashare-vn/

Reply

Well-loved. Like or Dislike: Thumb up 8 Thumb down 1 [#28] VINH January 18, 2010 at 9:08 pm VIET NAM Google Chrome Windows

Cho mình xin code get link megashare nhưng ko get từ megashare.vn mà get từ datacenter của megashare 222.255.29.74 :-)

Reply

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe without commenting

Previous post:

Next post: