<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.9.1" -->
<rss version="0.92">
<channel>
	<title>IT Blog</title>
	<link>http://blog.thuongtin.net</link>
	<description>php, sql, autoit, javascript, c, html</description>
	<lastBuildDate>Tue, 15 Sep 2009 00:57:58 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Chỉnh time của server theo giờ VN</title>
		<description><![CDATA[Tình hình là đang làm 1 trang web và cần chỉnh lại thời gian của server theo giờ VN. Tìm trên mạng có nhiều cách là cộng trừ giờ, mà site đã viết rồi giờ edit 1 đống file thì rắc rối quá 
Tìm trên trang chủ của php thì thấy hàm này:

date_default_timezone_set ( &#34;Asia/Ho_Chi_Minh&#34; ]]></description>
		<link>http://blog.thuongtin.net/2009/09/15/chinh-time-cua-server-theo-gio-vn/</link>
			</item>
	<item>
		<title>Cách lấy link của megavideo.com</title>
		<description><![CDATA[Lâu rồi không viết blog này, hix hix.
Nói chung là cái này đơn giản.
Ví dụ link là: http://www.megavideo.com/?v=5VSH1C08
Ta lấy nội dung file xml của video đó:
http://www.megavideo.com/xml/videolink.php?v=5VSH1C08
Nội dung của xml là:
&#60;?xml version="1.0" encoding="UTF-8"?&#62;
&#60;ROWS&#62;&#60;ROW url="" runtime="154" runtimehms="02:34" size="10810129" waitingtime="5000" k="" k1="18680" k2="11594" un="ae72b6243e82c6484903f038a4f90633" s="283" title="evil+bong+review" description="the+killer+dolls+reviewing+evil+bong%21+i+think+they+should+join+are+you+smarter+than+a+5th+grader%2C+now+thats+a+good+match%21" added="2009-08-06" username="fullmoononline" views="24145" comments="4" favorited="5" category="comedy" tags="evil++bong++charles++band++boobs++blood++gore++horror++comedy++funny++naked++strippers++smoke++weed++marijuana++kill" rating="100" embed="%3Cobject+width%3D%22640%22+height%3D%22468%22%3E%3Cparam+name%3D%22movie%22+value%3D%22http%3A%2F%2Fwww.megavideo.com%2Fv%2F5VSH1C0855e84c8defcf089dba5cefcc8e1b1c30%22%3E%3C%2Fparam%3E%3Cparam+name%3D%22allowFullScreen%22+value%3D%22true%22%3E%3C%2Fparam%3E%3Cembed+src%3D%22http%3A%2F%2Fwww.megavideo.com%2Fv%2F5VSH1C0855e84c8defcf089dba5cefcc8e1b1c30%22+type%3D%22application%2Fx-shockwave-flash%22+allowfullscreen%3D%22true%22+width%3D%22640%22+height%3D%22468%22%3E%3C%2Fembed%3E%3C%2Fobject%3E"  &#62;&#60;/ROW&#62;
&#60;/ROWS&#62;

Chú ]]></description>
		<link>http://blog.thuongtin.net/2009/08/10/cach-lay-link-cua-megavideo-com/</link>
			</item>
	<item>
		<title>Javascript &#8211; Hàm getElementsByClassName</title>
		<description><![CDATA[
&#60;script type=&#34;text/javascript&#34;&#62;
// Created by: Stuart Colville &#124; http://muffinresearch.co.uk/
function getElementsByClassName(strClass, strTag, objContElm) {
strTag = strTag &#124;&#124; &#34;*&#34;;
objContElm = objContElm &#124;&#124; document;
var objColl = objContElm.getElementsByTagName(strTag);
if (!objColl.length &#38;&#38;  strTag == &#34;*&#34; &#38;&#38;  objContElm.all) objColl = objContElm.all;
var arr = new Array();
var delim = strClass.indexOf(&#8216;&#124;&#8217;) != -1  ? &#8216;&#124;&#8217; : &#8216; &#8216;;
var arrClass = strClass.split(delim);
for (var i ]]></description>
		<link>http://blog.thuongtin.net/2009/07/13/javascript-ham-getelementsbyclassname/</link>
			</item>
	<item>
		<title>[ JS Object ] Math</title>
		<description><![CDATA[
Đối tượng Math là một trong những  đối tượng có sẵn của Javascript, nó bao gồm một số thuộc tính và phương thức cơ  bản để làm việc với toán học.
Mặc dù là một trong số những  đối tượng có sẵn của Javascript, nhưng khi làm việc cùng đối tượng Math chúng ]]></description>
		<link>http://blog.thuongtin.net/2009/07/03/js-object-math/</link>
			</item>
	<item>
		<title>[JS Object] Array</title>
		<description><![CDATA[
Giải trình các phương thức và  thuộc tính của đối tượng Array trong Javascript.

Mảng là một trong những từ khóa rất thông dụng trong các ngôn ngữ lập trình,  nó là đơn giản nhất cho phần dữ liệu có cấu trúc. Javascript tự nhiên cũng hỗ  trợ mảng, không những thế còn ]]></description>
		<link>http://blog.thuongtin.net/2009/07/03/js-object-array/</link>
			</item>
	<item>
		<title>không cho IP/ISP truy cập web</title>
		<description><![CDATA[Không cho các ip 127.0.0.1,127.0.0.2,127.0.0.3 truy cập vào web:
order allow,denydeny from 127.0.0.1deny from 127.0.0.2deny from 127.0.0.3allow from all
Không cho cả ISP truy cập: ví dụ bạn có thể không cho những người dùng mạng Viettell,FPT,.. truy cập vào web, chỉ cần biết ISP của nhà cung cấp
deny from isp_name
Related Posts:Không cho truy cập file .phpQui ]]></description>
		<link>http://blog.thuongtin.net/2009/07/03/khong-cho-ipisp-truy-cap-web/</link>
			</item>
	<item>
		<title>[PHP] Display Server Load</title>
		<description><![CDATA[

&#60;?php function get_server_load($windows = false) {
 $os = strtolower(PHP_OS);
 if(strpos($os, &#34;win&#34;) === false) {
 if(file_exists(&#34;/proc/loadavg&#34;)) {
 $load = file_get_contents(&#34;/proc/loadavg&#34;);
 $load = explode(' ', $load);
 return $load[0];
 } 

 elseif(function_exists(&#34;shell_exec&#34;)) {
 $load = explode(' ', `uptime`);        return $load[count($load)-1];
 } else {
 return false;
 }
 } elseif($windows) {
 if(class_exists(&#34;COM&#34;)) {
 ]]></description>
		<link>http://blog.thuongtin.net/2009/06/29/php-display-server-load/</link>
			</item>
	<item>
		<title>Các cách đánh index cho trường trong CSDL MySQL</title>
		<description><![CDATA[Thấy bài viết hay nên copy về.

Một ngày kia bạn nhận ra rằng website của bạn chạy chậm đi, có thể là do đường truyền nhưng còn 1 nguyên nhân khác, đó là máy chủ server tính toán quá nhiều dẫn đến kết quả đưa ra. Đây là điều thường thấy ở những website về ]]></description>
		<link>http://blog.thuongtin.net/2009/06/12/cac-cach-danh-index-cho-truong-trong-csdl-mysql/</link>
			</item>
	<item>
		<title>Firefox &#8211; Command Line Options</title>
		<description><![CDATA[Đang viết chưong trình điều khiển firefox, thấy cài này hay hay:
https://developer.mozilla.org/en/Command_Line_Options
Related Posts:Các trang web cho nén javascriptClass CurlOpacity HackMạng BotNet Nền tảng và Cách tạo “Bot”T2 Room Spamer Beta ]]></description>
		<link>http://blog.thuongtin.net/2009/06/07/firefox-command-line-options/</link>
			</item>
	<item>
		<title>php &#8211; Chuyển từ IP sang Country [ ip 2 country ]</title>
		<description><![CDATA[Ta dùng file countries.php:

&#60;?php
$anp_cd[&#34;AD&#34;]=array(&#34;Andorra&#34;, &#34;Europe&#34;, &#34;Andorra la Vella&#34;, &#34;Euro&#34;);
$anp_cd[&#34;AE&#34;]=array(&#34;United Arab Emirates&#34;, &#34;Middle East&#34;, &#34;Abu Dhabi&#34;, &#34;UAE Dirham&#34;);
$anp_cd[&#34;AF&#34;]=array(&#34;Afghanistan&#34;, &#34;Asia&#34;, &#34;Kabul&#34;, &#34;Afghani&#34;);
$anp_cd[&#34;AG&#34;]=array(&#34;Antigua and Barbuda&#34;, &#34;Central America and the Caribbean&#34;, &#34;Saint John's&#34;, &#34;East Caribbean Dollar&#34;);
$anp_cd[&#34;AI&#34;]=array(&#34;Anguilla&#34;, &#34;Central America and the Caribbean&#34;, &#34;The Valley&#34;, &#34;East Caribbean Dollar&#34;);
$anp_cd[&#34;AL&#34;]=array(&#34;Albania&#34;, &#34;Europe&#34;, &#34;Tirana&#34;, &#34;Lek&#34;);
$anp_cd[&#34;AM&#34;]=array(&#34;Armenia&#34;, &#34;Commonwealth of Independent States&#34;, &#34;Yerevan&#34;, &#34;Armenian Dram&#34;);
$anp_cd[&#34;AN&#34;]=array(&#34;Netherlands Antilles&#34;, &#34;Central America ]]></description>
		<link>http://blog.thuongtin.net/2009/05/26/php-chuyen-tu-ip-sang-country-ip-2-country/</link>
			</item>
</channel>
</rss>
