Thursday 1 December 2011

How to get string length in vm template

How to get string length or string size in vm template or how get object.string.length or size in vm templates 
   
   the apache velocity template engine is tool to generate template but somebody fee that's difficult to use

      here one doubt how to get string length,

      we use same java functions here so get length like java   $string.length()
     if u get string from object means $object.string.length()

for more reference click here

How to install php in linux ubuntu

how to install php in ubuntu , how to install php and apache2 in linux


php installation for ubuntu

open the terminal window then type the following command

to install apache web server type following

sudo apt-get install apache2 

sudo apt-get install libapache2-mod-php5

then, to install php type following command
 
apt-get install php5-mysql

then just restart apache

sudo /etc/init.d/apache2 restart  

for stop apache2
                 
                      sudo /etc/init.d/apache2 stop

or download manually and install,

          download php here

           download apache2 here

 
Design by Wordpress Theme | Bloggerized by Free Blogger Templates | coupon codes