Install JSON on linux

On February 3, 2010, in CakePHP, Fedora, Javascript, LAMP, Linux, Open Source, PHP, Tips, Tricks, by Sandeep Verma

Hits: 817  Have the fun with json…. JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. # yum -y install php-pear # pecl install json # vi /etc/php.d/json.ini extension=json.so # service httpd restart

Trim and remove empty key & value in php array

On December 4, 2009, in CakePHP, LAMP, Oscommerce, PHP, Tips, Tricks, by Sandeep Verma

Hits: 125  Here is the PHP function that will remove empty key => value in PHP array… function array_trim($sv) { $s = 0; $svn = null; $c = count($sv); for($i = 0; $i < $c; $i++) { if($sv[$i] != “”){ $svn[$s++] = trim($sv[$i]); } } return $svn; } $svarray = array(‘   ‘, ‘svlinux’, ‘svnlabs’, ‘lamp’, ”); [...]

CakePHP in svnlabs

On November 14, 2009, in CakePHP, LAMP, PHP, Tips, Web Application, by Sandeep Verma

Hits: 271  CakePHP is the rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It follows design patterns like MVC and ORM, CakePHP reduces development costs and helps developers write less code. Features of CakePHP: – Extremely Simple. – Active, Friendly Community. – Flexible License. – Clean IP – [...]

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...