<?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>Istanto Blog - Online Business, Short Reviews, Computers and Internet, Tips and Trick, Make Money Online. &#187; php</title>
	<atom:link href="http://www.istanto.net/tag/php/feed" rel="self" type="application/rss+xml" />
	<link>http://www.istanto.net</link>
	<description>Online Business, Short Reviews, Computers and Internet, Tips and Trick, Make Money Online.</description>
	<lastBuildDate>Sun, 08 Jan 2012 02:56:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>PHP: How To Created Youtube Related Video</title>
		<link>http://www.istanto.net/php-how-to-created-youtube-related-video.html</link>
		<comments>http://www.istanto.net/php-how-to-created-youtube-related-video.html#comments</comments>
		<pubDate>Mon, 15 Aug 2011 13:50:40 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Computer And Internet]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[related video]]></category>
		<category><![CDATA[youtube]]></category>
		<category><![CDATA[youtube related]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=2537</guid>
		<description><![CDATA[This stupid idea come into my head when I analyze the most keywords coming to one of my lyrics site. Mostly people coming to my site with a relevant keyword, example: song title and artist name. I need something to make an interactive place for them to keep them coming back. I was thinking about [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This <em>stupid</em> idea come into my head when I analyze the most keywords coming to one of my lyrics site. Mostly people coming to my site with a relevant keyword, example: song title and artist name. I need something to make an interactive place for them to keep them coming back. I was thinking about an video preview and it ended with related video idea.</p>
<p style="text-align: justify;">On this short articles I will share the way to created youtube related video using combination of PHP and javascript (using wordpress as CMS, of course you can edit it to fit your site). This feature will fits for mp3 sites or reviews related site which may need related video to give more information to visitors.</p>
<p style="text-align: justify;">First we will need this javascript code:</p>
<blockquote><p>function ytlist(data) {<br />
var feed = data.feed;<br />
var entries = feed.entry || [];<br />
var html = ['&lt;ul class="yt-related"&gt;'];<br />
for (var i = 0; i &lt; entries.length; i++) {<br />
var entry = entries[i];<br />
var thumbnailUrl = entries[i].media$group.media$thumbnail[0].url;<br />
var playerUrl = entries[i].media$group.media$content[0].url;<br />
html.push(&#8216;&lt;li onclick=&#8221;loadVideo(\&#8221;, playerUrl, &#8216;\&#8217;, true)&#8221;&gt;&#8217;, &#8216;&lt;img src=&#8221;&#8216;, thumbnailUrl, &#8216;&#8221; width=&#8221;130&#8243; height=&#8221;90&#8243;/&gt;&#8217;, &#8216;&lt;/span&gt;&lt;/li&gt;&#8217;);<br />
}<br />
html.push(&#8216;&lt;/ul&gt;&lt;br style=&#8221;clear: left;&#8221;/&gt;&#8217;);<br />
document.getElementById(&#8216;ytlist&#8217;).innerHTML = html.join(&#8221;);<br />
if (entries.length &gt; 0) {<br />
loadVideo(entries[0].media$group.media$content[0].url, false);<br />
}<br />
}<br />
function loadVideo(playerUrl, autoplay) {<br />
var atts = {<br />
id: &#8216;ytbox&#8217;<br />
};<br />
swfobject.embedSWF(playerUrl + &#8216;&amp;fs=1&amp;enablejsapi=1&amp;autoplay=&#8217; + (autoplay ? 1 : 0), &#8216;player&#8217;, &#8217;500&#8242;, &#8217;300&#8242;, &#8217;9.0.0&#8242;, false, false, {<br />
allowfullscreen: &#8216;true&#8217;<br />
}, {<br />
allowscriptaccess: &#8216;always&#8217;<br />
});<br />
}<br />
function setVisibility(id, visibility) {<br />
document.getElementById(id).style.display = visibility;</p></blockquote>
<p style="text-align: justify;">Save it as yt.js or get it directly from here <a href="http://www.istanto.net/files/yt.js" target="_blank">yt.js</a> upload it into the right place (in this sample I used wordpress so I put it into themes folder). Next in your header site put this code before &lt;/head&gt; tag</p>
<blockquote><p>&lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://<strong>YOURDOMAIN</strong>/<strong>PATH</strong>/yt.js&#8221;&gt;&lt;/script&gt;<br />
&lt;script type=&#8221;text/javascript&#8221; src=&#8221;http://swfobject.googlecode.com/svn/trunk/swfobject/swfobject.js&#8221;&gt;&lt;/script&gt;</p></blockquote>
<p style="text-align: justify;">After this done create CSS file or add this code bellow if you&#8217;re already have the CSS file.</p>
<blockquote><p>#yt{background:#FFF;width:575px}<br />
.close{background:#eee;font-size:12px;height:20px;text-align:right;width:500px}<br />
.close a{color:#111}<br />
ul.yt-related li{cursor:pointer;float:left;list-style:none;margin:5px;width:130px}<br />
ul.yt-related{margin-bottom:10px;margin-top:10px}<br />
#ytbox{display:none;float:left;height:300px;margin:20px;width:500px}<br />
#player{margin-bottom:20px}<br />
#ytlist{margin-top:10px}</p></blockquote>
<p style="text-align: justify;">Last step is just put this code in area where you want related video shown. Because in this sample I used wordpress I put this code on single.php and using &lt;?php the_title(); ?&gt; as the keyword for related video (you can change this to anything you like).</p>
<blockquote><p>&lt;div id=&#8221;yt&#8221;&gt; &lt;h4&gt;Video Terkait Tentang &lt;?php the_title(); ?&gt;&lt;/h4&gt;<br />
&lt;div id=&#8221;ytbox&#8221;&gt;<br />
&lt;div class=&#8221;close&#8221;<br />
onclick=&#8221;setVisibility(&#8216;ytbox&#8217;, &#8216;none&#8217;);&#8221;&gt;<br />
&lt;center&gt;&lt;a href=&#8221;javascript:void(0)&#8221;&gt;Selesai Menonton&lt;/a&gt;&lt;/center&gt;<br />
&lt;/div&gt;<br />
&lt;object id=&#8221;player&#8221;&gt;&lt;/object&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&#8221;ytlist&#8221; onclick=&#8221;setVisibility(&#8216;ytbox&#8217;, &#8216;block&#8217;);&#8221;&gt;<br />
&lt;/div&gt;<br />
&lt;center&gt;&lt;script type=&#8221;text/javascript&#8221;<br />
src=&#8221;http://gdata.youtube.com/feeds/api/videos?q=&lt;?php the_title(); ?&gt;&amp;alt=json-in-script&amp;callback=ytlist&amp;max-results=4&amp;format=5&#8243;&gt;<br />
&lt;/script&gt;&lt;/center&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&#8221;yt&#8221;&gt; &lt;h4&gt;Video Terkait Tentang &lt;?php the_title(); ?&gt;&lt;/h4&gt;<br />
&lt;div id=&#8221;ytbox&#8221;&gt;<br />
&lt;div class=&#8221;close&#8221;<br />
onclick=&#8221;setVisibility(&#8216;ytbox&#8217;, &#8216;none&#8217;);&#8221;&gt;<br />
&lt;center&gt;&lt;a href=&#8221;javascript:void(0)&#8221;&gt;<strong>Selesai Menonton</strong>&lt;/a&gt;&lt;/center&gt;<br />
&lt;/div&gt;<br />
&lt;object id=&#8221;player&#8221;&gt;&lt;/object&gt;<br />
&lt;/div&gt;<br />
&lt;div id=&#8221;ytlist&#8221; onclick=&#8221;setVisibility(&#8216;ytbox&#8217;, &#8216;block&#8217;);&#8221;&gt;<br />
&lt;/div&gt;<br />
&lt;center&gt;&lt;script type=&#8221;text/javascript&#8221;<br />
src=&#8221;http://gdata.youtube.com/feeds/api/videos?q=<strong>&lt;?php the_title(); ?&gt;</strong>&amp;alt=json-in-script&amp;callback=ytlist&amp;max-results=<strong>4</strong>&amp;format=<strong>5</strong>&#8220;&gt;<br />
&lt;/script&gt;&lt;/center&gt;<br />
&lt;/div&gt;</p></blockquote>
<p>The result will be like this sample:</p>
<p><a href="http://www.istanto.net/wp-content/uploads/2011/08/ist-related-video.jpg"><img class="aligncenter size-medium wp-image-2539" title="ist-related-video" src="http://www.istanto.net/wp-content/uploads/2011/08/ist-related-video-293x300.jpg" alt="" width="293" height="300" /></a></p>
<p style="text-align: justify;">You can check the live sample in here <a title="judas" href="http://lyrics.mp3zap.net/judas.html" target="_blank">http://lyrics.mp3zap.net/judas.html</a> Try opening another post and check the related video it will automatically searching related video on youtube using post title as keyword.</p>
<p style="text-align: justify;">Have problem to integrate? don&#8217;t be shy to asking as long I&#8217;m not busy I will help. That&#8217;s share for today, Have a nice day <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/php-how-to-created-youtube-related-video.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CRON JOB to Repair and Optimize Database</title>
		<link>http://www.istanto.net/cron-job-to-repair-and-optimize-database.html</link>
		<comments>http://www.istanto.net/cron-job-to-repair-and-optimize-database.html#comments</comments>
		<pubDate>Fri, 10 Jun 2011 10:50:36 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Computer And Internet]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[Cron Job]]></category>
		<category><![CDATA[cronjob]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[optimize database]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[repair database]]></category>
		<category><![CDATA[scheduler]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=2485</guid>
		<description><![CDATA[In this short articles we will learn how to automatically repair and optimize our database using Cron Job. Cron Job is most likely scheduler, mean it will run automatically after we setup it. I believe not many of us know how to using this features, We can use it to run periodically some PHP script [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In this short articles we will learn how to automatically repair and optimize our database using Cron Job. Cron Job is most likely scheduler, mean it will run automatically after we setup it. I believe not many of us know how to using this features, We can use it to run periodically some PHP script we made. Example a sitemap generator script which may consume to many resource if we run it manually, we can set it run in schedule follow settings on Cron Job.</p>
<p style="text-align: justify;">In this short articles I will give sample how we can use Cron Job to repair and optimize database automatically. Sometimes when you open your database using PHPmyadmin you may see some database corrupt. We need to repair it manually and optimize it then our database will run smoothly again, the impact is our website will run faster. The problem are when we have not much time on focus on this problem, or we manage to much database which may make us frustrating to work on it manually.</p>
<p style="text-align: justify;">Alright enough for the <del>bad</del> explanation, here is a sample how to use Cron Job. First we need to coding some PHP script to follow what we need. In this sample I created an PHP script to repair and optimize my database.</p>
<p><em>mysql_connect(&#8220;<strong>localhost</strong>&#8220;, &#8220;<strong>DBUSER</strong>&#8220;, &#8220;<strong>DBPASS</strong>&#8220;) or die(mysql_error());</em><br />
<em> mysql_select_db(&#8220;<strong>DBNAME</strong>&#8220;) or die(mysql_error());</em><br />
<em> mysql_query(&#8220;<strong>REPAIR TABLE </strong>`<strong>TABLE1</strong>`, `<strong>TABLE2</strong>`, `<strong>TABLE3</strong>`&#8221;);</em><br />
<em> mysql_query(&#8220;<strong>OPTIMIZE TABLE </strong>`<strong>TABLE1</strong>`, `<strong>TABLE2</strong>`, `<strong>TABLE3</strong>`&#8221;);</em></p>
<p style="text-align: justify;">I assume all of you already understand the code so let&#8217;s continue this articles. This sample script will repair and optimize our database when we open it via web browser.  Next, we need to add it to cron job to run it follows the settings we made,  so we don&#8217;t need to open it manually to repair and optimize database.</p>
<p style="text-align: justify;">From your hosting cPanel, Click on Cron Job, Next choose the setting for run this job, you can choose common settings:</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/06/ist-cron-job.jpg"><img class="aligncenter size-medium wp-image-2487" title="ist-cron-job" src="http://www.istanto.net/wp-content/uploads/2011/06/ist-cron-job-300x96.jpg" alt="" width="300" height="96" /></a></p>
<p style="text-align: justify;">Next in command form type <strong>your/php/bin -q /your/path/to/file.php </strong>you need to know your php bin and your real path to file. It should works if you&#8217;re not set it wrong.</p>
<p style="text-align: justify;">Cron job also can be used for another automation works. Example: backup your files periodically, backup your database periodically, generate your sitemap periodically, etc. All you need is coding that PHP code first then setup the cron job.</p>
<p style="text-align: justify;">That share for today, Have a nice day <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/cron-job-to-repair-and-optimize-database.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: Class For Mobile Device Detection</title>
		<link>http://www.istanto.net/php-class-for-mobile-device-detection.html</link>
		<comments>http://www.istanto.net/php-class-for-mobile-device-detection.html#comments</comments>
		<pubDate>Wed, 25 May 2011 11:52:42 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Computer And Internet]]></category>
		<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Online Business]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[ads]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobile detection]]></category>
		<category><![CDATA[mobile detection class]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php mobile detector]]></category>
		<category><![CDATA[sample code to use mobile detector class]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=1687</guid>
		<description><![CDATA[If we are using wordpress we can easily using plugin to make switch button between desktop version or mobile version for our blog. Question is how if we&#8217;re not using wordpress or we already using another CMS which not contain mobile device detection or we want to build it from zero. In this short articles [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">If we are using wordpress we can easily using plugin to make switch button between desktop version or mobile version for our blog. Question is how if we&#8217;re not using wordpress or we already using another CMS which not contain mobile device detection or we want to build it from zero. In this short articles I will write some technique to detecting mobile device or desktop device.</p>
<p style="text-align: justify;">Google really inspired my creativity after they allowed my country language showing ads in mobile version. There is 2 version ads which it&#8217;s only shown for Android or iPhone and another one is for all mobile device. I want to target the ad to maximize my revenue so I looking a better way to detecting mobile device.</p>
<p style="text-align: justify;">After searching yesterday I found one interesting project it was <a title="php mobile detect" href="http://code.google.com/p/php-mobile-detect/" target="_blank">php-mobile-detect</a>. Actually it PHP class to detecting all mobile device and some high-end device ex: android iphone, etc You can download php mobile detec class from <a title="php mobile detect class" href="http://code.google.com/p/php-mobile-detect/downloads/list" target="_blank">here</a>, open it, you may change something on there is you know about mobile device.</p>
<p style="text-align: justify;">Next, how to using this class. It&#8217;s very simple because they already documented it. First upload php mobile detect class and then created some php files with content like this:</p>
<p>include(&#8220;Mobile_Detect.php&#8221;);<br />
$detect = new Mobile_Detect();</p>
<p style="text-align: justify;">After that there is 7 device you can detect using this class&#8230; isAndroid(), isBlackberry(), isOpera(), isPalm(), isWindows(), isGeneric(), and isMobile.() Next, If I want to shown ad only for android phone then I just created php script with content like this sample:</p>
<p>if ($detect-&gt;isAndroid()) {<br />
// code to run for the Google Android platform<br />
}</p>
<p style="text-align: justify;">There is something missing on here, as we can see there is no detector for isDesktop() version. Don&#8217;t worry we can tricky it using some declaration. There is detector for isMobile() so we will using this variable. The sample code:</p>
<p>if (($detect-&gt;isMobile()) == false) {<br />
// code to run for the desktop version<br />
}</p>
<p style="text-align: justify;">That&#8217;s it! now we can sepearated users based on their device <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  and we can target ad to shown only for device required. This script was tested on my small project today, you can visited by click <a title="Facebook Status Via" href="http://facebook.istanto.net/index.php" target="_blank">this</a>. It&#8217;s not done yet but it&#8217;s already detecting what device you&#8217;re using to access it. Be creative, use your imagination to make a better coding!</p>
<p style="text-align: justify;">That&#8217;s it, Have a nice day everyone! <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/php-class-for-mobile-device-detection.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Make Money: Monetize You Mobile Site With AdMob (Integration)</title>
		<link>http://www.istanto.net/make-money-monetize-you-mobile-site-with-admob-integration.html</link>
		<comments>http://www.istanto.net/make-money-monetize-you-mobile-site-with-admob-integration.html#comments</comments>
		<pubDate>Wed, 11 May 2011 21:26:28 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Make Money Online]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[admob]]></category>
		<category><![CDATA[Make Money]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[mobile app]]></category>
		<category><![CDATA[mobile site]]></category>
		<category><![CDATA[monetize]]></category>
		<category><![CDATA[monetize mobile site]]></category>
		<category><![CDATA[money]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=1676</guid>
		<description><![CDATA[Hello everyone, In this short articles I will write about possibilities to monetize mobile site and how to integrate admob code into wordpress mobile site. In this short articles I used wodpress as desktop web engine and wp-mobile-pack plugin as mobile web engine. In the past articles on my blog we already know and learn [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Hello everyone, In this short articles I will write about possibilities to monetize mobile site and how to integrate admob code into wordpress mobile site. In this short articles I used wodpress as desktop web engine and wp-mobile-pack plugin as mobile web engine. In the past articles on my blog we already know and learn about AdMob as alternative way to monetize mobile site, admob rank become better and legit after google purchase them so don&#8217;t worry about their reputation. For wp-mobile-pack you need to learn my past articles how to doing a small modification that will affect your SEO.</p>
<p style="text-align: justify;">I&#8217;m assumed all of you already understand it so let&#8217;s get started. First we need to <a href="http://www.admob.com/register/" target="_blank">register on admob</a>. Once we registered on admob we need to add mobile site/app. Honestly, I don&#8217;t like an category in admob which it&#8217;s to small for me (personally). Hope google read this articles and expand their categories. At the moment you can choose this category:</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/admob-mobile-site-category.jpg"><img class="aligncenter size-medium wp-image-1678" title="admob-mobile-site-category" src="http://www.istanto.net/wp-content/uploads/2011/05/admob-mobile-site-category-300x121.jpg" alt="" width="300" height="121" /></a></p>
<p style="text-align: justify;">There is another option too add site/app. Not only mobile site there is Smartphone site , Android app, Iphone app, etc. You can choose which one best fit for your needs.</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/admob-site-app.jpg"><img class="aligncenter size-medium wp-image-1679" title="admob-site-app" src="http://www.istanto.net/wp-content/uploads/2011/05/admob-site-app-300x149.jpg" alt="" width="300" height="149" /></a></p>
<p style="text-align: justify;">Once you add site/app into your admob account you will received an code from adbom. In this sample I used PHP (curl) code to implement it into wp mobile pack. Copy the php code admob provide and then save it with any name as you like ex: admob.php</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/admob-php-code.jpg"><img class="aligncenter size-medium wp-image-1680" title="admob-php-code" src="http://www.istanto.net/wp-content/uploads/2011/05/admob-php-code-300x121.jpg" alt="" width="300" height="121" /></a></p>
<p style="text-align: justify;">Next, open your FTP programs and connect into your host, go to folder ..(may vary path)../wp-content/themes/mobile_pack_base/ and put your admob.php file on that folder.</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/admob-php-code-in-host.jpg"><img class="aligncenter size-medium wp-image-1681" title="admob-php-code-in-host" src="http://www.istanto.net/wp-content/uploads/2011/05/admob-php-code-in-host-300x181.jpg" alt="" width="300" height="181" /></a></p>
<p style="text-align: justify;">Next We will try to attach this admob.php into wp mobile theme. You can customize it to shown in every place you like. Example you want to show it in header edit your header.php (in themes/mobile_pack_base/) and copy this code:</p>
<p>&lt;?php<br />
include &#8216;admob.php&#8217;;<br />
echo admob_request($admob_params);<br />
?&gt;</p>
<p style="text-align: justify;">Last step, try it from your smartphone. If you see an test html admob ad then you just success integrate admob. Just focus on your content and let admob handle the ad and monetizing your mobile site.</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/SDC11967.jpg"><img class="aligncenter size-medium wp-image-1683" title="&lt;SAMSUNG DIGITAL CAMERA&gt;" src="http://www.istanto.net/wp-content/uploads/2011/05/SDC11967-225x300.jpg" alt="" width="225" height="300" /></a></p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/SDC11973.jpg"><img class="aligncenter size-medium wp-image-1684" title="&lt;SAMSUNG DIGITAL CAMERA&gt;" src="http://www.istanto.net/wp-content/uploads/2011/05/SDC11973-225x300.jpg" alt="" width="225" height="300" /></a><em></em></p>
<p style="text-align: justify;"><em>*tested with motorola phone, windows mobile 5 and windows mobile 6.1 using opera mini and internet explorer.</em></p>
<p style="text-align: justify;">That&#8217;s my share for today, hope everyone have a nice day <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/make-money-monetize-you-mobile-site-with-admob-integration.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to: Created XML Sitemap Using PHP</title>
		<link>http://www.istanto.net/how-to-created-xml-sitemap-using-php.html</link>
		<comments>http://www.istanto.net/how-to-created-xml-sitemap-using-php.html#comments</comments>
		<pubDate>Fri, 06 May 2011 15:25:03 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Computer And Internet]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[sitemap]]></category>
		<category><![CDATA[URL]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=1670</guid>
		<description><![CDATA[This articles inspired to share from my experience when I need to created custom sitemap in XML format for some of my website. Basically we will using PHP to generated URL following the sitemap in XML format. Why should in XML format? because mostly a great search engine using sitemap with XML format as their [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">This articles inspired to share from my experience when I need to created custom sitemap in XML format for some of my website. Basically we will using PHP to generated URL following the sitemap in XML format. Why should in XML format? because mostly a great search engine using sitemap with XML format as their standard.</p>
<p style="text-align: justify;">So we will using PHP script to generated URL (others will follows standard XML format). Example we have site using PHP and MYSQL we will need to query data from MYSQL and then echo it as URL. The problem is because not all website using same structure I can not give you working scripts to generate sitemap as the result may not working for your site.</p>
<p style="text-align: justify;">The good news, because mostly all website using same method (ex, PHP+mysql blabla) we can use same method to generated sitemap. First we need to make sure the first tag should be like this&#8230;</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/ist-tag.jpg"><img class="aligncenter size-medium wp-image-1671" title="ist-tag" src="http://www.istanto.net/wp-content/uploads/2011/05/ist-tag-300x27.jpg" alt="" width="300" height="27" /></a></p>
<p style="text-align: justify;">On the second line here comes your job to generated your site URL to listed. The last thing just the closing tag. If you meet problems just read the protocols for sitemap XML standard from <a href="http://sitemaps.org/protocol.php" target="_blank">here</a>. Learn about each tag function and implement it as needed.</p>
<p style="text-align: justify;">Next step, after we have PHP script that works to generated sitemap we need to make it looks like static sitemap. This trick can be done from your .htacess file by rewrite sitemap.php to become sitemap.xml, Just put this line on your .htacess file (if you don&#8217;t have it created one).</p>
<p style="text-align: justify;"><em>RewriteEngine on</em><br />
<em>RewriteRule ^sitemap.xml$ sitemap.php [L]</em></p>
<p style="text-align: justify;">Done, it will rewrite sitemap.php to become sitemap.xml and looks like static sitemap. Next step, This sitemap will shown as XML in internet explorer but not in mozilla firefox so we need to declare it as XML. Just put this code on the first line..</p>
<p style="text-align: justify;"><em>header(&#8220;Content-Type: text/xml; charset=utf-8&#8243;)</em></p>
<p style="text-align: justify;">Next, If you have more than 5,000 URL you can generated it and saved each sitemap and giving parent sitemap.</p>
<p style="text-align: justify;">The result will shown like this sample:</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/05/ist-php-sitemap-gen-result.jpg"><img class="aligncenter size-medium wp-image-1673" title="ist-php-sitemap-gen-result" src="http://www.istanto.net/wp-content/uploads/2011/05/ist-php-sitemap-gen-result-300x216.jpg" alt="" width="300" height="216" /></a></p>
<p style="text-align: justify;">In this sample I&#8217;m using PHP function to read folder and files because basically my site using folder and files to generated links. In another sample I&#8217;m using mysql query to generated my sitemap.</p>
<p style="text-align: justify;">If yours company need someone to making scripts like this I can do it for $100 &#8211; $10,000 deppend on how hard to coding it. That&#8217;s my share for today, sorry for not blogging over a month. I promised will write more in the future.</p>
<p style="text-align: justify;">Have a nice day <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/how-to-created-xml-sitemap-using-php.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PHP: How To Blocking Bad Referrer Site</title>
		<link>http://www.istanto.net/php-how-to-blocking-bad-referrer-site.html</link>
		<comments>http://www.istanto.net/php-how-to-blocking-bad-referrer-site.html#comments</comments>
		<pubDate>Sat, 29 Jan 2011 12:59:02 +0000</pubDate>
		<dc:creator>Istanto</dc:creator>
				<category><![CDATA[Computer And Internet]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[Tips & Trick]]></category>
		<category><![CDATA[ALLOWED]]></category>
		<category><![CDATA[block adf.ly referrer]]></category>
		<category><![CDATA[block bad referrer]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php script to block bad referrer]]></category>
		<category><![CDATA[SUCCESS]]></category>
		<category><![CDATA[URL]]></category>

		<guid isPermaLink="false">http://www.istanto.net/?p=1646</guid>
		<description><![CDATA[In this short tutorial we will learn how to blocking bad referrer site using php script. This idea coming into my head after I&#8217;m sick looking at bad referrer site which take opportunity to earn money using my articles. Example: the baddest shortest URL adf.ly, this site shorten URL but it&#8217;s reported contain spyware and [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">In this short tutorial we will learn how to blocking bad referrer site using php script. This idea coming into <span style="text-decoration: underline;"><em>my head</em></span> after I&#8217;m sick looking at bad referrer site which take opportunity to earn money using my articles. Example: the baddest shortest URL adf.ly, this site shorten URL but it&#8217;s reported contain spyware and malware on ads from that page.</p>
<p style="text-align: justify;">This will lead our site in problem because people may think we&#8217;re spreading spyware/malware. Even if we claim we don&#8217;t created that link I believe 99% people wouldn&#8217;t trust us. The best thing to stop this <span style="text-decoration: line-through;"><em>madness</em></span> is blocking that referrer site to stop referring people into our page.</p>
<p style="text-align: justify;">This php script will using php referrer function to detected referrer site. In this short code sample we may will be needed more manual working. I believe someone can created better one or maybe a nice plugins? you&#8217;re <strong>ALLOWED</strong> to use this script code.</p>
<p style="text-align: justify;">Before I&#8217;m going to write the code I just want to tell everyone I already try to blocking bad referrer via .htacces file but it&#8217;s not working, I believe there something missing on there&#8230; So here is the sample code:</p>
<blockquote><p>&lt;?php<br />
if ($_SERVER['HTTP_REFERER']){<br />
if ($_SERVER['HTTP_REFERER'] == &#8216;BAD-SITE-URL-HERE&#8217;) {<br />
echo &#8220;REFERRER FROM BAD-SITE-URL HAS BEEN BLOCKED&#8221;;<br />
exit;<br />
}<br />
}<br />
?&gt;</p></blockquote>
<p style="text-align: justify;">The problem is when we&#8217;re trying to block another bad site we have to edit this code manually. I hope someone would try to make plugins using this code. At least this code works when I try to blocking some referrer from adf.ly it&#8217;s <strong>SUCCESS</strong>!</p>
<p style="text-align: justify;"><a href="http://www.istanto.net/wp-content/uploads/2011/01/ist-bloked-bad-referrer.jpg"><img class="aligncenter size-medium wp-image-1649" title="ist-bloked-bad-referrer" src="http://www.istanto.net/wp-content/uploads/2011/01/ist-bloked-bad-referrer-300x216.jpg" alt="" width="300" height="216" /></a></p>
<p style="text-align: justify;">For wordpress user where to put this code? Open your admin panel and edit your header.php file, put this code in the top of your header code. This sample script will checking, if referrer coming from badsite it will stop loading pages and giving warning message. When it coming directly of safe site like google, yahoo, bing, etc it will work as usual.</p>
<p style="text-align: justify;">That&#8217;s my share for today, happy weekend everyone, enjoy your day <img src='http://www.istanto.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.istanto.net/php-how-to-blocking-bad-referrer-site.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

