Pages

Tuesday, April 29, 2014

Linux-Scrap Website from terminal

Fool the server that we are using mozilla if unable to do via simple way
 $ wget --user-agent="Mozilla 2.0" -m http://www.itfeast.blogspot.com  
The Simple way
 $ wget -m --tries=7 "http://www.itfeast.blogspot.com"  

Sunday, April 27, 2014

Zend 1.12-Render individual form opening and closing tags

Though I am still looking for a workout of the same from zend function's.But still to get best of results I use following manually added code.
 <form action="<?php echo $this->form->getAction() ?>"  
    enctype="<?php echo $this->form->getEnctype() ?>"  
    method="<?php echo $this->form->getMethod() ?>"  
    id="<?php echo $this->form->getId() ?>"  
    class="<?php echo $this->form->getAttrib('class') ?>" >  
 </form>  


Saturday, April 26, 2014

Zend-Option Group in Zend_Form_Element_Multiselect

 $techDoc = new Zend_Form_Element_Multiselect(‘technical_doc’);  
 $techDoc->setLabel(‘Technical Documents’)  
 ->setMultiOptions(array(“Option Group 1″ => array(“option1″,”option2″,”option3″),  
 “Option Group 2″=>array(“option1″,”option2″,”option3″)));  

Tuesday, April 22, 2014

Change default wordpress login URL

Change default Login URL-Wordpress

Add the following line to the end of .htaccess

RewriteRule ^login$ http://YOUR_SITE.com/wp-login.php[NC,L]