Archive for the ‘PHP’ Category
Posted on June 28, 2009
This is not yet another regular expression replacement template engine. The template engine uses PHP itself to render the template. The template itself is very intuitive to people who are already familiar with PHP. There is no extra learning for additional syntax - the template code itself is just plain PHP code. Though I haven't [...]
Posted on October 1, 2008
In Ajax programming development, passing data back and forth between client and server is a common task. There are two major data formats that one can use for this purpose, namely XML and JSON. My personal preference is JSON because I find it's less verbose and easier to parse.
Although latest PHP provides a very handy [...]
Posted on September 13, 2007
Update(2009-09-19): JSON encoding and decoding is built into PHP since PHP 5.20. You don't need Zend's JSON support if your PHP version is >= 5.20. Please see:
http://us2.php.net/manual/en/function.json-encode.php
http://us2.php.net/manual/en/function.json-encode.php
So you are writing a piece of PHP code to handle some Ajax request and you've just finished coding the business logic. It is time to output some server [...]