Wondering about PEAR standards

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?

Inspired!! The Template Class!

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…

Template Class: Getting the logics in – If loop

In the previous post, we have seen that the template class is not acting as a proper tag replacer. So what it does now is replaces all the variables as a tag. So if we add $tpl->put(”var1?,”SSS”);, it will replace {$var1} in the template with SSS. Now, when we think about the template class, we find that this is still a very raw system. I mean this is a very small system and would be of virtually of no use. So what we do is, we give it some brains. It has to process some logis. It doesnt mean if it can process simple loops such as ifs and fors. So we create a new filter. Our first loop is going to be if loop.