<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>IT Blog &#187; grab</title>
	<atom:link href="http://blog.thuongtin.net/tag/grab/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thuongtin.net</link>
	<description>php, sql, autoit, javascript, c, html</description>
	<lastBuildDate>Tue, 15 Sep 2009 00:57:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Class Grab Yahoo</title>
		<link>http://blog.thuongtin.net/2008/10/24/class-grab-yahoo/</link>
		<comments>http://blog.thuongtin.net/2008/10/24/class-grab-yahoo/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 06:57:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[yahoo]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=225</guid>
		<description><![CDATA[Đây là class đăng nhập vào Yahoo và lấy  sổ địa chỉ, list messenger , số mail chưa đọc, lịch.
Demo

Download
Related Posts:Các trang web cho nén javascriptHàm check Page Rank của googleMột số Flugin của JQuery trang trí cho formjQuery: Khả năng liên kết thành chuỗi (một phép thuật jQuery)AutoCompleter Tutorial - jQuery(Ajax)/PHP/My]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">Đây là class đăng nhập vào Yahoo và lấy  sổ địa chỉ, list messenger , số mail chưa đọc, lịch.</p>
<p><a class="alignleft" href="http://resource.bdwebwork.com/GrabYahoo/login.html" target="_blank">Demo</a></p>
<p><a href="http://thuongtin.net/code/grabyahoo.zip" target="_blank"><br />
Download</a></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/11/13/cac-trang-web-cho-nen-javascript/" rel="bookmark">Các trang web cho nén javascript</a></li><li><a href="http://blog.thuongtin.net/2008/10/22/ham-check-page-rank-cua-google/" rel="bookmark">Hàm check Page Rank của google</a></li><li><a href="http://blog.thuongtin.net/2008/11/04/mot-so-flugin-cua-jquery-trang-tri-cho-form/" rel="bookmark">Một số Flugin của JQuery trang trí cho form</a></li><li><a href="http://blog.thuongtin.net/2008/10/10/jquery-kha-nang-lien-ket-thanh-chuoi-mot-phep-thuat-jquery/" rel="bookmark">jQuery: Khả năng liên kết thành chuỗi (một phép thuật jQuery)</a></li><li><a href="http://blog.thuongtin.net/2008/10/20/autocompleter-tutorial-jqueryajaxphpmysql/" rel="bookmark">AutoCompleter Tutorial - jQuery(Ajax)/PHP/MySQL</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=225&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/10/24/class-grab-yahoo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Lấy nội dung của 1 trang web = file_get_contents</title>
		<link>http://blog.thuongtin.net/2008/10/15/lay-noi-dung-cua-1-trang-web-file_get_contents/</link>
		<comments>http://blog.thuongtin.net/2008/10/15/lay-noi-dung-cua-1-trang-web-file_get_contents/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 10:44:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[function]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[grab]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=189</guid>
		<description><![CDATA[
&#60;?php
function get_web_page( $url )
{
$options = array( 'http' =&#62; array(
'user_agent'    =&#62; 'spider',        // who am i
'max_redirects' =&#62; 10,              // stop after 10 redirects
'timeout'       =&#62; 120,   ]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">
<pre class="brush: php;">&lt;?php
function get_web_page( $url )
{
$options = array( 'http' =&gt; array(
'user_agent'    =&gt; 'spider',        // who am i
'max_redirects' =&gt; 10,              // stop after 10 redirects
'timeout'       =&gt; 120,             // timeout on response
) );
$context = stream_context_create( $options );
$page    = @file_get_contents( $url, false, $context );
$result  = array( );
if ( $page != false )
$result['content'] = $page;
else if ( !isset( $http_response_header ) )
return null;    // Bad url, timeout

// Save the header
$result['header'] = $http_response_header;

// Get the *last* HTTP status code
$nLines = count( $http_response_header );
for ( $i = $nLines-1; $i &gt;= 0; $i-- )
{
$line = $http_response_header[$i];
if ( strncasecmp( &quot;HTTP&quot;, $line, 4 ) == 0 )
{
$response = explode( ' ', $line );
$result['http_code'] = $response[1];
break;
}
}

return $result;
}
print_r(get_web_page(&quot;http://thuongtin.net&quot;));
?&gt;
</pre>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/09/12/file-sao-luu-du-lieu/" rel="bookmark">File sao lưu dữ liệu</a></li><li><a href="http://blog.thuongtin.net/2008/11/04/chuyen-so-thanh-so-la-ma/" rel="bookmark">Chuyển số thành số La Mã</a></li><li><a href="http://blog.thuongtin.net/2008/11/18/chuyen-doi-cac-mui-gio/" rel="bookmark">Chuyển đổi các múi giờ</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/class-login/" rel="bookmark">Class login</a></li><li><a href="http://blog.thuongtin.net/2008/11/04/morse-code-encoderdecoder/" rel="bookmark">Morse Code encoder/decoder</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=189&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/10/15/lay-noi-dung-cua-1-trang-web-file_get_contents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download tại SlideShare</title>
		<link>http://blog.thuongtin.net/2008/10/15/download-tai-slideshare/</link>
		<comments>http://blog.thuongtin.net/2008/10/15/download-tai-slideshare/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 06:55:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[grab]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=178</guid>
		<description><![CDATA[Trang chính của tác giả: http://hasin.wordpress.com/2008/02/09/hacking-slidesharenet-using-php/
Tạm thời post cái php tại đây:
&#60;?php
$slideshowUrl=&#34;http://www.slideshare.net/coogle/ajax-and-php&#34;;
$slideshowPageContent = file_get_contents($slideshowUrl);
$pattern = &#34;~doc=([\w-]+)~&#34;;
preg_match($pattern,$slideshowPageContent,$matches);
$xmlurl = &#34;http://s3.amazonaws.com/slideshare/{$matches[1]}.xml&#34;;
$sxml = simplexml_load_file($xmlurl);

foreach ($sxml-&#62;Slide as $slide)
echo $slide['Src'].&#34;&#60;br /&#62;&#34;;
?&#62;

Related Posts:jQuery: Học trong vòng 1hSo mẫu trong PHP - Phần 2JS RegExpChuyển số thành số La MãTự tạo 1 file check page rank của Google]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">Trang chính của tác giả: http://hasin.wordpress.com/2008/02/09/hacking-slidesharenet-using-php/</p>
<p>Tạm thời post cái php tại đây:</p>
<pre class="brush: php;">&lt;?php
$slideshowUrl=&quot;http://www.slideshare.net/coogle/ajax-and-php&quot;;
$slideshowPageContent = file_get_contents($slideshowUrl);
$pattern = &quot;~doc=([\w-]+)~&quot;;
preg_match($pattern,$slideshowPageContent,$matches);
$xmlurl = &quot;http://s3.amazonaws.com/slideshare/{$matches[1]}.xml&quot;;
$sxml = simplexml_load_file($xmlurl);

foreach ($sxml-&gt;Slide as $slide)
echo $slide['Src'].&quot;&lt;br /&gt;&quot;;
?&gt;
</pre>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/10/14/jquery-hoc-trong-vong-1h/" rel="bookmark">jQuery: Học trong vòng 1h</a></li><li><a href="http://blog.thuongtin.net/2008/10/29/so-mau-trong-php-phan-2/" rel="bookmark">So mẫu trong PHP - Phần 2</a></li><li><a href="http://blog.thuongtin.net/2008/10/10/js-regexp/" rel="bookmark">JS RegExp</a></li><li><a href="http://blog.thuongtin.net/2008/11/04/chuyen-so-thanh-so-la-ma/" rel="bookmark">Chuyển số thành số La Mã</a></li><li><a href="http://blog.thuongtin.net/2008/10/15/tu-tao-1-file-check-page-rank-cua-google/" rel="bookmark">Tự tạo 1 file check page rank của Google</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=178&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/10/15/download-tai-slideshare/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Một đoạn script đơn giản để get link từ NCT</title>
		<link>http://blog.thuongtin.net/2008/10/13/mot-doan-script-don-gian-de-get-link-tu-nct/</link>
		<comments>http://blog.thuongtin.net/2008/10/13/mot-doan-script-don-gian-de-get-link-tu-nct/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 03:48:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[grab]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=165</guid>
		<description><![CDATA[

var link = document.getElementById('FlashNCTplayer').src;
var host = String(window.location.hostname);
var current = String(document.location);
if (host != 'www.nhaccuatui.com') {
createBox('&#60;li&#62;Đã tích hợp thành công vào nhaccuatui.com&#60;/li&#62;&#60;li&#62;Bạn hãy bấm vào &#60;a href=&#34;javascript:cmon();&#34;&#62;đây&#60;/a&#62; để reload trang web này.&#60;/li&#62;', '&#60;li&#62;Sau khi trang web đã reload xong, bạn hãy kích hoạt jgrabber một lần nữa để lấy link.&#60;/li&#62;&#60;li&#62;&#60;b&#62;Chú ý: &#60;/b&#62;Đây là một hạn chế của ]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">
<pre class="brush: jscript;">
var link = document.getElementById('FlashNCTplayer').src;
var host = String(window.location.hostname);
var current = String(document.location);
if (host != 'www.nhaccuatui.com') {
createBox('&lt;li&gt;Đã tích hợp thành công vào nhaccuatui.com&lt;/li&gt;&lt;li&gt;Bạn hãy bấm vào &lt;a href=&quot;javascript:cmon();&quot;&gt;đây&lt;/a&gt; để reload trang web này.&lt;/li&gt;', '&lt;li&gt;Sau khi trang web đã reload xong, bạn hãy kích hoạt jgrabber một lần nữa để lấy link.&lt;/li&gt;&lt;li&gt;&lt;b&gt;Chú ý: &lt;/b&gt;Đây là một hạn chế của javascript, không phải là lỗi của jgrabber.&lt;/li&gt;');
}

if (window.XMLHttpRequest) {
XHR = new XMLHttpRequest();
} else if (window.ActiveXObject) {
XHR = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}

XHR.open('GET', link);
XHR.onreadystatechange = function() {
if (XHR.readyState == 4) {
link = XHR.getResponseHeader(&quot;Content-Location&quot;).match(/file=(.*)/)[01];
if (window.XMLHttpRequest) {
XHR2 = new XMLHttpRequest();
} else if (window.ActiveXObject) {
XHR2 = new ActiveXObject(&quot;Msxml2.XMLHTTP&quot;);
}
XHR2.open('GET', link);
XHR2.onreadystatechange = function() {
if (XHR2.readyState == 4 &amp;amp;&amp;amp; XHR2.status == 200) {
link = XHR2.responseText.match(/&lt;\/creator&gt;&lt;location&gt;(.*?)&lt;\/location&gt;/)[01];
alert(link); // Link đây nè
}
}
XHR2.send(null);
}
}
XHR.send(null);

function cmon() {
document.location.replace(current.replace('nhaccuatui.com', 'www.nhaccuatui.com'));
}
</pre>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/10/10/lay-link-nct-nhaccuatuicom/" rel="bookmark">Lấy link NCT (nhaccuatui.com)</a></li><li><a href="http://blog.thuongtin.net/2008/12/07/lay-url-hien-tai-cua-iframe/" rel="bookmark">Lấy URL hiện tại của iFrame</a></li><li><a href="http://blog.thuongtin.net/2008/10/28/javascript-windowsize/" rel="bookmark">javascript: Window.size</a></li><li><a href="http://blog.thuongtin.net/2008/10/10/chay-ma-luc-document-ready-trang-da-san-sang/" rel="bookmark">jQuery: Chạy mã lúc Document Ready (trang đã sẵn sàng)</a></li><li><a href="http://blog.thuongtin.net/2008/11/08/javascript-lay-chieu-rong-va-chieu-cao-cua-so-dang-mo/" rel="bookmark">JavaScript: Lấy chiều rộng và chiều cao cửa sổ đang mở</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=165&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/10/13/mot-doan-script-don-gian-de-get-link-tu-nct/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lấy link NCT (nhaccuatui.com)</title>
		<link>http://blog.thuongtin.net/2008/10/10/lay-link-nct-nhaccuatuicom/</link>
		<comments>http://blog.thuongtin.net/2008/10/10/lay-link-nct-nhaccuatuicom/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 03:49:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=133</guid>
		<description><![CDATA[Buồn buồn vào nghe 1 bài remix Love Again http://nhaccuatui.com/nghe?M=SlBpgEaY1f
Và đọc 1 bài trong freecodevn thấy anh em get links nhạc của nhau cũng thử get link NCT thử.
Đầu tiên là nghe nhạc ttp://nhaccuatui.com/nghe?M=SlBpgEaY1f sau đó tớ tìm thấy cái này:
http://nhaccuatui.com/m2/SlBpgEaY1f
truy cập vào thì sẽ cho ra link này:
http://nhaccuatui.com/Flash/NCTplayer11.swf?file=http://nhaccuatui.com/GetMusic.aspx?key2=001d000400230013002400300000000d0044000f
Nhiệm vụ của http://nhaccuatui.com/m2/SlBpgEaY1f là dùng header(&#8220;Location: ]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">Buồn buồn vào nghe 1 bài remix Love Again <span style="color: #ff0000;">http://nhaccuatui.com/nghe?M=SlBpgEaY1f</span><br />
Và đọc 1 bài trong freecodevn thấy anh em <a href="http://freecodevn.com/for@um/showthread.php?t=54372" target="_blank">get links nhạc của nhau</a> cũng thử get link NCT thử.</p>
<p>Đầu tiên là nghe nhạc ttp://nhaccuatui.com/nghe?M=SlBpgEaY1f sau đó tớ tìm thấy cái này:</p>
<p><span style="color: #ff0000;">http://nhaccuatui.com/m2/SlBpgEaY1f</span></p>
<p>truy cập vào thì sẽ cho ra link này:</p>
<p><span style="color: #ff0000;">http://nhaccuatui.com/Flash/NCTplayer11.swf?file=http://nhaccuatui.com/GetMusic.aspx?key2=001d000400230013002400300000000d0044000f</span></p>
<p>Nhiệm vụ của <span style="color: #ff0000;">http://nhaccuatui.com/m2/SlBpgEaY1f <span style="color: #000000;">là dùng <span style="color: #0000ff;">header(&#8220;Location: </span></span></span><span style="color: #0000ff;">http://nhaccuatui.com/Flash/NCTplayer11.swf?file=http://nhaccuatui.com/GetMusic.aspx?key2=001d000400230013002400300000000d0044000f&#8221;)</span><span style="color: #ff0000;">;</span></p>
<p>sẽ chuyển tới trang <span style="color: #ff0000;">http://nhaccuatui.com/Flash/NCTplayer11.swf?file=http://nhaccuatui.com/GetMusic.aspx?key2=001d000400230013002400300000000d0044000f</span></p>
<p>Vào trang <span style="color: #ff0000;">http://nhaccuatui.com/GetMusic.aspx?key2=001d000400230013002400300000000d0044000f</span></p>
<p>sẽ thấy được link của file mp3:</p>
<p><span style="color: #ff0000;">http://media7b.nhaccuatui.com/NhacCuaTui40/Love Again [Remix Version] &#8211; Cascada [NCT 3394330342].mp3</span></p>
<p><strong>Vậy ta có thể tóm tắt các bước:</strong></p>
<p>Khi nghe 1 bài hát dạng: <span style="color: #ff0000;">http://nhaccuatui.com/nghe?M=<span style="color: #0000ff;">id</span></span></p>
<p>Chúng ta sẽ lấy <span style="color: #0000ff;">id</span> trên url và truy cập vào: <span style="color: #ff0000;">http://nhaccuatui.com/m2/<span style="color: #0000ff;">id</span></span></p>
<p>À quên! Nếu truy cập bằng trình duyệt thì có thể copy địa chỉ nhưng nếu ta dùng 1 php thì làm sao lấy bây giờ?<br />
Hì. Lúc này ta sẽ dùng hàm <span style="color: #0000ff;">get_headers();</span></p>
<p>Chúng ta thử tạo 1 file php có nội dung:</p>
<pre class="brush: php;">
&lt;?php
$a = get_headers('http://nhaccuatui.com/m2/SlBpgEaY1f', 1);
echo $a['Location'];
?&gt;
</pre>
<p>Chạy thử sẽ ra nội dung:</p>
<p><span style="color: #ff0000;">http://nhaccuatui.com/Flash/NCTplayer11.swf?file=http://nhaccuatui.com/GetMusic.aspx?key2=001d000400230013002400300000000d0044000f</span></p>
<p><strong>Ukie! Công việc còn lại đơn giản thôi mà <img src='http://blog.thuongtin.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </strong></p>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/10/10/ngan-chan-trinh-duyet-khi-duyet-website-cua-minh/" rel="bookmark">Ngăn chặn Trình duyệt khi duyệt website của mình</a></li><li><a href="http://blog.thuongtin.net/2008/10/10/chong-view-link-tu-cac-site-xai-xtre/" rel="bookmark">Chống view link từ các site xài xtre</a></li><li><a href="http://blog.thuongtin.net/2009/07/03/js-object-math/" rel="bookmark">[ JS Object ] Math</a></li><li><a href="http://blog.thuongtin.net/2008/10/18/8-mau-regular-expressions-huu-ich/" rel="bookmark">8 mẫu Regular Expressions hữu ích</a></li><li><a href="http://blog.thuongtin.net/2009/08/10/cach-lay-link-cua-megavideo-com/" rel="bookmark">Cách lấy link của megavideo.com</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=133&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/10/10/lay-link-nct-nhaccuatuicom/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Get link mp3.zing.vn</title>
		<link>http://blog.thuongtin.net/2008/09/13/get-link-mp3zingvn/</link>
		<comments>http://blog.thuongtin.net/2008/09/13/get-link-mp3zingvn/#comments</comments>
		<pubDate>Sat, 13 Sep 2008 09:52:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[grab]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=111</guid>
		<description><![CDATA[

function get_link_video_zing($url) {
$data=file_get_contents($url);
$parse=explode('video.php?sid=',$data);
$parse=explode(&#34;', 'downloadwindown','&#34;,$parse[1]);
$url = $parse[0];
$url = base64_decode($url);
$url = &#34;http://stc.video.zing.vn/file_uploads/video/&#34;.$url;
return $url;
}

Related Posts:Grab link megarotic.comPlay video youtube = flv player của bạnChạy ngẫu nhiên 1 video flash trong thư mụcGet id3Get Alexa Rank]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">
<pre class="brush: php;">
function get_link_video_zing($url) {
$data=file_get_contents($url);
$parse=explode('video.php?sid=',$data);
$parse=explode(&quot;', 'downloadwindown','&quot;,$parse[1]);
$url = $parse[0];
$url = base64_decode($url);
$url = &quot;http://stc.video.zing.vn/file_uploads/video/&quot;.$url;
return $url;
}
</pre>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/09/12/grab-link-megaroticcom/" rel="bookmark">Grab link megarotic.com</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/play-video-youtube-flv-player-cua-ban/" rel="bookmark">Play video youtube = flv player của bạn</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/chay-ngau-nhien-1-video-flash-trong-thu-muc/" rel="bookmark">Chạy ngẫu nhiên 1 video flash trong thư mục</a></li><li><a href="http://blog.thuongtin.net/2008/09/13/get-id3/" rel="bookmark">Get id3</a></li><li><a href="http://blog.thuongtin.net/2008/10/22/get-alexa-rank/" rel="bookmark">Get Alexa Rank</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=111&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/09/13/get-link-mp3zingvn/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Youtube Download Link Generator</title>
		<link>http://blog.thuongtin.net/2008/09/12/youtube-download-link-generator/</link>
		<comments>http://blog.thuongtin.net/2008/09/12/youtube-download-link-generator/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 09:11:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=85</guid>
		<description><![CDATA[

//YouTube Video Download Link Generator
function str_between($string, $start, $end){ $string = &#34; &#34;.$string; $ini = strpos($string,$start); if ($ini == 0) return &#34;&#34;; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); }
function get_youtube_download_link(){
$youtube_link = $_GET['youtube'];
$youtube_page = file_get_contents($youtube_link);
$v_id = str_between($youtube_page, &#34;&#38;video_id=&#34;, &#34;&#38;&#34;);
$t_id = str_between($youtube_page, &#34;&#38;t=&#34;, &#34;&#38;&#34;);
$flv_link = &#34;http://www.youtube.com/get_video?video_id=$v_id&#38;t=$t_id&#34;;
$hq_flv_link = &#34;http://www.youtube.com/get_video?video_id=$v_id&#38;t=$t_id&#38;fmt=6&#34;;
$mp4_link = &#34;http://www.youtube.com/get_video?video_id=$v_id&#38;t=$t_id&#38;fmt=18&#34;;
$threegp_link = &#34;http://www.youtube.com/get_video?video_id=$v_id&#38;t=$t_id&#38;fmt=17&#34;;
echo &#34;\t\tDownload (right-click ]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">
<pre class="brush: php;">
//YouTube Video Download Link Generator
function str_between($string, $start, $end){ $string = &quot; &quot;.$string; $ini = strpos($string,$start); if ($ini == 0) return &quot;&quot;; $ini += strlen($start); $len = strpos($string,$end,$ini) - $ini; return substr($string,$ini,$len); }
function get_youtube_download_link(){
$youtube_link = $_GET['youtube'];
$youtube_page = file_get_contents($youtube_link);
$v_id = str_between($youtube_page, &quot;&amp;video_id=&quot;, &quot;&amp;&quot;);
$t_id = str_between($youtube_page, &quot;&amp;t=&quot;, &quot;&amp;&quot;);
$flv_link = &quot;http://www.youtube.com/get_video?video_id=$v_id&amp;t=$t_id&quot;;
$hq_flv_link = &quot;http://www.youtube.com/get_video?video_id=$v_id&amp;t=$t_id&amp;fmt=6&quot;;
$mp4_link = &quot;http://www.youtube.com/get_video?video_id=$v_id&amp;t=$t_id&amp;fmt=18&quot;;
$threegp_link = &quot;http://www.youtube.com/get_video?video_id=$v_id&amp;t=$t_id&amp;fmt=17&quot;;
echo &quot;\t\tDownload (right-click &amp;gt; save as)&amp;#58;\n\t\t&quot;;
echo &quot;&lt;a href=&quot;$flv_link&quot;&gt;FLV&lt;/a&gt;\n\t\t&quot;;
echo &quot;&lt;a href=&quot;$hq_flv_link&quot;&gt;HQ FLV (if available)&lt;/a&gt;\n\t\t&quot;;
echo &quot;&lt;a href=&quot;$mp4_link&quot;&gt;MP4&lt;/a&gt;\n\t\t&quot;;
echo &quot;&lt;a href=&quot;$threegp_link&quot;&gt;3GP&lt;/a&gt;&lt;br&gt;&lt;br&gt;\n&quot;;
}
</pre>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/09/12/play-video-youtube-flv-player-cua-ban/" rel="bookmark">Play video youtube = flv player của bạn</a></li><li><a href="http://blog.thuongtin.net/2008/10/18/8-mau-regular-expressions-huu-ich/" rel="bookmark">8 mẫu Regular Expressions hữu ích</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/grab-link-megaroticcom/" rel="bookmark">Grab link megarotic.com</a></li><li><a href="http://blog.thuongtin.net/2008/10/27/t2-player-flugin-cho-wordpress/" rel="bookmark">T2 Player, flugin cho Wordpress</a></li><li><a href="http://blog.thuongtin.net/2008/09/13/relax-with-dance/" rel="bookmark">Relax with dance</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=85&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/09/12/youtube-download-link-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Play video youtube = flv player của bạn</title>
		<link>http://blog.thuongtin.net/2008/09/12/play-video-youtube-flv-player-cua-ban/</link>
		<comments>http://blog.thuongtin.net/2008/09/12/play-video-youtube-flv-player-cua-ban/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 07:43:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=67</guid>
		<description><![CDATA[

&#60;?
$thumb = &#34;http://i3.ytimg.com/vi/&#34;.$_GET['v'].&#34;/default.jpg&#34;;
$yturl = &#34;http://www.youtube.com/watch?v=&#34;.$_GET['v'];
$id = explode(&#34;v=&#34;,$yturl);
$file = simplexml_load_file(&#34;http://youtube.com/api2_rest?method=youtube.videos.get_video_token&#38;video_id=$id[1]&#34;);
$file = &#34;http://youtube.com/get_video?video_id=$id[1]&#38;t=$file-&#62;t&#34;;
$file = get_headers($file);
$video = urlencode(trim($file[8],&#34;Location: &#34;));
echo &#34;&#60;embed src=&#34;player.swf&#34; width=&#34;400&#34; height=&#34;300&#34; allowfullscreen=&#34;true&#34; allowscriptaccess=&#34;always&#34; flashvars=&#34;&#38;videoPath=$video&#38;autoStart=true&#38;autoHide=false&#38;autoHideTime=5&#38;hideLogo=true&#38;volAudio=60&#38;newWidth=400&#38;newHeight=300&#38;disableMiddleButton=false&#38;playSounds=true&#38;soundBarColor=0x0066FF&#38;barColor=0x0066FF&#38;barShadowColor=0x91BBFB&#38;subbarColor=0xffffff&#34; /&#62;&#34;;
echo &#34;&#60;br/&#62;&#60;br/&#62;thumbnail for video &#60;br/&#62;&#60;img src=&#34;$thumb&#34;&#62;&#34;;
?&#62;

Related Posts:Chạy ngẫu nhiên 1 video flash trong thư mụcYoutube Download Link GeneratorRelax with danceGrab link megarotic.comT2 Player, flugin cho Wordpress]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">
<pre class="brush: php;">
&lt;?
$thumb = &quot;http://i3.ytimg.com/vi/&quot;.$_GET['v'].&quot;/default.jpg&quot;;
$yturl = &quot;http://www.youtube.com/watch?v=&quot;.$_GET['v'];
$id = explode(&quot;v=&quot;,$yturl);
$file = simplexml_load_file(&quot;http://youtube.com/api2_rest?method=youtube.videos.get_video_token&amp;video_id=$id[1]&quot;);
$file = &quot;http://youtube.com/get_video?video_id=$id[1]&amp;t=$file-&gt;t&quot;;
$file = get_headers($file);
$video = urlencode(trim($file[8],&quot;Location: &quot;));
echo &quot;&lt;embed src=&quot;player.swf&quot; width=&quot;400&quot; height=&quot;300&quot; allowfullscreen=&quot;true&quot; allowscriptaccess=&quot;always&quot; flashvars=&quot;&amp;videoPath=$video&amp;autoStart=true&amp;autoHide=false&amp;autoHideTime=5&amp;hideLogo=true&amp;volAudio=60&amp;newWidth=400&amp;newHeight=300&amp;disableMiddleButton=false&amp;playSounds=true&amp;soundBarColor=0x0066FF&amp;barColor=0x0066FF&amp;barShadowColor=0x91BBFB&amp;subbarColor=0xffffff&quot; /&gt;&quot;;
echo &quot;&lt;br/&gt;&lt;br/&gt;thumbnail for video &lt;br/&gt;&lt;img src=&quot;$thumb&quot;&gt;&quot;;
?&gt;
</pre>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2008/09/12/chay-ngau-nhien-1-video-flash-trong-thu-muc/" rel="bookmark">Chạy ngẫu nhiên 1 video flash trong thư mục</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/youtube-download-link-generator/" rel="bookmark">Youtube Download Link Generator</a></li><li><a href="http://blog.thuongtin.net/2008/09/13/relax-with-dance/" rel="bookmark">Relax with dance</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/grab-link-megaroticcom/" rel="bookmark">Grab link megarotic.com</a></li><li><a href="http://blog.thuongtin.net/2008/10/27/t2-player-flugin-cho-wordpress/" rel="bookmark">T2 Player, flugin cho Wordpress</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=67&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/09/12/play-video-youtube-flv-player-cua-ban/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bảo vệ: Grab link megarotic.com</title>
		<link>http://blog.thuongtin.net/2008/09/12/grab-link-megaroticcom/</link>
		<comments>http://blog.thuongtin.net/2008/09/12/grab-link-megaroticcom/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 07:39:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Get links]]></category>
		<category><![CDATA[get]]></category>
		<category><![CDATA[grab]]></category>
		<category><![CDATA[megarotic]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://thuongtin.net/blog/?p=63</guid>
		<description><![CDATA[Không có trích dẫn vì bài này được bảo vệ.]]></description>
			<content:encoded><![CDATA[<p class="dropcap-first">
<form action="http://blog.thuongtin.net/wp-pass.php" method="post">
<p>Bài này được bảo vệ bằng mật khẩu. Để xem, hãy nhập mật khẩu:</p>
<p><label for="pwbox-63">Mật khẩu:<br />
<input name="post_password" id="pwbox-63" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Lưu" /></p></form>
<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://blog.thuongtin.net/2009/08/10/cach-lay-link-cua-megavideo-com/" rel="bookmark">Cách lấy link của megavideo.com</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/tao-1-file-download-file/" rel="bookmark">Tạo 1 file download file</a></li><li><a href="http://blog.thuongtin.net/2008/09/12/play-video-youtube-flv-player-cua-ban/" rel="bookmark">Play video youtube = flv player của bạn</a></li><li><a href="http://blog.thuongtin.net/2008/09/10/simple-email-class/" rel="bookmark">Simple Email Class</a></li><li><a href="http://blog.thuongtin.net/2008/09/13/get-link-mp3zingvn/" rel="bookmark">Get link mp3.zing.vn</a></li></ul></div><img src="http://blog.thuongtin.net/?ak_action=api_record_view&id=63&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://blog.thuongtin.net/2008/09/12/grab-link-megaroticcom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
