<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>a2pl</title>
	<atom:link href="http://a2pl.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://a2pl.wordpress.com</link>
	<description>it's all about programming</description>
	<lastBuildDate>Fri, 24 Apr 2009 08:25:42 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='a2pl.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a70a89fb9dd5fafe4180f6e17b0b116e?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>a2pl</title>
		<link>http://a2pl.wordpress.com</link>
	</image>
			<item>
		<title>calculate periode of order on traffic [PHP]</title>
		<link>http://a2pl.wordpress.com/2007/09/06/hitung-tanggal-antara-tanggal-awal-dan-tanggal-akhir-php/</link>
		<comments>http://a2pl.wordpress.com/2007/09/06/hitung-tanggal-antara-tanggal-awal-dan-tanggal-akhir-php/#comments</comments>
		<pubDate>Thu, 06 Sep 2007 10:06:04 +0000</pubDate>
		<dc:creator>a2pl</dc:creator>
				<category><![CDATA[PHP, javascript]]></category>
		<category><![CDATA[hitung periode hari]]></category>

		<guid isPermaLink="false">http://a2pl.wordpress.com/2007/09/06/hitung-tanggal-antara-tanggal-awal-dan-tanggal-akhir-php/</guid>
		<description><![CDATA[this case must be found when calculating the total price to be paid. where = total number of days (the period of contract ad)  *  the frequency *  price. I finally after a google search on the knuckle with a recurrence period of manual (err TT).
hiks..  I was wrong
I finally found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=a2pl.wordpress.com&blog=1079594&post=5&subd=a2pl&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div style="text-align:left;" dir="ltr">this case must be found when calculating the total price to be paid. where = total number of days (the period of contract ad)  *  the frequency *  price. I finally after a google search on the knuckle with a recurrence period of manual (err TT).</div>
<div style="text-align:left;" dir="ltr">hiks..  I was wrong</div>
<p>I finally found the function to calculate the number of days from the period. [I forgot the site address. but I still quote the name of its author]. so if there is a function of the period. the name of its author do not forget to put on the top of function. <img src="http://images.multiply.com/common/smiles/smile.png" alt="" /></p>
<p>btw,  I had chaged a sign the date separator of that function.</p>
<p>here&#8217;s the code :</p>
<p><span style="color:#339966;"><span style="color:#3366ff;">//Fungsi : ambil Tanggal antara startDate dan endDate</span><br />
<span style="color:#3366ff;">// Author : mybenchmarkid at yahoo dot com [keluaran berbentuk array]</span> </span><br />
<span style="color:#3366ff;font-size:x-small;"><span style="font-family:trebuchet ms;">function DatesBetween($start_Date, $end_Date){</span><br />
<span style="font-family:trebuchet ms;"> // get the number of days between the two given dates.</span><br />
<span style="font-family:trebuchet ms;"> $days                          = (strtotime($endDate) &#8211; strtotime($startDate)) / 86400 + 1;</span><br />
<span style="font-family:trebuchet ms;"> $startMonth     = date(&#8220;m&#8221;, strtotime($startDate));</span><br />
<span style="font-family:trebuchet ms;"> $startDay         = date(&#8220;d&#8221;, strtotime($startDate));</span><br />
<span style="font-family:trebuchet ms;"> $startYear        = date(&#8220;Y&#8221;, strtotime($startDate)); </span><br />
<span style="font-family:trebuchet ms;"> $dates;            //the array of dates to be passed back</span></span></p>
<p><span style="color:#3366ff;"><span style="font-family:trebuchet ms;"><span style="font-size:x-small;"> for($i=0; $i&lt;$days; $i++){</span></span></span><span style="color:#3366ff;font-size:x-small;"><br />
<span style="font-family:trebuchet ms;"> $pDates    = explode(&#8220;/&#8221;, date(&#8220;n/j/Y&#8221;, mktime(0, 0, 0, $startMonth ,     ($startDay+$i), $startYear)));</span><br />
<span style="font-family:trebuchet ms;"> $dates[$i]    = $pDates[2].&#8221;/&#8221;.$pDates[0].&#8221;/&#8221;.$pDates[1];</span><br />
<span style="font-family:trebuchet ms;"> }</span><br />
<span style="font-family:trebuchet ms;"> return $dates; </span><br />
<span style="font-family:trebuchet ms;">}</span></span></p>
<p>here&#8217;s the code :</p>
<p>for example:</p>
<p>period of order on traffic are:</p>
<p><span style="color:#3366ff;font-size:x-small;"><span style="font-family:trebuchet ms;">startdate : 2007-01-01</span></span></p>
<p><span style="color:#3366ff;font-size:x-small;"><span style="font-family:trebuchet ms;">enddate : 2007-02-01</span></span></p>
<p>use  print_r(DatesBetween (&#8220;<span style="color:#3366ff;font-size:x-small;"><span style="font-family:trebuchet ms;">2007-01-01</span></span>&#8220;, &#8220;<span style="color:#3366ff;font-size:x-small;"><span style="font-family:trebuchet ms;">2007-02-01</span></span>&#8220;));</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/a2pl.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/a2pl.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/a2pl.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/a2pl.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/a2pl.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/a2pl.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/a2pl.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/a2pl.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/a2pl.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/a2pl.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/a2pl.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/a2pl.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=a2pl.wordpress.com&blog=1079594&post=5&subd=a2pl&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://a2pl.wordpress.com/2007/09/06/hitung-tanggal-antara-tanggal-awal-dan-tanggal-akhir-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/153814a1643dccdcfae32f78bdc6f971?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">a2pl</media:title>
		</media:content>

		<media:content url="http://images.multiply.com/common/smiles/smile.png" medium="image" />
	</item>
	</channel>
</rss>