Posts

Showing posts from 2014

Twillo local server ssl error resolve

$config['twilio_use_certificate'] = false; to $config['twilio_use_certificate'] = true;

twilio.com

- Create account at   twilio.com   with your email address. - Download and install OpenVBX from   openvbx.org   and connect it with your account. - Explore OpenVBX and create application with similar features. Don't try to copy. Create it the way you think is easier to use and looks professional.

Learning

Today i learn about Wodpress how to show cat in menu. and other things. page.php

Jquery Captcha validation plugin

Verify.php  //////////// <?php  require_once('recaptchalib.php');  $privatekey = "6LcmKu8SAAAAAGE8er5WjsiuRWOyqNMfyk-QZiIj";  $resp = recaptcha_check_answer ($privatekey,                                  $_SERVER["REMOTE_ADDR"],                                  $_GET["recaptcha_challenge_field"],                                  $_GET["recaptcha_response_field"]); // echo $privatekey.' '. $_SERVER["REMOTE_ADDR"].' challenge:'.$_GET["recaptcha_challenge_field"].' response:'.$_GET["rec...

Resize ReCaptcha width height

First using this code in head section <script type="text/javascript"> var RecaptchaOptions = { theme : 'custom', custom_theme_widget: 'recaptcha_widget' }; </script> this is style for adjust the width <style> #recaptcha_challenge_image{     width:230px;     overflow:hidden;         } #recaptcha_widget{     width:240px;         } </style> Than Put this code where you want to show Captcha <?php                                   require_once('recaptchalib.php');                                    ...

Link of make-your-own-captcha-using-php

http://rollcode.com/make-your-own-captcha-using-php/

Wordpress Get post in index page

<ul> <?php $args = array( 'posts_per_page' => 5,'category' => 1 ); $myposts = get_posts( $args ); foreach ( $myposts as $post ) : setup_postdata( $post ); ?> <li> <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a> </li> <?php endforeach; wp_reset_postdata();?> </ul>

just top corner round

this is for just top corner round -webkit-border-radius: 5px 5px 0 0; -moz-border-radius: 5px 5px 0 0; border-radius: 5px 5px 0 0;   

Croner round of div

this is for all mean 4 corner round float:left; width:251px; padding-left:20px; background:#015d5c; height:160px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;   
Date formate for all date('d M y',strtotime(  $Renta2['invoice_date'] ));