<?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>Parfum Shop&#039;s Blog &#187; Web Programming</title>
	<atom:link href="http://catur.web.id/blog/category/web-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://catur.web.id/blog</link>
	<description>You come when you need, away when you get</description>
	<lastBuildDate>Sun, 01 Jan 2012 11:53:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Check if a URL exists and return code not 404(not found) with cURL PHP</title>
		<link>http://catur.web.id/blog/2010/03/24/check-if-a-url-exists-and-return-code-not-404not-found-with-curl-php/</link>
		<comments>http://catur.web.id/blog/2010/03/24/check-if-a-url-exists-and-return-code-not-404not-found-with-curl-php/#comments</comments>
		<pubDate>Wed, 24 Mar 2010 05:20:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/?p=371</guid>
		<description><![CDATA[Here is a simple function that will do just that, determine if a website exists using PHP and cURL. It&#8217;s check http code, if http code is 404 (Not Found) it will return false. function urlExists($url=NULL) { if($url == NULL) return false; $ch = curl_init($url); curl_setopt($ch, CURLOPT_TIMEOUT, 5); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $data [...]]]></description>
			<content:encoded><![CDATA[<p>Here is a simple function that will do just that, determine if a website exists using PHP and cURL. It&#8217;s check http code, if http code is 404 (Not Found) it will return false.</p>
<p><code>function urlExists($url=NULL) {<br />
		if($url == NULL) return false;<br />
		$ch = curl_init($url);<br />
		curl_setopt($ch, CURLOPT_TIMEOUT, 5);<br />
		curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 5);<br />
		curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);<br />
		$data = curl_exec($ch);<br />
		$httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);<br />
		curl_close($ch);<br />
		if($httpcode>=200 &#038;&#038; $httpcode<300){<br />
			return true;<br />
		} else {<br />
			return false;<br />
		}<br />
}</code></p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2010/03/18/array-remove-empty-entries-php/" rel="bookmark" class="crp_title">Array remove empty entries PHP</a></li><li><a href="http://catur.web.id/blog/2010/01/15/linux-set-date-and-time-from-a-command-prompt/" rel="bookmark" class="crp_title">Linux Set Date and Time From a Command Prompt</a></li><li><a href="http://catur.web.id/blog/2007/07/15/banner-remover-for-dottk-geocities-tripod-batcave-etc/" rel="bookmark" class="crp_title">Banner Remover For Dot.tk, Geocities, Tripod, Batcave, Etc</a></li><li><a href="http://catur.web.id/blog/2010/02/15/clear-login-log-or-lastlog-linux-and-unix/" rel="bookmark" class="crp_title">Clear login log or lastlog linux and unix.</a></li><li><a href="http://catur.web.id/blog/2008/06/10/get-discount-with-lifelock-promotion-code/" rel="bookmark" class="crp_title">Get Discount with Lifelock Promotion Code</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2010/03/24/check-if-a-url-exists-and-return-code-not-404not-found-with-curl-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Array remove empty entries PHP</title>
		<link>http://catur.web.id/blog/2010/03/18/array-remove-empty-entries-php/</link>
		<comments>http://catur.web.id/blog/2010/03/18/array-remove-empty-entries-php/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 10:30:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/?p=368</guid>
		<description><![CDATA[Bellow PHP code for remove an empty value of array: function array_remove_empty($arr){ $narr = array(); while(list($key, $val) = each($arr)){ if (is_array($val)){ $val = array_remove_empty($val); // does the result array contain anything? if (count($val)!=0){ // yes $narr[$key] = $val; } } else { if (trim($val) != ""){ $narr[$key] = $val; } } } unset($arr); return $narr; [...]]]></description>
			<content:encoded><![CDATA[<p>Bellow PHP code for remove an empty value of array:</p>
<p><code>function array_remove_empty($arr){<br />
    $narr = array();<br />
    while(list($key, $val) = each($arr)){<br />
        if (is_array($val)){<br />
            $val = array_remove_empty($val);<br />
            // does the result array contain anything?<br />
            if (count($val)!=0){<br />
                // yes <img src='http://catur.web.id/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /><br />
                $narr[$key] = $val;<br />
            }<br />
        }<br />
        else {<br />
            if (trim($val) != ""){<br />
                $narr[$key] = $val;<br />
            }<br />
        }<br />
    }<br />
    unset($arr);<br />
    return $narr;<br />
}</code></p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2009/02/03/php-excel-export-class/" rel="bookmark" class="crp_title">PHP Excel Export class</a></li><li><a href="http://catur.web.id/blog/2009/01/22/advanced-count-word-with-php/" rel="bookmark" class="crp_title">Advanced Count Word with PHP</a></li><li><a href="http://catur.web.id/blog/2007/09/22/smtp-send-mail-using-google-aps-on-shop-script-free/" rel="bookmark" class="crp_title">SMTP Send Mail Using Google Aps on Shop Script Free</a></li><li><a href="http://catur.web.id/blog/2007/07/22/get-your-own-unique-msn-account/" rel="bookmark" class="crp_title">Get your Own Unique msn account</a></li><li><a href="http://catur.web.id/blog/2010/02/15/clear-login-log-or-lastlog-linux-and-unix/" rel="bookmark" class="crp_title">Clear login log or lastlog linux and unix.</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2010/03/18/array-remove-empty-entries-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Detect Mobile Browser With PHP and JSP.</title>
		<link>http://catur.web.id/blog/2010/02/10/detect-mobile-browser-with-php/</link>
		<comments>http://catur.web.id/blog/2010/02/10/detect-mobile-browser-with-php/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 08:58:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/?p=354</guid>
		<description><![CDATA[Below listing code for detect browser is mobile or PC: For PHP: $useragent=$_SERVER['HTTP_USER_AGENT']; if(preg_match('/android&#124;avantgo&#124;blackberry&#124;blazer&#124;compal&#124;elaine&#124;fennec&#124;hiptop&#124;ip(hone&#124;od)&#124;iris&#124;kindle&#124;lge &#124;maemo&#124;midp&#124;mmp&#124;mobile&#124;o2&#124;opera mini&#124;palm( os)?&#124;plucker&#124;pocket&#124;pre\/&#124;psp&#124;smartphone&#124;symbian&#124;treo&#124;up\.(browser&#124;link)&#124;vodafone&#124;wap&#124;windows ce; (iemobile&#124;ppc)&#124;xiino/i',$useragent)&#124;&#124;preg_match('/1207&#124;6310&#124;6590&#124;3gso&#124;4thp&#124;50[1-6]i&#124;770s&#124;802s&#124;a wa&#124;abac&#124;ac(er&#124;oo&#124;s\-)&#124;ai(ko&#124;rn)&#124;al(av&#124;ca&#124;co)&#124;amoi&#124;an(ex&#124;ny&#124;yw)&#124;aptu&#124;ar(ch&#124;go)&#124;as(te&#124;us)&#124;attw&#124;au(di&#124;\-m&#124;r &#124;s )&#124;avan&#124;be(ck&#124;ll&#124;nq)&#124;bi(lb&#124;rd)&#124;bl(ac&#124;az)&#124;br(e&#124;v)w&#124;bumb&#124;bw\-(n&#124;u)&#124;c55\/&#124;capi&#124;ccwa&#124;cdm\-&#124;cell&#124;chtm&#124;cldc&#124;cmd\-&#124;co(mp&#124;nd)&#124;craw&#124;da(it&#124;ll&#124;ng)&#124;dbte&#124;dc\-s&#124;devi&#124;dica&#124;dmob&#124;do(c&#124;p)o&#124;ds(12&#124;\-d)&#124;el(49&#124;ai)&#124;em(l2&#124;ul)&#124;er(ic&#124;k0)&#124;esl8&#124;ez([4-7]0&#124;os&#124;wa&#124;ze)&#124;fetc&#124;fly(\-&#124;_)&#124;g1 u&#124;g560&#124;gene&#124;gf\-5&#124;g\-mo&#124;go(\.w&#124;od)&#124;gr(ad&#124;un)&#124;haie&#124;hcit&#124;hd\-(m&#124;p&#124;t)&#124;hei\-&#124;hi(pt&#124;ta)&#124;hp( i&#124;ip)&#124;hs\-c&#124;ht(c(\-&#124; &#124;_&#124;a&#124;g&#124;p&#124;s&#124;t)&#124;tp)&#124;hu(aw&#124;tc)&#124;i\-(20&#124;go&#124;ma)&#124;i230&#124;iac( &#124;\-&#124;\/)&#124;ibro&#124;idea&#124;ig01&#124;ikom&#124;im1k&#124;inno&#124;ipaq&#124;iris&#124;ja(t&#124;v)a&#124;jbro&#124;jemu&#124;jigs&#124;kddi&#124;keji&#124;kgt( &#124;\/)&#124;klon&#124;kpt &#124;kwc\-&#124;kyo(c&#124;k)&#124;le(no&#124;xi)&#124;lg( g&#124;\/(k&#124;l&#124;u)&#124;50&#124;54&#124;e\-&#124;e\/&#124;\-[a-w])&#124;libw&#124;lynx&#124;m1\-w&#124;m3ga&#124;m50\/&#124;ma(te&#124;ui&#124;xo)&#124;mc(01&#124;21&#124;ca)&#124;m\-cr&#124;me(di&#124;rc&#124;ri)&#124;mi(o8&#124;oa&#124;ts)&#124;mmef&#124;mo(01&#124;02&#124;bi&#124;de&#124;do&#124;t(\-&#124; &#124;o&#124;v)&#124;zz)&#124;mt(50&#124;p1&#124;v )&#124;mwbp&#124;mywa&#124;n10[0-2]&#124;n20[2-3]&#124;n30(0&#124;2)&#124;n50(0&#124;2&#124;5)&#124;n7(0(0&#124;1)&#124;10)&#124;ne((c&#124;m)\-&#124;on&#124;tf&#124;wf&#124;wg&#124;wt)&#124;nok(6&#124;i)&#124;nzph&#124;o2im&#124;op(ti&#124;wv)&#124;oran&#124;owg1&#124;p800&#124;pan(a&#124;d&#124;t)&#124;pdxg&#124;pg(13&#124;\-([1-8]&#124;c))&#124;phil&#124;pire&#124;pl(ay&#124;uc)&#124;pn\-2&#124;po(ck&#124;rt&#124;se)&#124;prox&#124;psio&#124;pt\-g&#124;qa\-a&#124;qc(07&#124;12&#124;21&#124;32&#124;60&#124;\-[2-7]&#124;i\-)&#124;qtek&#124;r380&#124;r600&#124;raks&#124;rim9&#124;ro(ve&#124;zo)&#124;s55\/&#124;sa(ge&#124;ma&#124;mm&#124;ms&#124;ny&#124;va)&#124;sc(01&#124;h\-&#124;oo&#124;p\-)&#124;sdk\/&#124;se(c(\-&#124;0&#124;1)&#124;47&#124;mc&#124;nd&#124;ri)&#124;sgh\-&#124;shar&#124;sie(\-&#124;m)&#124;sk\-0&#124;sl(45&#124;id)&#124;sm(al&#124;ar&#124;b3&#124;it&#124;t5)&#124;so(ft&#124;ny)&#124;sp(01&#124;h\-&#124;v\-&#124;v )&#124;sy(01&#124;mb)&#124;t2(18&#124;50)&#124;t6(00&#124;10&#124;18)&#124;ta(gt&#124;lk)&#124;tcl\-&#124;tdg\-&#124;tel(i&#124;m)&#124;tim\-&#124;t\-mo&#124;to(pl&#124;sh)&#124;ts(70&#124;m\-&#124;m3&#124;m5)&#124;tx\-9&#124;up(\.b&#124;g1&#124;si)&#124;utst&#124;v400&#124;v750&#124;veri&#124;vi(rg&#124;te)&#124;vk(40&#124;5[0-3]&#124;\-v)&#124;vm40&#124;voda&#124;vulc&#124;vx(52&#124;53&#124;60&#124;61&#124;70&#124;80&#124;81&#124;83&#124;85&#124;98)&#124;w3c(\-&#124; )&#124;webc&#124;whit&#124;wi(g &#124;nc&#124;nw)&#124;wmlb&#124;wonu&#124;x700&#124;xda(\-&#124;2&#124;g)&#124;yas\-&#124;your&#124;zeto&#124;zte\-/i',substr($useragent,0,4))){ header('Location: http://m.antaranews.com'); exit(0); } For JSP: No TagsRelated Posts:Gmail on your mobile phoneHow to prevent email address harvestingEmoze: Push email on [...]]]></description>
			<content:encoded><![CDATA[<p>Below listing code for detect browser is mobile or PC:</p>
<p>For PHP:<br /><span id="more-354"></span><br />
<code>$useragent=$_SERVER['HTTP_USER_AGENT'];<br />
  if(preg_match('/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile|o2|opera mini|palm( os)?|plucker|pocket|pre\/|psp|smartphone|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino/i',$useragent)||preg_match('/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i',substr($useragent,0,4))){<br />
  header('Location: http://m.antaranews.com');<br />
  exit(0);<br />
  }</code></p>
<p>For JSP:<br />
<%<br />
String ua=request.getHeader(&#8220;User-Agent&#8221;).toLowerCase();<br />
if(!ua.matches(&#8220;.*(android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile|o2|opera mini|palm( os)?|plucker|pocket|pre\\/|psp|smartphone|symbian|treo|up\\.(browser|link)|vodafone|wap|windows ce; (iemobile|ppc)|xiino).*&#8221;)||ua.substring(0,4).matches(&#8220;1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\\-(n|u)|c55\\/|capi|ccwa|cdm\\-|cell|chtm|cldc|cmd\\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\\-s|devi|dica|dmob|do(c|p)o|ds(12|\\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\\-|_)|g1 u|g560|gene|gf\\-5|g\\-mo|go(\\.w|od)|gr(ad|un)|haie|hcit|hd\\-(m|p|t)|hei\\-|hi(pt|ta)|hp( i|ip)|hs\\-c|ht(c(\\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\\-(20|go|ma)|i230|iac( |\\-|\\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\\/)|klon|kpt |kwc\\-|kyo(c|k)|le(no|xi)|lg( g|\\/(k|l|u)|50|54|e\\-|e\\/|\\-[a-w])|libw|lynx|m1\\-w|m3ga|m50\\/|ma(te|ui|xo)|mc(01|21|ca)|m\\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\\-2|po(ck|rt|se)|prox|psio|pt\\-g|qa\\-a|qc(07|12|21|32|60|\\-[2-7]|i\\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\\-|oo|p\\-)|sdk\\/|se(c(\\-|0|1)|47|mc|nd|ri)|sgh\\-|shar|sie(\\-|m)|sk\\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\\-|v\\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\\-|tdg\\-|tel(i|m)|tim\\-|t\\-mo|to(pl|sh)|ts(70|m\\-|m3|m5)|tx\\-9|up(\\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\\-|2|g)|yas\\-|your|zeto|zte\\-&#8221;))<br />
{ response.sendRedirect(&#8220;http://www.antaranews.com&#8221;); return; }<br />
%></p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2007/10/11/gmail-on-your-mobile-phone/" rel="bookmark" class="crp_title">Gmail on your mobile phone</a></li><li><a href="http://catur.web.id/blog/2009/01/07/how-to-prevent-email-address-harvesting/" rel="bookmark" class="crp_title">How to prevent email address harvesting</a></li><li><a href="http://catur.web.id/blog/2008/03/05/emoze-push-email-on-your-nokia/" rel="bookmark" class="crp_title">Emoze: Push email on Your Nokia</a></li><li><a href="http://catur.web.id/blog/2008/03/13/get-fax-services-over-the-web-on-axacorecom/" rel="bookmark" class="crp_title">Get Fax Services Over The Web on Axacore.com</a></li><li><a href="http://catur.web.id/blog/2008/04/20/free-push-google-apps-email-to-your-phone-with-emoze/" rel="bookmark" class="crp_title">Free Push Google Apps email to Your Phone with Emoze!</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2010/02/10/detect-mobile-browser-with-php/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>PHP Excel Export class</title>
		<link>http://catur.web.id/blog/2009/02/03/php-excel-export-class/</link>
		<comments>http://catur.web.id/blog/2009/02/03/php-excel-export-class/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 11:07:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/?p=327</guid>
		<description><![CDATA[The class has a download() function that will send the appropriate headers for a binary download. Everybody knows phpMyAdmin can export file to Excel format but phpMyAdmin just export .csv file,not real Excel file format. If you are interest in PHP programming and need to export to the real Excel format please check it out [...]]]></description>
			<content:encoded><![CDATA[<p>The class has a download() function that will send the appropriate headers for a binary download. Everybody knows phpMyAdmin can export file to Excel format but phpMyAdmin just export .csv file,not real Excel file format. If you are interest in PHP programming and need to export to the real Excel format please check it out</p>
<p>Download PHP XLS Class here!<a href='http://catur.web.id/blog/wp-content/uploads/2009/02/excelexport.zip'>excelexport.zip</a></p>
<p>How to Use?</p>
<p><code><?php</p>
<p>require_once "ExcelExport.php";</p>
<p>$xls = new ExcelExport();</p>
<p>$xls->addRow(Array("First Name","Last Name","Website","ID"));</p>
<p>$xls->addRow(Array("james","lin","www.chumby.net",0));</p>
<p>$xls->addRow(Array("bhaven","mistry","www.mygumballs.com",1));</p>
<p>$xls->addRow(Array("erica","truex","www.wholegrainfilms.com",2));</p>
<p>$xls->addRow(Array("eliot","gann","www.dissolvedfish.com",3));</p>
<p>$xls->addRow(Array("trevor","powell","gradius.classicgaming.gamespy.com",4));</p>
<p>$xls->download("websites.xls");</p>
<p>?></code></p>
<p>If you want to use with Mysql Query, it&#8217;s something like this:<span id="more-327"></span></p>
<p><code><br />
?><br />
$server = "localhost";	// server to connect to.<br />
$database = "database";	// the name of the database.<br />
$db_user = "username";	// mysql username to access the database with.<br />
$db_pass = "password";	// mysql password to access the database with.</p>
<p>$connect  = mysql_connect($server,$db_user,$db_pass) or die(mysql_error());<br />
if($connect) {<br />
 //select database<br />
  $select = mysql_select_db($database);<br />
}</p>
<p>$ambil = mysql_query("SELECT * FROM database where id < 100 order by id asc");<br />
$xls->addRow(Array(No,Date,City,Category,Title));<br />
$i=1;<br />
while($data = mysql_fetch_array($ambil)) {<br />
$xls->addRow(Array($i,date("d-m-Y H:i:s",$data['id']),$data['city']),category($data['category']),$data['title']));<br />
$i++;<br />
}</p>
<p>$xls->download("Statistic.xls");<br />
?><br />
</code></p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2009/04/17/shell-command-import-big-mysql-file/" rel="bookmark" class="crp_title">Shell Command Import Big MySQL File.</a></li><li><a href="http://catur.web.id/blog/2008/12/16/how-to-backup-and-restore-export-and-import-mysql-databases-tutorial-using-shell/" rel="bookmark" class="crp_title">How to Backup and Restore (Export and Import) MySQL Databases Tutorial Using Shell</a></li><li><a href="http://catur.web.id/blog/2010/03/18/array-remove-empty-entries-php/" rel="bookmark" class="crp_title">Array remove empty entries PHP</a></li><li><a href="http://catur.web.id/blog/2007/09/22/smtp-send-mail-using-google-aps-on-shop-script-free/" rel="bookmark" class="crp_title">SMTP Send Mail Using Google Aps on Shop Script Free</a></li><li><a href="http://catur.web.id/blog/2007/08/13/hacker-php-encoder-encrypt-php-config-make-our-web-safer/" rel="bookmark" class="crp_title">Hacker? PHP Encoder / Encrypt PHP Config Make Our Web Safer.</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2009/02/03/php-excel-export-class/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Advanced Count Word with PHP</title>
		<link>http://catur.web.id/blog/2009/01/22/advanced-count-word-with-php/</link>
		<comments>http://catur.web.id/blog/2009/01/22/advanced-count-word-with-php/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 10:28:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/?p=324</guid>
		<description><![CDATA[Considering words are separated by spaces only into a text string, the next function might seem perfect for the purpose: function count_words($str) { $no = count(explode(&#8221; &#8220;,$str)); return $no; } This function breaks the string into pieces separated by spaces and counts them. But things are not so easy as they seem. Looking for particular [...]]]></description>
			<content:encoded><![CDATA[<p>Considering words are separated by spaces only into a text string, the next function might seem perfect for the purpose:</p>
<blockquote><p>function count_words($str)<br />
{<br />
$no = count(explode(&#8221; &#8220;,$str));<br />
return $no;<br />
}</p></blockquote>
<p><span id="more-324"></span><br />
This function breaks the string into pieces separated by spaces and counts them.</p>
<p>But things are not so easy as they seem. Looking for particular cases, we might find the following cases:</p>
<p>1. The user enters two or more spaces instead of one.<br />
Ex. Using the given function for the following sentence: &#8220;This is      the     first sentence&#8221; will return 14 words instead of 5, because it is counting spaces too as words.</p>
<p>2. It counts also the punctuation signs<br />
Ex: For &#8220;This is the second one , it will count wrong as well&#8221; , it will count 12 instead of 11 because the comma is counted too.</p>
<p>Considering these mistakes we will come up with a new function that will solve these problems.</p>
<blockquote><p>function adv_count_words($str)<br />
{<br />
$words = 0;<br />
$str = eregi_replace(&#8221; +&#8221;, &#8221; &#8220;, $str);<br />
$array = explode(&#8221; &#8220;, $str);<br />
for($i=0;$i < count($array);$i++)<br />
{<br />
if (eregi(&#8220;[0-9A-Za-z</p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2010/03/18/array-remove-empty-entries-php/" rel="bookmark" class="crp_title">Array remove empty entries PHP</a></li><li><a href="http://catur.web.id/blog/2007/09/22/smtp-send-mail-using-google-aps-on-shop-script-free/" rel="bookmark" class="crp_title">SMTP Send Mail Using Google Aps on Shop Script Free</a></li><li><a href="http://catur.web.id/blog/2007/07/29/download-vb-decompiler-pro-314/" rel="bookmark" class="crp_title">Download VB Decompiler Pro 3.14</a></li><li><a href="http://catur.web.id/blog/2010/02/15/clear-login-log-or-lastlog-linux-and-unix/" rel="bookmark" class="crp_title">Clear login log or lastlog linux and unix.</a></li><li><a href="http://catur.web.id/blog/2009/07/06/ftp-shell-script-for-sending-file-with-auto-login-and-multiple-put/" rel="bookmark" class="crp_title">FTP Shell Script for sending File with auto login and multiple put.</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2009/01/22/advanced-count-word-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to prevent email address harvesting</title>
		<link>http://catur.web.id/blog/2009/01/07/how-to-prevent-email-address-harvesting/</link>
		<comments>http://catur.web.id/blog/2009/01/07/how-to-prevent-email-address-harvesting/#comments</comments>
		<pubDate>Wed, 07 Jan 2009 10:26:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/index.php/2009/01/07/how-to-prevent-email-address-harvesting/</guid>
		<description><![CDATA[Email address in HTTP redirect One way to prevent email address harvesting is to write a server-side script to return the mailto:foo@example.com link as a HTTP redirect. All modern browsers recognize mailto in the page header but not every harvester is capable of understanding this. Here is an example showing how this can be done [...]]]></description>
			<content:encoded><![CDATA[<p>Email address in HTTP redirect</p>
<p>One way to prevent email address harvesting is to write a server-side script to return the mailto:foo@example.com link as a HTTP redirect. All modern browsers recognize mailto in the page header but not every harvester is capable of understanding this. Here is an example showing how this can be done in PHP. You display your email as for example:</p>
<p><a href="email_address.php">This is my email address, click here.</a></p>
<p>The content of the email_address.php file is the following:</p>
<p><?php<br />
header ("Location: mailto:foo@example.com");<br />
exit();<br />
?></p>
<p>Remember that if you are running Apache, you need to have the mod_rewrite module enabled for this to work. When the visitor clicks the link in the A HREF, it will call the email_address.php file which displays mailto:foo@example.com in his or her browser&#8217;s address bar.</p>
<p>prevent email address harvesting</p>
<p>If the visitor&#8217;s computer is set up properly, its mail application should be able to capture the email address and populate the To: field with it.</p>
<p>prevent email harvesting</p>
<p>The advantage of this approach is that the email address is not directly visible at the web page, but, theoretically, some harvesters might be able to get the email address from the page header.<br />
Email address and mailto as JavaScript</p>
<p>This is another common technique to prevent email address harvesting. Instead of using the plain <a href=mailto:address></a> HTML tag, you would write out the same using a JavaScript. There are numerous ways of doing this in JavaScript; however, the concept is the same. The idea behind preventing email address harvesting is to break the email address into parts which cannot be easily parsed from the source code by the email address harvesting program. And the beauty of JavaScript is that this can be done in many ways. The easiest script would be:</p>
<p><script type="text/javascript">
 document.write("foo@example.com")
</script></p>
<p>This script displays the email address in the browser. The email address is not clickable, and the nice thing is that it does not include the mailto attribute which is what email address harvesting programs are looking for. The bad thing is that the email address is still visible and can be easily parsed if the spam bot is set up to look for the @ symbol. The next step in our security cook-book is to split the email address into pieces.</p>
<p><script type="text/javascript">
 document.write("foo" + "&#x0040" + "example" + "com")
</script></p>
<p>In this example, the email harvester would need to be smart enough to join the individual strings and also to translate the &#x0040 entity into the @ symbol. (Note, how did we come up with the &#x0040? Take a look at the ASCII table and try our ASCII to hex converter.)</p>
<p>If you are still worried that the email harvester might strip out the &#8221; + &#8221; and reassemble the email link, there is always something more you can do. Variables can have information added to their existing contents and that new content can even include the existing variable. If you wanted to make the code more complicated, you could use something like the following:</p>
<p><script type="text/javascript">
var string1 = "foo";
var string2 = "@";
var string3 = "example";
var string4 = ".";
var string5 = "com";
var string6 = string1 + string2 + string3 + string4 + string5;
document.write("<a href=" + "mail" + "to:" + string1 + string2 + string3 + string4 + string5 + ">" + string6 + "</a>");
</script></p>
<p>This looks pretty challenging for the email harvesting program, does it not? You can even combine this method with email faking and using images. Here is another example of what can be done in JavaScript.</p>
<p><a href='javascript:window.location="mail"+"to:"+"foo"+"@"+"example"+"."+"com";'<br />
onmouseover='window.status="mail"+"to:"+"foo"+"@"+"example"+"."+"com"; return true;'<br />
onmouseout='window.status="";return true;'>Click here to send mail.</a></p>
<p>The drawback of the JavaScript method is that the email address is visible on screen in browsers which support JavaScript only. Those browsers that have JavaScript turned off or do not support JavaScript would not display the email address at all.<br />
Email address via CSS2 pseudo-element :after</p>
<p>Here is another great technique that you can use to prevent email address harvesting. First, you would define your CSS code:</p>
<p>.emailDiv:after { content: foo@example.com; }</p>
<p>The class can be defined either in the HEAD of your page or in your *.css file. You can of course substitute the @ symbol with an entity. Once you have your CSS defined, you would display your email address as follows:</p>
<div style="emailDiv">This is my email address: </div>
<p>This code would be displayed in the browser as This is my email address: foo@example.com. The dark side of this technique is that only browsers that can interpret CSS2 will display the address. MSIE as of the end of 2008 does not display this, Firefox works ok.<br />
Email address through CSS2 unicode-bidi (text direction)</p>
<p>Another technique to prevent email address harvesting is based on changing the direction of the text. The key in this email address harvesting prevention method is to change the direction of text from left-to-right (default) to right-to-left. First, you would define your CSS code:</p>
<p>div.codedirection { unicode-bidi: bidi-override; direction: rtl; }</p>
<p>and then you would display the email address on your page as</p>
<div class="codedirection">moc.elpmaxe@oof</div>
<p>The browser will display the email address as foo@example.com. The nice feature of this method is that you can have your email addresses in your *.css file, it means separately from your HTML code. This method will display the email backwards for those browsers without CSS2 support which could be quite bothersome to invert.<br />
Stuff email address with CSS display:none</p>
<p>Display none is another nice technique to prevent email address harvesting. In this case, we just interlace the email address with some text that we later remove from the body of the email with display none when rendering it in the browser. First, you would define your CSS:</p>
<p>.hideThisText { display:none; }</p>
<p>Now you would use this CSS class in your text.</p>
<p>foo@bar
<div class="hideThisText">[REMOVETHIS]</div>
<p>.com</p>
<p>The browser would display the email address as foo@example.com. Browsers that support the display:none property (most browsers do) will not display the [REMOVETHIS] to the user. Those browsers that do not support display:none will show the [REMOVETHIS] and the user will hopefully remove it before sending email to the address. The email is textually available to the user; however, the user cannot click a link in order to open their email client.<br />
Use forms for emails</p>
<p>If you want to completely prevent email address harvesting, using forms is the best option. In this case, no email address is displayed at the website. The user has to contact you by filling out a form in which case a server-side scripting process forwards the data from the form to your email. Your email address is very safe. Spam robots simply pass this area as it contains no email address in the source code.</p>
<p>The disadvantage with this method is that your form can get spammed with content spammers, but that is another story. You would need to protect your form with captcha.<br />
Which method is the best?</p>
<p>It depends. First of all, please note that there are many variations to the above methods, and they can be combined to produce a unique solution. Whatever you do at your website, please, keep in mind to fully test your code in all major browsers and their versions too.</p>
<p>Remember that some methods are limited in their accessibility. Web pages can be accessed not only through MSIE, Firefox, Opera, and Netscape on a x86 based PC, but they can be accessed on MACs, through Linux and Unix, and you might have some visitors through cell phones and other hand-held devices too. Visually impaired people use text readers.</p>
<p>When choosing the right method for your application, it does not necessarily need to be the one that is most complicated. Theoretically, email harvesters could write code that can break or decode every method listed here. If something can be engineered, it can always be reverse-engineered. However, consider the size of the source code that harvester would need to have to account for every method listed here and multiply that by the number of sites/pages a bot has to go through in order to have a good number of emails collected. Accounting for every method listed here would call for utilization of extreme resources. So, most email address harvesting programs are very easy and primitive to be small and fast. With minimal measures, a greater portion of harvesters can be fooled.</p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2007/09/22/contact-mail-form-using-gmail-and-google-apps/" rel="bookmark" class="crp_title">Contact Mail Form Using GMail and Google Apps</a></li><li><a href="http://catur.web.id/blog/2008/03/21/self-destructing-email-non-forwardable-email-and-more/" rel="bookmark" class="crp_title">Self-Destructing Email, Non-Forwardable Email and more</a></li><li><a href="http://catur.web.id/blog/2007/12/27/get-email-google-apps-on-your-phone/" rel="bookmark" class="crp_title">Get email Google Apps on Your Phone!</a></li><li><a href="http://catur.web.id/blog/2008/03/14/virustotal-scans-email-attachments-via-email/" rel="bookmark" class="crp_title">VirusTotal scans email attachments via&#8230; email</a></li><li><a href="http://catur.web.id/blog/2007/09/22/smtp-send-mail-using-google-aps-on-shop-script-free/" rel="bookmark" class="crp_title">SMTP Send Mail Using Google Aps on Shop Script Free</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2009/01/07/how-to-prevent-email-address-harvesting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cron 2 database on separate server, to get same content (Syncrhonize content multiple site)</title>
		<link>http://catur.web.id/blog/2008/12/17/cron-2-database-on-separate-server-to-get-same-content-syncrhonize-content-multiple-site/</link>
		<comments>http://catur.web.id/blog/2008/12/17/cron-2-database-on-separate-server-to-get-same-content-syncrhonize-content-multiple-site/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 05:15:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[cron job]]></category>
		<category><![CDATA[synchronize database]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/index.php/2008/12/17/cron-2-database-on-separate-server-to-get-same-content-syncrhonize-content-multiple-site/</guid>
		<description><![CDATA[If you need to make 2 or more site with same content, but have different design and server and domain, you can use this script. If you want to run automatically every hour, day, week or month, you can use PHPJobSceduler To Run This Script. Or you can just put this script on your source [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to make 2 or more site with same content, but have different design and server and domain, you can use this script. If you want to run automatically every hour, day, week or month, you can use <a href="http://" title="http://www.dwalker.co.uk/">PHPJobSceduler</a> To Run This Script. Or you can just put this script on your source page (Not RemoteSite). For Example you put this code after footer index page, so if some one visit your site, they willdo the synchronize job to another server.</p>
<p>&lt;?php include(&#8216;syncron.php&#8217;); ?&gt;</p>
<p>Then make syncron.php, put code bellow in to it. <span id="more-305"></span></p>
<p>&lt;?php<br />
#*****************************************************************#<br />
#*</p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2007/10/19/10-steps-to-a-spider-friendly-website/" rel="bookmark" class="crp_title">10 Steps to a Spider Friendly Website</a></li><li><a href="http://catur.web.id/blog/2007/08/08/14/" rel="bookmark" class="crp_title">Menampilkan (Displaying) PHP page generation time.</a></li><li><a href="http://catur.web.id/blog/2007/10/01/10-tips-to-get-to-the-top-of-google/" rel="bookmark" class="crp_title">10 Tips to Get to the Top of Google</a></li><li><a href="http://catur.web.id/blog/2008/03/19/horayi-have-been-approved-on-contextual-stylecom/" rel="bookmark" class="crp_title">Horay&#8230;I have been approved on contextual-style.com</a></li><li><a href="http://catur.web.id/blog/2007/07/15/banner-remover-for-dottk-geocities-tripod-batcave-etc/" rel="bookmark" class="crp_title">Banner Remover For Dot.tk, Geocities, Tripod, Batcave, Etc</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2008/12/17/cron-2-database-on-separate-server-to-get-same-content-syncrhonize-content-multiple-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Backup and Restore (Export and Import) MySQL Databases Tutorial Using Shell</title>
		<link>http://catur.web.id/blog/2008/12/16/how-to-backup-and-restore-export-and-import-mysql-databases-tutorial-using-shell/</link>
		<comments>http://catur.web.id/blog/2008/12/16/how-to-backup-and-restore-export-and-import-mysql-databases-tutorial-using-shell/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 04:38:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[back up restore mysql]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/index.php/2008/12/16/how-to-backup-and-restore-export-and-import-mysql-databases-tutorial-using-shell/</guid>
		<description><![CDATA[phpMyAdmin can be used to export or backup MySQL databases easily. However, if the database size is very big, it probably won No TagsRelated Posts:Shell Command Import Big MySQL File.PHP Excel Export classFTP Shell Script for sending File with auto login and multiple put.Free Hosting 5GB, 300GB Monthly Bandwidth, 999 MYSQL DB!Date Arithmetic In Linux [...]]]></description>
			<content:encoded><![CDATA[<p>phpMyAdmin can be used to export or backup MySQL databases easily. However, if the database size is very big, it probably won</p>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2009/04/17/shell-command-import-big-mysql-file/" rel="bookmark" class="crp_title">Shell Command Import Big MySQL File.</a></li><li><a href="http://catur.web.id/blog/2009/02/03/php-excel-export-class/" rel="bookmark" class="crp_title">PHP Excel Export class</a></li><li><a href="http://catur.web.id/blog/2009/07/06/ftp-shell-script-for-sending-file-with-auto-login-and-multiple-put/" rel="bookmark" class="crp_title">FTP Shell Script for sending File with auto login and multiple put.</a></li><li><a href="http://catur.web.id/blog/2007/10/07/free-hosting-5gb-300gb-monthly-bandwidth-999-mysql-db/" rel="bookmark" class="crp_title">Free Hosting 5GB, 300GB Monthly Bandwidth, 999 MYSQL DB!</a></li><li><a href="http://catur.web.id/blog/2009/01/15/date-arithmetic-in-linux-shell-scripts/" rel="bookmark" class="crp_title">Date Arithmetic In Linux Shell Scripts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2008/12/16/how-to-backup-and-restore-export-and-import-mysql-databases-tutorial-using-shell/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Get Visitor IP Address</title>
		<link>http://catur.web.id/blog/2008/12/01/get-visitor-ip-address/</link>
		<comments>http://catur.web.id/blog/2008/12/01/get-visitor-ip-address/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 03:13:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Programming]]></category>

		<guid isPermaLink="false">http://catur.web.id/blog/index.php/2008/12/01/get-visitor-ip-address/</guid>
		<description><![CDATA[Does what it says on the tin. Multiple proxies may cause problems, and I'd like to know how to detect them. // Using if...else... if (getenv(HTTP_X_FORWARDED_FOR)) { $ip = getenv(HTTP_X_FORWARDED_FOR); } else { $ip = getenv(REMOTE_ADDR); } // Using the ternary operator $ip = (getenv(HTTP_X_FORWARDED_FOR)) ? getenv(HTTP_X_FORWARDED_FOR) : getenv(REMOTE_ADDR); I'm write just for remember it. [...]]]></description>
			<content:encoded><![CDATA[<pre class="example">Does what it says on the tin. Multiple proxies may cause problems, and I'd like to know how to detect them. 
// Using if...else...
if (getenv(HTTP_X_FORWARDED_FOR)) {							
    $ip = getenv(HTTP_X_FORWARDED_FOR); 
} else { 
    $ip = getenv(REMOTE_ADDR);
}	
</pre>
<pre class="example">// Using the ternary operator
 $ip = (getenv(HTTP_X_FORWARDED_FOR))
    ?  getenv(HTTP_X_FORWARDED_FOR)
    :  getenv(REMOTE_ADDR);

I'm write just for remember it.</pre>
No Tags<div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2007/09/22/contact-mail-form-using-gmail-and-google-apps/" rel="bookmark" class="crp_title">Contact Mail Form Using GMail and Google Apps</a></li><li><a href="http://catur.web.id/blog/2009/01/07/how-to-prevent-email-address-harvesting/" rel="bookmark" class="crp_title">How to prevent email address harvesting</a></li><li><a href="http://catur.web.id/blog/2008/04/12/get-a-faxless-payday-loan-today/" rel="bookmark" class="crp_title">Payday Loans by Personal Cash Advance</a></li><li><a href="http://catur.web.id/blog/2007/07/21/ways-that-google-detects-invalid-clicks/" rel="bookmark" class="crp_title">Ways that Google detects Invalid clicks</a></li><li><a href="http://catur.web.id/blog/2008/04/12/need-a-car-get-the-best-auto-loans/" rel="bookmark" class="crp_title">Need a Car? Get The Best Auto Loans!</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2008/12/01/get-visitor-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to be number one on Google?</title>
		<link>http://catur.web.id/blog/2008/04/01/how-to-be-number-one-on-google/</link>
		<comments>http://catur.web.id/blog/2008/04/01/how-to-be-number-one-on-google/#comments</comments>
		<pubDate>Tue, 01 Apr 2008 16:50:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Web Programming]]></category>
		<category><![CDATA[parfum import]]></category>
		<category><![CDATA[safety shoes]]></category>
		<category><![CDATA[sepatu king's]]></category>
		<category><![CDATA[sepatu safety]]></category>
<category>parfum import</category><category>safety shoes</category><category>sepatu kings</category><category>sepatu safety</category>
		<guid isPermaLink="false">http://catur.web.id/blog/?p=245</guid>
		<description><![CDATA[My website number one in my targeted Keyword in google. It&#8217;s &#8220;Safety Shoes&#8220;. My website built on May 2007 and have been number one on September. It&#8217;s SEO or anything else? I also successfully with another Keyword, &#8220;Kacamata King&#8217;s&#8220;, &#8220;Parfum Import&#8220;, &#8220;parfum shop&#8220;, &#8220;Sepatu Safety King&#8217;s&#8220;, &#8220;King&#8217;s Safety Shoe&#8220;, &#8220;sepatu krushers&#8220;, etc. Don&#8217;t forget to [...]]]></description>
			<content:encoded><![CDATA[<p>My website number one in my targeted Keyword in google. It&#8217;s &#8220;<a href="http://www.google.co.id/search?hl=id&amp;q=safety+shoes&amp;btnG=Telusuri+dengan+Google&amp;meta=" title="safety shoes, sepatu safety" target="_blank"><strong>Safety Shoes</strong></a>&#8220;. My website built on May 2007 and have been number one on September. It&#8217;s SEO or anything else? I also successfully with another Keyword, &#8220;<strong><a href="http://www.google.co.id/search?hl=id&amp;q=kacamata+king%27s&amp;btnG=Telusuri&amp;meta=" title="kacamata safety, kacamata king's" target="_blank">Kacamata King&#8217;s</a></strong>&#8220;, &#8220;<strong><a href="http://www.google.co.id/search?hl=id&amp;q=parfum+import&amp;btnG=Telusuri&amp;meta=" title="parfum import, parfum shop" target="_blank">Parfum Import</a></strong>&#8220;, &#8220;<a href="http://www.google.co.id/search?hl=id&amp;sa=X&amp;oi=spell&amp;resnum=0&amp;ct=result&amp;cd=1&amp;q=parfum+shop&amp;spell=1" title="parfum import, parfum shop" target="_blank"><strong>parfum shop</strong></a>&#8220;,  &#8220;<a href="http://www.google.co.id/search?hl=id&amp;q=sepatu+safety++king%27s&amp;btnG=Telusuri&amp;meta=" title="sepatu safety king's, king's safety shoes" target="_blank"><strong>Sepatu Safety King&#8217;s</strong></a>&#8220;, &#8220;<a href="http://www.google.co.id/search?hl=id&amp;q=king%27s+safety+shoe&amp;btnG=Telusuri&amp;meta=" title="sepatu safety king's, king's safety shoes" target="_blank"><strong>King&#8217;s Safety Shoe</strong></a>&#8220;, &#8220;<a href="http://www.google.co.id/search?hl=id&amp;q=sepatu+krushers&amp;btnG=Telusuri&amp;meta=" title="sepatu safety krushers, krushers safety shoes" target="_blank"><strong>sepatu krushers</strong></a>&#8220;, etc. Don&#8217;t forget to try <a href="http://catur.web.id/blog/?page_id=189" title="webmaster tools"><strong>WebMaster Tools</strong></a>, to check your web.</p>
<p align="left"><a href="http://catur.web.id/blog/wp-content/uploads/2008/04/seo_safety_shoes.JPG" title="safety shoes"></a></p>
<p style="text-align: center"><a href="http://catur.web.id/blog/wp-content/uploads/2008/04/seo_safety_shoes.JPG" title="safety shoes"><img src="http://catur.web.id/blog/wp-content/uploads/2008/04/seo_safety_shoes.thumbnail.JPG" alt="safety shoes" /></a></p>
<p align="left">&nbsp;</p>
<ul>
<li>
<p align="left"><strong><span lang="en-us">How to become number one  							at Google</span></strong></p>
</li>
<li>
<p align="left"><strong><span lang="en-us">How to increase your hits  							on Google</span></strong><span id="more-245"></span></p>
</li>
<li>
<p align="left"><strong><span lang="en-us">How to get top rankings in  							Google</span></strong></p>
</li>
<li>
<p align="left"><strong><span lang="en-us">How to get your website on  							Google</span></strong></p>
</li>
<li>
<p align="left"><span lang="en-us"><strong>How to beat google?</strong></span></p>
</li>
</ul>
<ul>
<li>
<p align="left"><span lang="en-us"><strong>Perform a Google (and  							other search engines) structural compliance analysis</strong>.   							This is something very few SEO folks do.   							Why?  Perhaps they don&#8217;t know?<strong>  </strong>Google provides  							recommendations to webmasters in their 							<a href="http://www.google.com/support/webmasters/bin/answer.py?answer=35769" target="_blank"> 							Webmaster Guidelines</a>, which is public  							information.  Google also has new patents that  							indicate what is important to them in ranking web  							pages.</span></p>
</li>
<li>
<p align="left"><span lang="en-us"><strong>Understand your marketing  							plan.</strong>  You need to understand your  							marketing plan and I need to understand what you want  							your web to do for you if you want me to help you.  You do have a plan,  							right? This information gets me all  							set up to help you get top rankings on Google.   							It is a good marketing exercise for you. </span></p>
</li>
<li>
<p align="left"><span lang="en-us"><strong>Do search phrase research.  							</strong>We can determine through search phrase research  							exactly what people are searching for relative to  							what you are doing with your web.<strong><a href="http://www.roncastle.com/keyword-services.htm"></a>  I used search phrase research to  							target my keyword services page.  I am number three out of  							about million and something competitors last time I checked.<br />
</strong></span></li>
<li>
<p align="left"><span lang="en-us"><strong>Write keyword rich page  							copy.</strong>  A web page works best with Google  							when it has enough text properly written about <strong> 							ONE SUBJECT</strong>.  What Google&#8217;s algorithm is  							trying to determine when it analyzes your web pages  							is: what is this page about?  If you have a  							mixed message, the algorithm can&#8217;t tell what the  							page is about, and you get no rankings. </span></p>
</li>
<li>
<p align="left"><span lang="en-us"><strong>Get some links in to your  							web from authoritative sources.  </strong>Web pages  							with high Google PageRank&#8217;s will get you  							in Google&#8217;s index with a positive start.   </span></p>
</li>
<li>
<p align="left"><strong>I<span lang="en-us">s</span></strong><span lang="en-us"><strong>  							your web in Google trouble or the supplemental  							index?</strong>   </span></p>
</li>
<li>
<p align="left"><span lang="en-us"><strong>Write a search engine  							optimized press release.  </strong>This will bring  							large volume traffic to you web in a matter of days  							instead of weeks or months.</span></p>
</li>
<li>
<p align="left"><span lang="en-us"><strong>Keep adding content.</strong>   							Google treats webs with more than 100 pages of good  							content differently from smaller webs.  100  							pages sounds like a lot?  Not really.   							Let&#8217;s discuss all of the ways you can easily add  							content. </span></p>
</li>
<li>
<table id="table11" border="1" cellpadding="2">
<tr>
<td style="font-family: arial,sans-serif">
<p align="left"> 									<a href="http://www.roncastle.com/images/logo_wht_30.gif" style="font-family: arial,sans-serif" target="_blank"> 									<img src="http://www.roncastle.com/images/logo_wht_30.gif" align="right" border="0" height="48" width="110" /></a></p>
</td>
</tr>
</table>
<p align="left"><span lang="en-us"><strong>Use the new 							<a href="https://www.google.com/webmasters/sitemaps/docs/en/about.html" target="_blank"> 							Google Sitemaps</a>  </strong>Using an XML  							sitemap in your web, in addition to a regular  							sitemap, is a great way to see what Google sees when  							indexing your web.  The Sitemaps Beta has now  							been incorporated into your free Google account  							under Webmaster Tools.  </span></p>
<p align="left"><span lang="en-us">There are a number of XML  							generators online. I have tested 20 of them,  							none of which worked correctly for websites with  							more than 30 pages.</span></p>
<p align="left"> 							<span lang="en-us">An excellent tool you can  							download and run from your desktop is </span> 							<strong> 							<a href="http://www.gsitecrawler.com/" title="Generating Google Sitemap files has never been easier using the SOFTplus GSiteCrawler for Windows!" target="_blank"> 							GSiteCrawler: Google Sitemap Generator for Windows</a></strong> 							<span lang="en-us"> Be sure to download the  							latest update.</span></p>
<p align="left"> 							<span lang="en-us">GSiteCrawler is a better solution  							for webs with lots of content and for webs where  							your images are important for image search.   							GSiteCrawler will index everything including all  							pages in all directories and your images.  It  							uses 6 simultaneous crawlers to capture your  							content.  Making a sitemap for a web with 2600  							pages took me about an hour and a half.</span></p>
<p align="left"> 							<span lang="en-us">Open your free Google account,  							then request a verification code to show you have  							the right to monitor the web.  The best bet is  							to add the verification file as a named html page in  							your website.  Google will tell you what to  							name the file.  Add the file to your website  							same directory as your home page.  Do the same  							with Yahoo Site Explorer.</span></p>
<p align="left"> 							Then, use GSiteCrawler to crawl your website, put  							the sitemap in your website online, go back to  							Google, tell Google the name of the file and they  							will check it out and approve it.</p>
<p align="left"> 							<span lang="en-us">Takes me about 10  							minutes, but I have done a bunch of them.   							Google will tell you if they find any indexing  							errors, missing pages, broken links, etc.  When  							you add new pages to your web, go make another  							sitemap and resubmit it.  Other engines are  							using XML maps, too.  This makes Google&#8217;s job  							easier, and is a leg up for you on your competitors.</span></p>
</li>
</ul>
<p align="left">&nbsp;</p>
<a href="http://catur.web.id/blog/index.php?tag=parfum-import" rel="tag">parfum import</a>, <a href="http://catur.web.id/blog/index.php?tag=safety-shoes" rel="tag">safety shoes</a>, <a href="http://catur.web.id/blog/index.php?tag=sepatu-kings" rel="tag">sepatu kings</a>, <a href="http://catur.web.id/blog/index.php?tag=sepatu-safety" rel="tag">sepatu safety</a><div id="crp_related"><h3>Related Posts:</h3><ul><li><a href="http://catur.web.id/blog/2007/10/19/new-safety-shoes-sepatu-touring-sepatu-bikers/" rel="bookmark" class="crp_title">New: Safety Shoes (Sepatu Touring / Sepatu Bikers)</a></li><li><a href="http://catur.web.id/blog/2008/04/20/free-push-google-apps-email-to-your-phone-with-emoze/" rel="bookmark" class="crp_title">Free Push Google Apps email to Your Phone with Emoze!</a></li><li><a href="http://catur.web.id/blog/2008/04/06/wordpress-plugin-swift-mailer-send-mail-using-google-apps/" rel="bookmark" class="crp_title">WordPress Plugin: swift-smtp.1.0, Send mail using Google Apps</a></li><li><a href="http://catur.web.id/blog/2008/02/09/secure-cgi-proxy/" rel="bookmark" class="crp_title">Secure CGI Proxy</a></li><li><a href="http://catur.web.id/blog/2008/04/12/get-a-faxless-payday-loan-today/" rel="bookmark" class="crp_title">Payday Loans by Personal Cash Advance</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://catur.web.id/blog/2008/04/01/how-to-be-number-one-on-google/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

