<?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>loveofphp.com</title>
	<atom:link href="http://loveofphp.com/feed" rel="self" type="application/rss+xml" />
	<link>http://loveofphp.com</link>
	<description></description>
	<lastBuildDate>Sun, 28 Feb 2010 14:02:45 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>TEST</title>
		<link>http://loveofphp.com/uncategorized/test.html</link>
		<comments>http://loveofphp.com/uncategorized/test.html#comments</comments>
		<pubDate>Sun, 28 Feb 2010 14:02:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/uncategorized/test.html</guid>
		<description><![CDATA[Silly Woman
Whimsical women christmas special gallery wrapped canvas, staples on back 16&#215;20 $50 18&#215;24 $60 24&#215;24 $80 24&#215;36 $100 30&#215;40 $110. Silly jokes &#8211; dumb stupid jokes buzzle.com silly faces printed pajama, women&#8217;s 100 cotton sateen, yellow. Blog : sometimes i just want to be a helpless, silly woman welcome to the silly graphics page [...]]]></description>
			<content:encoded><![CDATA[<p>Silly Woman</p>
<p>Whimsical women christmas special gallery wrapped canvas, staples on back 16&#215;20 $50 18&#215;24 $60 24&#215;24 $80 24&#215;36 $100 30&#215;40 $110. Silly jokes &#8211; dumb stupid jokes buzzle.com silly faces printed pajama, women&#8217;s 100 cotton sateen, yellow. Blog : sometimes i just want to be a helpless, silly woman welcome to the silly graphics page as i come across different interesting or silly not tonight positions &#038; excuses woman. The silly sisters in an age of multimillion-dollar high-tech weapons systems, sometimes it&#8217;s the simplest ideas that can save lives which is why a new jersey mother is organizing a drive to send. Silly news, funny news and odd news &#8211; silly times woman sues mortgage lenders i am sure you heard tons of cases where mortgage lenders we need silly, funny, odd news and stories if you happen to come across such news, would.</p>
<p>Silly cake recipes on woman&#8217;s day recipe finder for iphone being bisexual means that you are attracted to members of both sexes, even if you re not sleeping with them here are some things bisexuality doesn t mean. Silly faces women cotton sateen pajama sure, michelle pfeiffer looks great, but what about the rest of us over-40 gals why do we feel the need to keep our long tresses well beyond the expiration date is long hair on. Silly woman party arty office, birthdays, bridal showers, women&#8217;s groups, church groups, family reunions, scouts, sororities you may have your party during regular hours or take over the. Watch a woman parking &#8211; nuff said video break.com marysville, calif (ap) &#8211; a 54-year-old woman was recovering in the hospital after being hit by a union pacific freight train south of marysville.</p>
<p>Silly woman animal rubber bands silly bandz, fastest turnaround, 1-800-921-8661 pack of 24 colorful shapes sillybandz pack includes suns, stars, bones, hearts, dollar signs, and woman signs. Long hair on older women: sexy or silly &#8211; entertainment news story 7/2/2008 11:33 pm last read: 7/6/2008 4:56 pm: yes, i do and you how do you feel. Woman being silly hit by freight train badcyclopedia read silly quotes &#8220;behind every good man there is a good woman and behind that another man looking at her ass&#8221;. Imdb video: the women: theatrical trailer silly quotes pickup lines taglines celebrity quotes gravestones bumper stickers &#8220;behind every good man there is a good woman and behind that another man looking. Whimsical women hand finished clothing specializing in women&#8217;s wear offers headwear, undergarments, neckwear, books, patterns, stockings and notions.</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/test.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First Gmail Now Adsense! Whats wrong with Google!</title>
		<link>http://loveofphp.com/uncategorized/first-gmail-now-adsense-whats-wrong-with-google.html</link>
		<comments>http://loveofphp.com/uncategorized/first-gmail-now-adsense-whats-wrong-with-google.html#comments</comments>
		<pubDate>Mon, 02 Feb 2009 04:10:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=40</guid>
		<description><![CDATA[Like most of the publishers, I myself prefer to be with google adsense. But recently, things have been going wrong with google. Not sure if its a testing issue or what! But somehow, when I opened my adsense  account in my opera browser, I found that the ad format is actually missing.  I wanted to [...]]]></description>
			<content:encoded><![CDATA[<p>Like most of the publishers, I myself prefer to be with google adsense. But recently, things have been going wrong with google. Not sure if its a testing issue or what! But somehow, when I opened my adsense  account in my opera browser, I found that the ad format is actually missing.  I wanted to put up my ads on my <a href="http://www.britishgamble.com/">British Gambling website</a>, but somehow, it didn’t show me the ad formats at all. At this point of time, I am not actaully able to get my ads up. I hope things are corrected soon. I dont know why these days, I am just kinda finding faults. I will try to create some more interesting content for the website  soon. I am still trying to make the template system run in a super sexy way. The tutorial is taking me a while to write. Hope to write for you soon. Thanks and all the best! Meanwhile check this joke out of  adsense!</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/first-gmail-now-adsense-whats-wrong-with-google.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Man Wordpress Rocks!!!</title>
		<link>http://loveofphp.com/uncategorized/man-wordpress-rocks.html</link>
		<comments>http://loveofphp.com/uncategorized/man-wordpress-rocks.html#comments</comments>
		<pubDate>Fri, 19 Dec 2008 04:26:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=59</guid>
		<description><![CDATA[I have just upgraded to wordpress 2.7, and man, on the first sight.. I have been stunned! Wordpress has never been soooo beautiful. Every time they come up with something, it hits you, and it hits you SOOO HARD! This is sooo beautiful. Guys.. this is great!!
]]></description>
			<content:encoded><![CDATA[<p>I have just upgraded to wordpress 2.7, and man, on the first sight.. I have been stunned! Wordpress has never been soooo beautiful. Every time they come up with something, it hits you, and it hits you SOOO HARD! This is sooo beautiful. Guys.. this is great!!</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/man-wordpress-rocks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coming soon…</title>
		<link>http://loveofphp.com/uncategorized/coming-soon%e2%80%a6.html</link>
		<comments>http://loveofphp.com/uncategorized/coming-soon%e2%80%a6.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 04:14:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=46</guid>
		<description><![CDATA[Hello, I am currently hung up with some important stuff related to my career. I’m not able to write on my blog for this reason. I should be finished by the next week. I will try to finish off the template titotial in the next week. Thanks for the patience meanwhile. I promise that this [...]]]></description>
			<content:encoded><![CDATA[<p>Hello, I am currently hung up with some important stuff related to my career. I’m not able to write on my blog for this reason. I should be finished by the next week. I will try to finish off the template titotial in the next week. Thanks for the patience meanwhile. I promise that this is going to be a read that you will love. I have a lot if things on my mind. I only hope you people love it as much as I am thrilled to write it. See you in a week or so…</p>
<p>— Post From My iPhone</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/coming-soon%e2%80%a6.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rapidshare… I am after you!! Once more!!</title>
		<link>http://loveofphp.com/uncategorized/rapidshare%e2%80%a6-i-am-after-you-once-more.html</link>
		<comments>http://loveofphp.com/uncategorized/rapidshare%e2%80%a6-i-am-after-you-once-more.html#comments</comments>
		<pubDate>Sat, 15 Nov 2008 04:53:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=82</guid>
		<description><![CDATA[Hi,
So guys, I suppose, the crack I had shown you last time, doesn’t work anymore!! I was just going through rapidshare once again, for a crack for you. I HATE waiting for rapidshare! So, what do I do, I decide to create a workaround. Here is what you do to create a rapidshare work around.
In [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
So guys, I suppose, the crack I had shown you last time, doesn’t work anymore!! I was just going through rapidshare once again, for a crack for you. I HATE waiting for rapidshare! So, what do I do, I decide to create a workaround. Here is what you do to create a rapidshare work around.</p>
<p>In this simple workaround, just add #dlt to the url of the rapidshare file you want to download and it will let the time wait go off! This is sooo easy. Just take a look at the video above. Its easy, simple and funny how programmers can leave loopholes <img src='http://loveofphp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . Hope you guys enjoyed it! Check back later for more tips and tricks!</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/rapidshare%e2%80%a6-i-am-after-you-once-more.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A genuine request</title>
		<link>http://loveofphp.com/uncategorized/a-genuine-request.html</link>
		<comments>http://loveofphp.com/uncategorized/a-genuine-request.html#comments</comments>
		<pubDate>Sat, 15 Nov 2008 04:25:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=57</guid>
		<description><![CDATA[I have been really tired of moderating comments that some very stupid visitors have put up on this site. Please don’t spoil this place which I have spent hours to build. I hope you people please co operate.
Thanks I’m advance
Admin
]]></description>
			<content:encoded><![CDATA[<p>I have been really tired of moderating comments that some very stupid visitors have put up on this site. Please don’t spoil this place which I have spent hours to build. I hope you people please co operate.<br />
Thanks I’m advance<br />
Admin</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/a-genuine-request.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Template System &#8211; Complete Tutorial &#8211; The labour Part!</title>
		<link>http://loveofphp.com/uncategorized/template-system-complete-tutorial-the-labour-part.html</link>
		<comments>http://loveofphp.com/uncategorized/template-system-complete-tutorial-the-labour-part.html#comments</comments>
		<pubDate>Sat, 08 Nov 2008 04:02:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=33</guid>
		<description><![CDATA[So, now you have seen my babe here and you might be thinking what is this all about. Let me begin by telling you, all in all, this is a simple template class compared to the big giants like smarty. But even then, this class has been a boon to me and my team. I [...]]]></description>
			<content:encoded><![CDATA[<p>So, now you have seen my babe <a title="PHP Template Class" href="../../../../../php/template-tutorial/inspired-the-template-class.html" target="_blank">here</a> and you might be thinking what is this all about. Let me begin by telling you, all in all, this is a simple template class compared to the big giants like smarty. But even then, this class has been a boon to me and my team. I have developed and improved it over a few months. Though not perfected it yet, but I plan to spend a while to improve it. Okay I guess I have missed on why we are here spending hours orin fact days together to develop a template system. Well read my post on Web Application Development. If you read this topic, it is apparent that there are 3 layers of a web application.</p>
<ol>
<li>The data      layer,</li>
<li>the      processing layer( can be further divided) and</li>
<li>the      presentation layer.</li>
</ol>
<p>For most of the conventional applications, the Layer 1 and 2 are managed by the same people. More often than not, we find people who are good in the processing layer, dealing with PHP are bad in CSS, or the presentation layer. So, this template is an effort to make these layers separate. We have had a lot of trouble doing the same, but nevertheless, its beenachived. Okay so how does this work is the main question…</p>
<p>Lets put down the logical steps on the running of this template:</p>
<ol>
<li>Load the      file with the template</li>
<li>Check for      the for statements</li>
<li>Check for      the if statements</li>
<li>Check for      variables in the template</li>
<li>Check for      included templates, and process them also.</li>
</ol>
<p>Whoa! Some programming is going to be needed for that! So, let’s go ahead and do what is required. I would like to get to your notice that I am still getting in line with the PEAR coding standards, so you might consider me a bit immature as of now <img src='http://loveofphp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> . But well anyhow, the writing style is pretty clear to view the stuff. The program is what is more important here. Okay so moving ahead, the first part of the function,</p>
<p>function template($template_file,$template_vars= array(),$template_path=&#8221;")</p>
<p>{</p>
<p>$this-&gt;contents = $this-&gt;getTemplate($template_file,$template_path);</p>
<p>$this-&gt;template_vars = $template_vars;</p>
<p>$this-&gt;template_path = $template_path;</p>
<p>}</p>
<p>function getTemplate($template_file,$template_path = &#8220;&#8221;)</p>
<p>{</p>
<p>$txt = substr($template_path,strlen($template_path) &#8211; 1,1);</p>
<p>if(($txt != &#8220;/&#8221;) &amp;amp;amp;&amp;amp;amp; ($txt != &#8220;\\&#8221;) &amp;amp;amp;&amp;amp;amp; ($txt != &#8220;&#8221;))</p>
<p>{</p>
<p>$template_path = $template_path.&#8221;/&#8221;;</p>
<p>}</p>
<p>if(function_exists(&#8221;file_get_contents&#8221;))</p>
<p>{</p>
<p>// PHP 5 Method!</p>
<p>$full_path = $template_path.$template_file;</p>
<p>$contents = @file_get_contents($full_path);</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>// The traditional method</p>
<p>$f = fopen($template_file,&#8221;r&#8221;);</p>
<p>$contents = fread($f,filesize($template_file));</p>
<p>}</p>
<p>return $contents;</p>
<p>}</p>
<p>now when you use the template like</p>
<p>$tpl = new template(&#8221;template.html&#8221;,$tpl_vars,&#8221;e:/www/&#8221;);</p>
<p>It will firstly open load the template function, which will then go to the <strong><em>getTemplate</em></strong> method which will then check if its PHP 4 or 5 (though PHP 4 is history now), open the file and get the contetns of the file in a variable. It then passes back these contents to the main function, which stores the contents in a class level variable namely $contents. Now the story moves ahead. These are the next few set of functions.</p>
<p>function put($find, $replace)</p>
<p>{</p>
<p>$this-&gt;template_vars[$find] = $replace;</p>
<p>}</p>
<p>function process_template($contents)</p>
<p>{</p>
<p>$contents = $this-&gt;filter_fors($contents);</p>
<p>$contents = $this-&gt;filter_ifs($contents);</p>
<p>error_reporting(0);</p>
<p>$contents = $this-&gt;filter_php_funcs($contents);</p>
<p>$contents = $this-&gt;process_var_replace($contents);</p>
<p>$contents = $this-&gt;replace_var_array($this-&gt;template_vars,&#8221;,$contents);</p>
<p>$contents = $this-&gt;process_includes($contents);</p>
<p>$contents = $this-&gt;check4vars($contents);</p>
<p>return $contents;</p>
<p>}</p>
<p>function render($do_as_string = false)</p>
<p>{</p>
<p>$this-&gt;contents = $this-&gt;process_template($this-&gt;contents);</p>
<p>if($do_as_string == false)</p>
<p>{</p>
<p>echo $this-&gt;contents; // PRINTS THE ENTIRE CONTENT</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>return $this-&gt;contents; // RETURNS THE CONTENT AS A STRING</p>
<p>}</p>
<p>error_reporting(1);</p>
<p>}</p>
<p>The function put is added to declare the template variables, after the initiation of the template. So if you, in later stages want to change the value of the template variable, you can use the this function.</p>
<p>The next function is process_template. Okay, I have been a bit foolish while naming these functions, but nevertheless, they do the job. This function actually processes the template. It filters almost every thing from the contents and makes it ready for the display. It runs all the functions one by one and thus processes the template.</p>
<p>“render” does what it says. It renders the tempalte. Many a times, you would want the render as string or as an echo. If you pass false into it i.e.</p>
<p>$content = $tpl-&gt;render(false);</p>
<p>echo $content;</p>
<p>This will be helpful when you want to replace certain contents manually. But anyhow, you can decide if you want to get it as variable or directly let the template class echo it. Now lets move to more details. The next set of fuctions is relating to replacement of variables. This mainly does the work of replacing the vairables used in the template with the ones we are going to set up in the php file. let me get the code across to you now</p>
<p>function check4vars($contents)</p>
<p>{</p>
<p>while(strpos($contents,&#8217;{$&#8217;,$end) &gt; 0)</p>
<p>{</p>
<p>$start = strpos($contents,&#8217;{$&#8217;);</p>
<p>$end = strpos($contents,&#8221;}&#8221;,$start);</p>
<p>$txt = str_replace(&#8217;{$&#8217;,&#8221;",substr($contents,$start,($end &#8211; $start)));</p>
<p>$contents = str_replace(&#8217;{$&#8217;.$txt.&#8221;}&#8221;,$this-&gt;template_vars[$txt],$contents);</p>
<p>}</p>
<p>return $contents;</p>
<p>}</p>
<p>function replace_var($var,$val,$content)</p>
<p>{</p>
<p>return str_replace(&#8221;{&#8221;.$var.&#8221;}&#8221;,$val,$content);</p>
<p>}</p>
<p>function process_var_replace($contents)</p>
<p>{</p>
<p>foreach($this-&gt;template_vars as $key=&gt;$val)</p>
<p>{</p>
<p>$contents = str_replace(&#8217;{$&#8217;.$key.&#8217;}',$val,$contents);</p>
<p>}</p>
<p>return $contents;</p>
<p>}</p>
<p>function replace_var_array($var_name, $var_key,$content,$is_first = true)</p>
<p>{</p>
<p>if(!is_array($var_name))</p>
<p>{</p>
<p>return $content;</p>
<p>}</p>
<p>foreach($var_name as $key=&gt;$val)</p>
<p>{</p>
<p>if(is_array($val))</p>
<p>{</p>
<p>$key = ($var_key == &#8220;&#8221;) ? &#8220;$&#8221;.$key : &#8220;[".$key."]&#8220;;</p>
<p>$content = $this-&gt;replace_var_array($val,$var_key.$key,$content,false);</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>if(($val != &#8220;&#8221;) &amp;amp;&amp;amp; ($var_key == &#8220;&#8221;))</p>
<p>{</p>
<p>$content = $this-&gt;replace_var($key,$val,$content);</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>$content = $this-&gt;replace_var($var_key.&#8217;['.$key.']&#8216;,$val,$content);</p>
<p>}</p>
<p>}</p>
<p>}</p>
<p>return $content;</p>
<p>}</p>
<p>These are very simple functions. What it does is replaces variables one way or another! So every variable written as {$xx} is replaced with its value is $tpl-&gt;template_vars[xx]. This is a simple logic and should be pretty easy to digest for you guys. Let us begin with <strong><em>replace_var</em></strong>. This function takes up the keys and replaces them with the values. Again a simple replacer function, as the name suggests. The fuction <strong><em>process_var_replace</em></strong> was written in the very initial stages of the making of this system. How the system originally worked was, it would iterate through all the variables in the template_vars array, and replace the {$key} with the {$val}, i.e. the array keys found in the content with the values. This was a very good idea to begin with, and I was proud of myself, but later on when I was writing the system in more depth, did I find out how wrong I was! I had got it all wrong. And now, I had to correct my mistakes. Anyhow I did decide to keep it as such as it was a very simple iteration, and wasnt eating up much of memory. Just gave me an extra bit of security (against programming lapses, if I had one <img src='http://loveofphp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</p>
<p>The next function is “<strong><em>replace_var_array</em></strong>“, which actually replaces an entire array in the string. This uses the function replace_var to actually replace the variable, and calls itslef, to make sure that all the values are replaced one by one. Again this functions much in the same was the the previous function did. Though, in later stages of development I wasnt too very convinced by the existance and use of this function, I chose to keep it as such. It does help me in other places. Though it doesn’t have much role after the next function I am going to describe, somehow, I really dont feel it is a very good idea to disturb the exisatace of this function. I hope I dont sound superstitious, but I am a bit wary about what I delete. When we actually make a public release of the class, we can consider on keeping or removing these fuctions. But for now I am keeping them in there!.</p>
<p>Now let us move to the first function of the previous set. It is “<strong><em>check4vars</em></strong>“. What this function does is, it checks the content string if there are any variables unreplaced, such as {$aasdf} which might not be there in the array, but keeping it as such can look bad. So, what do we do, we create this function. It checks all the variables and replaces them with the values. If there are no values given, it just replaces it with a null value (a little bit like PHP, who considers undefined variables as NULL values). Afterall, I am a PHP fan, and following PHP is something that fascinates me. I think I should pause here, take a breath and come in with more details on the tutorial in the next “post”? What do you suggest? I wanted to make this entire thing as a single post, but I guess it is just too long. In the next post, I am going to introduce to the “brains” of this engine. These brains, they actually let you define some logics in the template and let you use control statements, like <strong>if</strong>s and <strong>for</strong>s. Hope this has been an interesting read thus far. See you as soon as possible!<strong></strong><strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/template-system-complete-tutorial-the-labour-part.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Its been a long run!</title>
		<link>http://loveofphp.com/uncategorized/i-have-just-upgraded-to-wordpress-2-7-and-man-on-the-first-sight-i-have-been-stunned-wordpress-has-never-been-soooo-beautiful-every-time-they-come-up-with-something-it-hits-you-and-it-hits-you.html</link>
		<comments>http://loveofphp.com/uncategorized/i-have-just-upgraded-to-wordpress-2-7-and-man-on-the-first-sight-i-have-been-stunned-wordpress-has-never-been-soooo-beautiful-every-time-they-come-up-with-something-it-hits-you-and-it-hits-you.html#comments</comments>
		<pubDate>Tue, 04 Nov 2008 04:28:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=61</guid>
		<description><![CDATA[Hi,
You guys must have started to believe I am gone now, and maybe some must have even tought “for good”, lol, but well I havent been “gone” as such. I have been working hard to write up a tutorial for you. The last 3 weeks have taught me a lot. I have learned a lot [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
You guys must have started to believe I am gone now, and maybe some must have even tought “for good”, lol, but well I havent been “gone” as such. I have been working hard to write up a tutorial for you. The last 3 weeks have taught me a lot. I have learned a lot to teach. And with my last post, I have rather understood, its better to “<em>look before you leap</em>“. So, now I am writing and rewriting my tutorial. I accept that I have been a lil bad at putting names down and other stuff, but well I hope I do well further long. <a href="../../../../../?p=106&amp;preview=true">Here</a> is a view of what I have been doing in the last 3 weeks. Please do not comment, its too raw <img src='http://loveofphp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/i-have-just-upgraded-to-wordpress-2-7-and-man-on-the-first-sight-i-have-been-stunned-wordpress-has-never-been-soooo-beautiful-every-time-they-come-up-with-something-it-hits-you-and-it-hits-you.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Wondering about PEAR standards</title>
		<link>http://loveofphp.com/uncategorized/wondering-about-pear-standards.html</link>
		<comments>http://loveofphp.com/uncategorized/wondering-about-pear-standards.html#comments</comments>
		<pubDate>Tue, 21 Oct 2008 04:18:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=51</guid>
		<description><![CDATA[As we know, PHP is a large web based programming language. One thing I have understood while working on this beautiful language for a few years now, is, PHP is quite a stable architechture. PHP has this excellent advantage of being a server side language developed by a community of thousands of developers around the [...]]]></description>
			<content:encoded><![CDATA[<p>As we know, PHP is a large web based programming language. One thing I have understood while working on this beautiful language for a few years now, is, PHP is quite a stable architechture. PHP has this excellent advantage of being a server side language developed by a community of thousands of developers around the world. It is a great thing that PHP is run on a client server architechture, and that it can cater to thousands of requests simultaneously and taking a very little toll on the server. But with its biggest advantage is also its biggest drawback. With the traffic growing on the internet, the need for fast loading scripts has become a necessity. It has become really important for your script to run fast, and run thousands of instance of the same script simultaneously. So, what does this mean?</p>
<p>Well consider this example</p>
<p>if ($name == &#8220;John Doe&#8221;) {</p>
<p>$age = 24;</p>
<p>}</p>
<p>and now this one</p>
<p>if ($name == &#8220;John Doe&#8221;) {</p>
<p>$age = 24;</p>
<p>}</p>
<p>In all respects, you would find the 2 codes very similar. But there is a difference! The second code has a tab instead of 4 spaces here. So, over all, there is a saving of 3 bytes as far as the indenting is concerned. So, how does it matter? Well its just 3 bytes that you save. This is a common approach of any programmer. Well but consider the architecture you are working on! Consider your script has 15 such if loops. So,</p>
<p>15 loops x 3 bytes = 45 bytes of over load.</p>
<p>Say your site has 100,000 visitors (many sites have such scenarios, though it is a dream!), it means</p>
<p>45 x 100,000 = 4,500,000 bytes (Almost 4.5 GB!) of extra memory required.</p>
<p>So, does this really make sense. I agree that code redability is a factor that is very important, but we must not forget that PHP scripts are meant to run on an architechture, where it has to be very precise as far as the memory used is concerned. I have been readign through the PEAR coding standards. It has been a fascinating thing, but the reading has sparked a thought in my mind. Just understand, an extra byte of memory usage, in long run can mean a hell lot! I agree that we should have a standard in any thing, but the standard should be such that it helps the development, but not at the cost of the running! Hope this has been an intriguing thing for you! See ya soon! Adios!</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/wondering-about-pear-standards.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Inspired!! The Template Class!</title>
		<link>http://loveofphp.com/uncategorized/inspired-the-template-class.html</link>
		<comments>http://loveofphp.com/uncategorized/inspired-the-template-class.html#comments</comments>
		<pubDate>Sat, 18 Oct 2008 04:41:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://loveofphp.com/?p=74</guid>
		<description><![CDATA[Okay, today I find myself higly inspired. So, even at this odd point of time… i.e. 4 am in the morning, I am taking all the pains to pen down this crucial piece of information for you. Now, I have finally decided to release the current version of my template class. So here you go…
Source [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, today I find myself higly inspired. So, even at this odd point of time… i.e. 4 am in the morning, I am taking all the pains to pen down this crucial piece of information for you. Now, I have finally decided to release the current version of my template class. So here you go…</p>
<p>Source Code File:<br />
<a href="../../../../../wp-content/uploads/2008/10/template.phps">Template Class Source Code</a></p>
<p>Okay, so guys, now you have what is my one of the most favourite creation. Let me continue my tutorial with this source code with you. My next post is going to be a complete tutorial on what I have done and why!</p>
<p>Hope you are to have fun with this babe! its got much more than just simple tag replacements… I have given her logics! So enjoy</p>
]]></content:encoded>
			<wfw:commentRss>http://loveofphp.com/uncategorized/inspired-the-template-class.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
