<?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>i-keng.com</title>
	<atom:link href="http://www.i-keng.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.i-keng.com</link>
	<description>free php scripts ajax web resource</description>
	<lastBuildDate>Sat, 23 Jan 2010 08:27:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Real-Time Site Analytics Tool: Woopra</title>
		<link>http://www.i-keng.com/2010/01/12/real-time-site-analytics-tool-woopra/</link>
		<comments>http://www.i-keng.com/2010/01/12/real-time-site-analytics-tool-woopra/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 15:25:22 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[Web Stat]]></category>
		<category><![CDATA[Web Tracking]]></category>
		<category><![CDATA[woopra]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=131</guid>
		<description><![CDATA[วันนี้จะมาแนะนำ Tools สำหรับใช้เก็บ Stat. ของ WebSite กันครับ โดยเจ้าตัวนี้ชื่อ Woopra ครับ
โดยการใช้งานทั่วไปก็คล้ายๆกับ Web stats หรือ Google Analytics ทั่วไป (ข้อมูลอาจจะเยอะกว่าด้วยซ้ำ) .. แต่เจ้าตัวนี้จะมี Desktop Application เอาใว้ให้ Monitor กันแบบ Realtime กันเลยทีเดียวเชียวครับ


Features

Live Tracking and Web Statistics
Rich User Interface
Real-Time Analytics
Manage Multiple Blogs and Websites
Deep Analytic and Search Capabilities
Live Chat

ตัวอย่าง Desktop Application



Website: http://www.woopra.com/
Download: http://www.woopra.com/download/

Live Tracking and Web Statistics

Share on Facebook]]></description>
			<content:encoded><![CDATA[<p>วันนี้จะมาแนะนำ Tools สำหรับใช้เก็บ Stat. ของ WebSite กันครับ โดยเจ้าตัวนี้ชื่อ <a href="http://www.woopra.com/" target="_blank">Woopra</a> ครับ</p>
<p>โดยการใช้งานทั่วไปก็คล้ายๆกับ Web stats หรือ Google Analytics ทั่วไป (ข้อมูลอาจจะเยอะกว่าด้วยซ้ำ) .. แต่เจ้าตัวนี้จะมี Desktop Application เอาใว้ให้ Monitor กันแบบ Realtime กันเลยทีเดียวเชียวครับ</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-140" title="woo" src="http://www.i-keng.com/wp-content/uploads/2010/01/woo1.png" alt="" width="450" height="268" /></p>
<p><span id="more-131"></span></p>
<p><strong><span style="text-decoration: underline;">Features</span></strong></p>
<ul>
<li>Live Tracking and Web Statistics</li>
<li>Rich User Interface</li>
<li>Real-Time Analytics</li>
<li>Manage Multiple Blogs and Websites</li>
<li>Deep Analytic and Search Capabilities</li>
<li>Live Chat</li>
</ul>
<p><strong><span style="text-decoration: underline;">ตัวอย่าง Desktop Application</span></strong></p>
<p><img class="aligncenter size-full wp-image-134" title="woopra" src="http://www.i-keng.com/wp-content/uploads/2010/01/woopra1.png" alt="" width="450" height="300" /></p>
<p><img class="aligncenter size-full wp-image-135" title="woopra2" src="http://www.i-keng.com/wp-content/uploads/2010/01/woopra2.png" alt="" width="450" height="300" /></p>
<p><img class="aligncenter size-full wp-image-136" title="woopra3" src="http://www.i-keng.com/wp-content/uploads/2010/01/woopra3.png" alt="" width="450" height="300" /></p>
<p><strong>Website:</strong> <a href="http://www.woopra.com/" target="_blank">http://www.woopra.com/</a></p>
<p><strong>Download:</strong> <a href="http://www.woopra.com/download/" target="_blank">http://www.woopra.com/download/</a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px;">
<h3>Live Tracking and Web Statistics</h3>
</div>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/12/real-time-site-analytics-tool-woopra/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/12/real-time-site-analytics-tool-woopra/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2010/01/12/real-time-site-analytics-tool-woopra/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>xmoovStream &#8211; Opensource PHP Streaming</title>
		<link>http://www.i-keng.com/2010/01/12/xmoovstream-opensource-php-streaming/</link>
		<comments>http://www.i-keng.com/2010/01/12/xmoovstream-opensource-php-streaming/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 07:31:49 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php Streaming]]></category>
		<category><![CDATA[PHP Streaming Server]]></category>
		<category><![CDATA[straming server]]></category>
		<category><![CDATA[xmoovStream]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=122</guid>
		<description><![CDATA[xmoovStream Server is an open source http streaming server built with PHP.


It creates a layer between the web &#38; your files to provide you control over them in many ways like:

stream Flash videos
force file downloads
logging of every action
hot link protection
hide original file locations
bandwidth throttling &#38; burst loading
&#38; more..

xmoovStream is a centralized server which can manage ]]></description>
			<content:encoded><![CDATA[<p><strong>xmoovStream Server</strong> is an <strong>open source http streaming server</strong> built with <strong>PHP</strong>.</p>
<div style="text-align: center;"><img class="size-full wp-image-123  aligncenter" title="xmoovStream" src="http://www.i-keng.com/wp-content/uploads/2010/01/xmoovStream.png" alt="" width="400" height="225" /></div>
<p><span id="more-122"></span><br />
It creates a layer between the web &amp; your files to provide you control over them in many ways like:</p>
<ul>
<li>stream Flash videos</li>
<li>force file downloads</li>
<li>logging of every action</li>
<li>hot link protection</li>
<li>hide original file locations</li>
<li>bandwidth throttling &amp; burst loading</li>
<li>&amp; more..</li>
</ul>
<p><strong>xmoovStream</strong> is a <strong>centralized server</strong> which can manage different kinds of content from different urls under a single installation.</p>
<p>Like mentioned, it is not limited to streaming Flash videos, it can simply <strong>stream any file type</strong> including the video player itself or a thumbnail.</p>
<p>The server also <strong>comes with a lightweight video player &amp; an audio player</strong> for streaming your content.</p>
<p><strong>P.S.</strong> The resource is free for non-commercial website &amp; requires a license for any other usage.</p>
<p><strong>Website:</strong> <a href="http://stream.xmoov.com/" target="_blank">http://stream.xmoov.com/</a><br />
<strong>Demo:</strong> <a href="http://stream.xmoov.com/examples/" target="_blank">http://stream.xmoov.com/examples/</a><br />
<strong>Download:</strong> <a href="http://stream.xmoov.com/download/" target="_blank">http://stream.xmoov.com/download/</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/12/xmoovstream-opensource-php-streaming/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/12/xmoovstream-opensource-php-streaming/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2010/01/12/xmoovstream-opensource-php-streaming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Highcharts: Interactive JavaScript Charts</title>
		<link>http://www.i-keng.com/2010/01/04/highcharts-interactive-javascript-charts/</link>
		<comments>http://www.i-keng.com/2010/01/04/highcharts-interactive-javascript-charts/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 16:22:59 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[iphone graph]]></category>
		<category><![CDATA[iwebkit graph]]></category>
		<category><![CDATA[javascript graph]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=119</guid>
		<description><![CDATA[Highcharts is a JavaScript charting library for creating interactive charts in various types (line, spline, area, areaspline, column, bar, pie &#38; scatter).
The library offers a high-level of usability with features like:

 tooltip labels displaying info on hovered items
 zooming on a specific part of the chart
 text rotation on labels for a better readability


Highcharts has ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.highcharts.com/" target="_blank"><strong>Highcharts</strong></a> is a <strong>JavaScript charting library</strong> for creating <strong>interactive charts</strong> in various types (line, spline, area, areaspline, column, bar, pie &amp; scatter).</p>
<p>The library offers a high-level of usability with features like:</p>
<ul>
<li> tooltip labels displaying info on hovered items</li>
<li> zooming on a specific part of the chart</li>
<li> text rotation on labels for a better readability</li>
</ul>
<p><img class="aligncenter size-full wp-image-120" title="highcharts-js" src="http://www.i-keng.com/wp-content/uploads/2010/01/highcharts-js.jpg" alt="highcharts-js" width="480" height="246" /><span id="more-119"></span></p>
<p><strong>Highcharts</strong> has an <strong>admirable effort in browser compatibility</strong>. For standard browsers it uses the canvas element and in some cases SVG for the graphics rendering. In Internet Explorer, graphics are drawn using VML. Besides all major browsers, it <strong>works in iPhone &amp; IE6</strong>.</p>
<p>The library is offered for <strong>free to be used in personal/non-commercial projects</strong> &amp; requires a license for commercial ones.</p>
<p><strong>Website:</strong> <a href="http://www.highcharts.com/" target="_blank">http://www.highcharts.com/<br />
</a> <strong>Demo:</strong> <a href="http://www.highcharts.com/demo" target="_blank">http://www.highcharts.com/demo<br />
</a> <strong>Download:</strong> <a href="http://www.highcharts.com/download">http://www.highcharts.com/download</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/04/highcharts-interactive-javascript-charts/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/04/highcharts-interactive-javascript-charts/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2010/01/04/highcharts-interactive-javascript-charts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stunning Web-Based File Manager: Mollify</title>
		<link>http://www.i-keng.com/2010/01/04/stunning-web-based-file-manager-mollify/</link>
		<comments>http://www.i-keng.com/2010/01/04/stunning-web-based-file-manager-mollify/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 16:18:27 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[osx style]]></category>
		<category><![CDATA[php gwt]]></category>
		<category><![CDATA[php list directory]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=114</guid>
		<description><![CDATA[Mollify is an open source web-based file manager, built with PHP &#38; GWT, that can control files hosted in a web server or hosting account.
It has a simple, intuitive &#38; Ajaxed interface that also supports multiple languages.


The application is multi-user (users &#38; user-groups) where a file-level access can be set.
File actions &#38; directory actions can ]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.jaervelae.com/mollify/" target="_blank"><strong>Mollify</strong></a> is an <strong>open source web-based file manager</strong>, built with <strong>PHP &amp; GWT</strong>, that can control files hosted in a web server or hosting account.</p>
<p>It has a <strong>simple, intuitive &amp; Ajaxed interface</strong> that also supports multiple languages.</p>
<p style="text-align: right;"><img class="aligncenter size-full wp-image-115" title="mollify" src="http://www.i-keng.com/wp-content/uploads/2010/01/mollify.jpg" alt="mollify" width="480" height="201" /></p>
<p><span id="more-114"></span></p>
<p>The application is <strong>multi-user (users &amp; user-groups)</strong> where a file-level access can be set.</p>
<p>File actions &amp; directory actions can be completed quickly from context popup menus. It is also possible to <strong>download files/folders in zipped format</strong>.</p>
<p><strong>Mollify</strong> can <strong>upload multiple files</strong> at once &amp; enables to list the contents with <strong>sortable columns</strong>.</p>
<p>A unique feature offered is the <strong>ability to define aliases for folders</strong> in order to hide the real folder structure for security purposes.</p>
<p>The interface is totally <strong>customizable with CSS</strong>. Also, integration of the application with other products is possible as the frontend &amp; backends are independent (they communicate with HTTP/JSON).</p>
<p><strong>Website:</strong> <a href="Website: http://www.jaervelae.com/mollify/ Demo: http://www.jaervelae.com/mollify/demo.php Download: http://www.jaervelae.com/mollify/download.php" target="_blank">http://www.jaervelae.com/mollify/<br />
</a> <strong>Demo:</strong> <a href="http://www.jaervelae.com/mollify/demo.php" target="_blank">http://www.jaervelae.com/mollify/demo.php<br />
</a> <strong>Download:</strong> <a href="http://www.jaervelae.com/mollify/download.php" target="_blank">http://www.jaervelae.com/mollify/download.php</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/04/stunning-web-based-file-manager-mollify/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/04/stunning-web-based-file-manager-mollify/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2010/01/04/stunning-web-based-file-manager-mollify/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simple JavaScript UI Kit For Complex Apps.: UKI</title>
		<link>http://www.i-keng.com/2010/01/04/simple-javascript-ui-kit-for-complex-apps-uki/</link>
		<comments>http://www.i-keng.com/2010/01/04/simple-javascript-ui-kit-for-complex-apps-uki/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 16:12:36 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[javascript desktop]]></category>
		<category><![CDATA[ui]]></category>
		<category><![CDATA[uki]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=111</guid>
		<description><![CDATA[Uki is a simple JavaScript user interface toolkit for creating desktop-like web applications with few lines of code.
The toolkit is fast. It uses progressive rendering, can render 30k+ lists &#38; tables very quickly (which would normally take minutes in IE).


It doesn&#8217;t offer a complete JavaScript framework. Rather, Uki is totally focused on the layout and, ]]></description>
			<content:encoded><![CDATA[<p><a href="http://ukijs.org/" target="_blank"><strong>Uki</strong></a> is a simple <strong>JavaScript user interface toolkit</strong> for <strong>creating desktop-like web applications</strong> with few lines of code.</p>
<p>The toolkit is <strong>fast</strong>. It uses progressive rendering, can render 30k+ lists &amp; tables very quickly (which would normally take minutes in IE).</p>
<p style="text-align: right;"><img class="aligncenter size-full wp-image-112" title="uki-javascript-ui-toolkit" src="http://www.i-keng.com/wp-content/uploads/2010/01/uki-javascript-ui-toolkit.jpg" alt="uki-javascript-ui-toolkit" width="480" height="178" /></p>
<p><span id="more-111"></span></p>
<p>It doesn&#8217;t offer a complete JavaScript framework. Rather, <strong>Uki is totally focused on the layout</strong> and, if wanted, can be used with any JS framework.</p>
<p><strong>Uki</strong> comes with a <strong>rich view-component library</strong> ranging from slider to list and splitpane (more is on the way like tree, grid views).</p>
<p>The toolkit works cross-browser &amp; presents a <a href="http://ukijs.org/functional/wave.html" target="_blank">demo for creating the Google Wave interface</a> with 100 lines of code.</p>
<p><strong>Website:</strong> <a href="http://ukijs.org/" target="_blank">http://ukijs.org/</a><br />
<strong>Demo:</strong> <a href="http://ukijs.org/functional/wave.html" target="_blank">http://ukijs.org/functional/wave.html</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/04/simple-javascript-ui-kit-for-complex-apps-uki/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2010/01/04/simple-javascript-ui-kit-for-complex-apps-uki/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2010/01/04/simple-javascript-ui-kit-for-complex-apps-uki/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การ Kill Session ที่เป็น SNIPED บน Oracle</title>
		<link>http://www.i-keng.com/2009/09/26/kill-oracle-sniped-session/</link>
		<comments>http://www.i-keng.com/2009/09/26/kill-oracle-sniped-session/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 04:26:56 +0000</pubDate>
		<dc:creator>anurak</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[kill oracle session]]></category>
		<category><![CDATA[kill oracle sniped session]]></category>
		<category><![CDATA[killing oracle session]]></category>
		<category><![CDATA[คำสั่ง kill oracle session]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=81</guid>
		<description><![CDATA[คำสั่งสำหรับ Kill Session บน Oracle ที่ Status เป็น SNIPED ค่ะ
ขั้นตอนแรกต้อง Select ดูค่า SID และ SERIALS# กันก่อนค่ะ ตามSQL statement ด้านล่างนี้ค่ะ

SELECT SID,SERIAL# FROM V$SESSION WHERE STATUS=&#039;SNIPED&#039;;


จากนั้นเมื่อได้ค่า SID และ SERIALS# มาแล้วก็ใช้คำสั่งนี้ ในการKill session ที่Sniped ได้เลยค่ะ

ALTER SYSTEM KILL SESSION &#039;XXX,YYYY&#039; IMMEDIATE;
--XXX = SID
--YYYY = SERIALS

**anurak หวังว่าคงมีประโยชน์กับใครๆหลายคนบ้างไม่มากก้อน้อยนะคะ  ^___^
Share on Facebook]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff1493;">คำสั่งสำหรับ Kill Session บน Oracle ที่ Status เป็น SNIPED ค่ะ</span></p>
<p><span style="color: #ff1493;">ขั้นตอนแรกต้อง Select ดูค่า SID และ SERIALS# กันก่อนค่ะ ตามSQL statement ด้านล่างนี้ค่ะ</span></p>
<pre class="brush: sql">
SELECT SID,SERIAL# FROM V$SESSION WHERE STATUS=&#039;SNIPED&#039;;
</pre>
<p><span id="more-81"></span></p>
<p><span style="color: #ff1493;">จากนั้นเมื่อได้ค่า SID และ SERIALS# มาแล้วก็ใช้คำสั่งนี้ ในการKill session ที่Sniped ได้เลยค่ะ</span></p>
<pre class="brush: sql">
ALTER SYSTEM KILL SESSION &#039;XXX,YYYY&#039; IMMEDIATE;
--XXX = SID
--YYYY = SERIALS
</pre>
<p><span style="color: #ff1493;">**anurak หวังว่าคงมีประโยชน์กับใครๆหลายคนบ้างไม่มากก้อน้อยนะคะ  ^___^</span></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/26/kill-oracle-sniped-session/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/26/kill-oracle-sniped-session/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2009/09/26/kill-oracle-sniped-session/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>การแบ่งหน้าด้วย PHP (PHP Paging)</title>
		<link>http://www.i-keng.com/2009/09/26/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%81%e0%b8%9a%e0%b9%88%e0%b8%87%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-php-php-paging/</link>
		<comments>http://www.i-keng.com/2009/09/26/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%81%e0%b8%9a%e0%b9%88%e0%b8%87%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-php-php-paging/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 17:22:24 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[php paging]]></category>
		<category><![CDATA[การแบ่งหน้าด้วย php]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=68</guid>
		<description><![CDATA[วิธีการแบ่งหน้าด้วย PHP ให้ออกมาในรูปแบบดังนี้
[First page]  &#60;&#60; Previous &#124; Page: &#8230; 2 3 4 5 6 &#8230; &#124; Next &#62;&#62; [Last page]
วิธีใช้งาน

&#60;?
echo displayPaging( $total, $limit, $pagenumber, $baseurl );
/*
$total = จำนวนข้อมูลทั้งหมด
$limit = จำนวนข้อมูลต่อ 1 หน้า
$pagenumber = เลขหน้าปัจจุบัน
$baseurl = Parameter ต่าง ๆ แต่ Parameter สุดท้ายต้องเป็น page=
ตัวอย่าง displayPaging( 100, 20, 4, &#34;?keyword=เก่ง&#38;page=&#34;);
*/
?&#62;

ตัว Function อยู่ด้านในนะจ๊ะ&#8230;

ตัว Function 

&#60;?
function displayPaging( $total, $limit, ]]></description>
			<content:encoded><![CDATA[<p>วิธีการแบ่งหน้าด้วย PHP ให้ออกมาในรูปแบบดังนี้</p>
<p>[First page]  &lt;&lt; Previous | Page: &#8230; 2 3 4 5 6 &#8230; | Next &gt;&gt; [Last page]</p>
<p><span style="text-decoration: underline;"><strong>วิธีใช้งาน</strong></span></p>
<pre class="brush: php">
&lt;?
echo displayPaging( $total, $limit, $pagenumber, $baseurl );
/*
$total = จำนวนข้อมูลทั้งหมด
$limit = จำนวนข้อมูลต่อ 1 หน้า
$pagenumber = เลขหน้าปัจจุบัน
$baseurl = Parameter ต่าง ๆ แต่ Parameter สุดท้ายต้องเป็น page=
ตัวอย่าง displayPaging( 100, 20, 4, &quot;?keyword=เก่ง&amp;page=&quot;);
*/
?&gt;
</pre>
<p>ตัว Function อยู่ด้านในนะจ๊ะ&#8230;</p>
<p><span id="more-68"></span></p>
<p><strong><span style="text-decoration: underline;">ตัว Function </span></strong></p>
<pre class="brush: php">
&lt;?
function displayPaging( $total, $limit, $pagenumber, $baseurl ){
// how many page numbers to show in list at a time
$showpages = &quot;10&quot;; // 1,3,5,7,9...

// set up icons to be used
$icon_path =	&#039;icons/&#039;;
$icon_param =	&#039;align=&quot;middle&quot; style=&quot;border:0px;&quot; &#039;;
$icon_first=	&#039;[First page]&#039;;
$icon_last=	&#039;[Lastpage]&#039;;
$icon_previous=	&#039;&lt;&lt; Previous&#039;;
$icon_next=	&#039;Next &gt;&gt;&#039;;
///////////////////
///////////////////

// do calculations
$pages = ceil($total / $limit);
$offset = ($pagenumber * $limit) - $limit;
$end = $offset + $limit;

// prepare paging links
$html .= &#039;&lt;div id=&quot;pageLinks&quot;&gt;&#039;;
// if first link is needed
if($pagenumber &gt; 1) { $previous = $pagenumber -1;
$html .= &#039;&lt;a href=&quot;&#039;.$baseurl.&#039;1&quot;&gt;&#039;.$icon_first.&#039;&lt;/a&gt; &#039;;
}
// if previous link is needed
if($pagenumber &gt; 2) {    $previous = $pagenumber -1;
$html .= &#039;&lt;a href=&quot;&#039;.$baseurl.&#039;&#039;.$previous.&#039;&quot;&gt;&#039;.$icon_previous.&#039;&lt;/a&gt; &#039;;
}
// print page numbers
if ($pages&gt;=2) { $p=1;
$html .= &quot;| Page: &quot;;
$pages_before = $pagenumber - 1;
$pages_after = $pages - $pagenumber;
$show_before = floor($showpages / 2);
$show_after = floor($showpages / 2);
if ($pages_before &lt; $show_before){
$dif = $show_before - $pages_before;
$show_after = $show_after + $dif;
}
if ($pages_after &lt; $show_after){
$dif = $show_after - $pages_after;
$show_before = $show_before + $dif;
}
$minpage = $pagenumber - ($show_before+1);
$maxpage = $pagenumber + ($show_after+1);

if ($pagenumber &gt; ($show_before+1) &amp;amp;&amp;amp; $showpages &gt; 0) {
$html .= &quot; ... &quot;;
}
while ($p &lt;= $pages) {
if ($p &gt; $minpage &amp;amp;&amp;amp; $p &lt; $maxpage) {
if ($pagenumber == $p) {
$html .= &quot; &lt;b&gt;&quot;.$p.&quot;&lt;/b&gt;&quot;;
} else {
$html .= &#039; &lt;a href=&quot;&#039;.$baseurl.$p.&#039;&quot;&gt;&#039;.$p.&#039;&lt;/a&gt;&#039;;
}
}
$p++;
}
if ($maxpage-1 &lt; $pages &amp;amp;&amp;amp; $showpages &gt; 0) {
$html .= &quot; ... &quot;;
}
}
// if next link is needed
if($end &lt; $total) { $next = $pagenumber +1;
if ($next != ($p-1)) {
$html .= &#039; | &lt;a href=&quot;&#039;.$baseurl.$next.&#039;&quot;&gt;&#039;.$icon_next.&#039;&lt;/a&gt;&#039;;
} else {$html .= &#039; | &#039;;}
}
// if last link is needed
if($end &lt; $total) { $last = $p -1;
$html .= &#039; &lt;a href=&quot;&#039;.$baseurl.$last.&#039;&quot;&gt;&#039;.$icon_last.&#039;&lt;/a&gt;&#039;;
}
$html .= &#039;&lt;/div&gt;&#039;;
// return paging links
return $html;
}
?&gt;
</pre>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/26/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%81%e0%b8%9a%e0%b9%88%e0%b8%87%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-php-php-paging/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/26/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%81%e0%b8%9a%e0%b9%88%e0%b8%87%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-php-php-paging/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2009/09/26/%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b9%81%e0%b8%9a%e0%b9%88%e0%b8%87%e0%b8%ab%e0%b8%99%e0%b9%89%e0%b8%b2%e0%b8%94%e0%b9%89%e0%b8%a7%e0%b8%a2-php-php-paging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check external URL exists Using PHP</title>
		<link>http://www.i-keng.com/2009/09/26/check-target-url-exists/</link>
		<comments>http://www.i-keng.com/2009/09/26/check-target-url-exists/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 17:08:17 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Check external URL exists Using PHP]]></category>
		<category><![CDATA[check url exists using php]]></category>
		<category><![CDATA[url exists]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=62</guid>
		<description><![CDATA[วิธีตรวจสอบว่า URL ปลายทางนั้นมีอยู่จริงรึป่าว ??
วิธีใช้งาน

&#60;?
     echo url_exists(&#34;http://www.i-keng.com/images/i-keng.png&#34;);
?&#62;

ตัว Function อยู่ด้านในนะจ๊ะ&#8230;

ตัว Function 


&#60;?
     function url_exists($url){
         $url = str_replace(&#34;http://&#34;, &#34;&#34;, $url);
         if (strstr($url, &#34;/&#34;)) {
           ]]></description>
			<content:encoded><![CDATA[<p>วิธีตรวจสอบว่า URL ปลายทางนั้นมีอยู่จริงรึป่าว ??</p>
<p><span style="text-decoration: underline;"><strong>วิธีใช้งาน</strong></span></p>
<pre class="brush: php">
&lt;?
     echo url_exists(&quot;http://www.i-keng.com/images/i-keng.png&quot;);
?&gt;
</pre>
<p>ตัว Function อยู่ด้านในนะจ๊ะ&#8230;</p>
<p><span id="more-62"></span></p>
<p><strong><span style="text-decoration: underline;">ตัว Function </span></strong></p>
<pre class="brush: php">

&lt;?
     function url_exists($url){
         $url = str_replace(&quot;http://&quot;, &quot;&quot;, $url);
         if (strstr($url, &quot;/&quot;)) {
             $url = explode(&quot;/&quot;, $url, 2);
             $url[1] = &quot;/&quot;.$url[1];
         } else {
             $url = array($url, &quot;/&quot;);
         }
         $fh = fsockopen($url[0], 80);
         if ($fh) {
             fputs($fh,&quot;GET &quot;.$url[1].&quot; HTTP/1.1\nHost:&quot;.$url[0].&quot;\n\n&quot;);
             if (fread($fh, 22) == &quot;HTTP/1.1 404 Not Found&quot;) {
                 return FALSE;
             } else {
                 return true;   
             }
         } else {
             return false;
         }
     }
?&gt;
</pre>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/26/check-target-url-exists/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/26/check-target-url-exists/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2009/09/26/check-target-url-exists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>การใช้งาน fsockopen เชื่อมต่อ ไปหา Server ที่เป็น Tomcat และ Apache</title>
		<link>http://www.i-keng.com/2009/09/25/fsockopen-to-tomcat-server/</link>
		<comments>http://www.i-keng.com/2009/09/25/fsockopen-to-tomcat-server/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 14:47:53 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[close connection when fsockopen]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[fsockopen]]></category>
		<category><![CDATA[fsockopen to tomcat]]></category>
		<category><![CDATA[fsockopen to tomcat server]]></category>
		<category><![CDATA[การใช้งาน cURL]]></category>
		<category><![CDATA[การใช้งาน fsockopen]]></category>
		<category><![CDATA[เปิด socket ไปหา tomcat]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=48</guid>
		<description><![CDATA[
สืบเนื่องจากผมประสบปัญหาการใช้งาน fsockopen ที่เคย Connect ไปหา Server ที่เป็น Apache แต่ ณ.บัดนาว ต้องใช้งาน fsockopen Connect ไปหา Server ที่เป็น Tomcat ความบรรลัยจึงบังเกิด &#8230;

โดยปกติแล้วนั้น เมื่อ ใช้งาน fsockopen Connect ไปหา Server ที่เป็น Apache นั้น มันจะต้ด Header ด้วย \r\n ดังนี้..

$ctrlf = &#34;\r\n&#34;;
$header = &#34;POST /  HTTP/1.0&#34;.$ctrlf;
$header .= &#34;Content-type: application/x-www-form-urlencoded&#34;.$ctrlf;
$header .= &#34;Content-Length: &#34;.$contentlength.$ctrlf;
$fp = fsockopen(&#34;www.example.com&#34;, 80, $errno, $errstr, 30);
if ($fp){
fwrite($fp,$header.$ctrlf);
while (!feof($fp)) {
$tmp = ]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-full wp-image-59" title="php-apache-tomcat" src="http://www.i-keng.com/wp-content/uploads/2009/09/php-apache-tomcat.jpg" alt="php-apache-tomcat" width="365" height="218" /></p>
<p>สืบเนื่องจากผมประสบปัญหาการใช้งาน <a href="http://th2.php.net/manual/en/function.fsockopen.php" target="_blank">fsockopen</a> ที่เคย Connect ไปหา Server ที่เป็น Apache แต่ ณ.บัดนาว ต้องใช้งาน <a href="http://th2.php.net/manual/en/function.fsockopen.php" target="_blank">fsockopen</a> Connect ไปหา Server ที่เป็น Tomcat ความบรรลัยจึงบังเกิด &#8230;</p>
<p><span id="more-48"></span></p>
<p>โดยปกติแล้วนั้น เมื่อ ใช้งาน <a href="http://th2.php.net/manual/en/function.fsockopen.php" target="_blank">fsockopen</a> Connect ไปหา Server ที่เป็น Apache นั้น มันจะต้ด Header ด้วย <span style="color: #ff0000;">\r\n</span> ดังนี้..</p>
<pre class="brush: php">
$ctrlf = &quot;\r\n&quot;;
$header = &quot;POST /  HTTP/1.0&quot;.$ctrlf;
$header .= &quot;Content-type: application/x-www-form-urlencoded&quot;.$ctrlf;
$header .= &quot;Content-Length: &quot;.$contentlength.$ctrlf;
$fp = fsockopen(&quot;www.example.com&quot;, 80, $errno, $errstr, 30);
if ($fp){
fwrite($fp,$header.$ctrlf);
while (!feof($fp)) {
$tmp = fgets($fp, 200);
$response .= $tmp;
}
} else {
$response = &quot;Connection failed : &quot;.$errstr.&quot;(&quot;.$errno.&quot;)&lt;br /&gt;\n&quot;;
}
</pre>
<p>แต่่ด้วย Code เดียวกันนี้ ถ้า ใช้งาน <a href="http://th2.php.net/manual/en/function.fsockopen.php" target="_blank">fsockopen</a> ไปหา Server ที่เป็็น Tomcat นั้น Server จะ Close Connection ไปเลย เนื่องจาก<br />
<span style="color: #008000;">ถ้าใช้งาน <a href="http://th2.php.net/manual/en/function.fsockopen.php" target="_blank">fsockopen</a> ไปหา Server ที่เป็น Tomcat นั้น จะตัด Header ด้วย \n ตัวเดียวเท่านั้น..</span><span style="color: #ff0000;">(ทำไมไม่เสือกทำให้เหมือนกันวะ!!)</span><br />
Code ด้านบน จึงใช้งานเชื่อมต่อไปหา Server ที่เป็น Tomcat ไม่ได้ สาดด!!</p>
<p><span style="color: #ff6600;">เพราะฉะนั้นถ้าจะใช้งาน <a href="http://th2.php.net/manual/en/function.fsockopen.php" target="_blank">fsockopen</a> ไปหา Server ที่เป็น Tomcat เราจึงต้องเปลี่ยนการตัด Header จาก \r\n เป็น \n ดังนี้<br />
</span></p>
<pre class="brush: php">
$ctrlf = &quot;\n&quot;;
</pre>
<p>หรือมีอีก 1 วิธี คือใช้งาน <a href="http://th2.php.net/curl" target="_blank">cURL</a> ไปซะเลย ซึ่งวิธีนี้จะ Post ไปได้ทั้ง Server ที่เป็น Apache และ Tomcat ครับ ดังนี้</p>
<pre class="brush: php">
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, &quot;example.com&quot;);
curl_setopt($ch, CURLOPT_HTTPHEADER,array(&quot;Content-type: application/x-www-form-urlencoded&quot;));
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, &quot;params=yourparameter&quot;);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
</pre>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/25/fsockopen-to-tomcat-server/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/09/25/fsockopen-to-tomcat-server/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2009/09/25/fsockopen-to-tomcat-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Free Web Stats &amp; Analytics With SEO Features</title>
		<link>http://www.i-keng.com/2009/08/18/free-web-stats-analytics-with-seo-features/</link>
		<comments>http://www.i-keng.com/2009/08/18/free-web-stats-analytics-with-seo-features/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 15:43:41 +0000</pubDate>
		<dc:creator>i-keng</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[Analytics]]></category>
		<category><![CDATA[Google Analytics]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[stat]]></category>
		<category><![CDATA[Web Stat]]></category>

		<guid isPermaLink="false">http://www.i-keng.com/?p=41</guid>
		<description><![CDATA[Web Analytics by GoingUp!
The smarter way to manage your Web Analytics &#38; SEO
With an AJAX-rich interface, GoingUp! combines powerful web analytics with top notch SEO tools&#8230; are you GoingUp?


More Cool Features :
Web Stats
Traffic Trend Analysis
Referring Keywords
Recent Visitor Locations
Recent Visitor Map
User Profile Data
Actions &#38; Goals
Heat Maps
Inbound Link Monitoring
Google Page Rank Tracking
Alexa Rank Tracking
Keyword Research
Keyword Position Tracking
Public ]]></description>
			<content:encoded><![CDATA[<p>Web Analytics by <span style="color: #3366ff;"><strong>GoingUp!</strong></span><br />
The smarter way to manage your <span style="color: #800000;">Web Analytics &amp; SEO</span><br />
With an <span style="color: #008000;">AJAX-rich interface</span>, <strong><span style="color: #3366ff;">GoingUp!</span></strong> combines powerful web analytics with top notch SEO tools&#8230; are you <span style="color: #3366ff;"><strong>GoingUp?</strong></span></p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-42" title="web-analytics-dashboard" src="http://www.i-keng.com/wp-content/uploads/2009/08/web-analytics-dashboard.jpg" alt="web-analytics-dashboard" width="400" height="272" /></p>
<p><span id="more-41"></span></p>
<div id="goingup_features"><strong>More Cool Features :</strong></p>
<li><a href="http://www.goingup.com/features/webstats.html">Web Stats</a></li>
<li><a href="http://www.goingup.com/features/traffictrendanalysis.html">Traffic Trend Analysis</a></li>
<li><a href="http://www.goingup.com/features/referringkeywords.html">Referring Keywords</a></li>
<li><a href="http://www.goingup.com/features/visitorlocations.html">Recent Visitor Locations</a></li>
<li><a href="http://www.goingup.com/features/visitormaps.html">Recent Visitor Map</a></li>
<li><a href="http://www.goingup.com/features/userprofiledata.html">User Profile Data</a></li>
<li><a href="http://www.goingup.com/features/actionsandgoals.html">Actions &amp; Goals</a></li>
<li><a href="http://www.goingup.com/features/heatmaps.html">Heat Maps</a></li>
<li><a href="http://www.goingup.com/features/inboundlinks.html">Inbound Link Monitoring</a></li>
<li><a href="http://www.goingup.com/features/pagerank.html">Google Page Rank Tracking</a></li>
<li><a href="http://www.goingup.com/features/alexaranking.html">Alexa Rank Tracking</a></li>
<li><a href="http://www.goingup.com/features/keywordresearch.html">Keyword Research</a></li>
<li><a href="http://www.goingup.com/features/keywordpositionmonitor.html">Keyword Position Tracking</a></li>
<li><a href="http://www.goingup.com/features/publicwebstats.html">Public Webstats</a></li>
<li><a href="http://www.goingup.com/features/pageoptimizertool.html">Page Optimizer Tool</a></li>
<li><a href="http://www.goingup.com/features/keyworddensitytool.html">Keyword Density Tool<br />
</a></li>
</div>
<p><strong>Website :</strong> <a href="http://www.goingup.com/" target="_blank">http://www.goingup.com/<br />
</a></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/08/18/free-web-stats-analytics-with-seo-features/" target="_blank"><img src="http://www.i-keng.com/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://www.i-keng.com/2009/08/18/free-web-stats-analytics-with-seo-features/" target="_blank" title="Share on Facebook">Share on Facebook</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.i-keng.com/2009/08/18/free-web-stats-analytics-with-seo-features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
