Thursday, 1 October 2015

Send SMS for subscriber using PHP

How to send SMS for subscriber using PHP

We need to get the message provider link then copy the below code.
 $host=$_SERVER['SERVER_NAME'];  
      $admin='info@'.$host;  
      $username= urlencode('username');//username  
      $password= urlencode('password');//pasword  
      $admin_phone=urlencode('mob.no');//mobile number  
      date_default_timezone_set("Asia/Kolkata");  
      $msg_provider='your message provider url';  
      $name=mysql_escape_string($_POST['name']);  
 $email=mysql_escape_string($_POST['email']);  
      $message=mysql_escape_string($_POST['message']);  
 $phone_message="Enquiry From : ".$name."\nPhone No : ".$phno."\nMessage : ".$message;  
           $msg1=urlencode($phone_message);  
           $msg_url = $msg_provider.'?user='.$username.'&pass='.$password.'&sender=BYPORT&phone='.$admin_phone.'&text='.$msg1.'&priority=ndnd&stype=normal';  
           $ch = curl_init($msg_url);  
           curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);  
           $curl_scraped_page = curl_exec($ch);  
           curl_close($ch);  

Wednesday, 30 September 2015

Create the Google Map Using Jquery

How to create the Google Map Using Jquery

We need to create the script for the google map.
Script Given Below.
 <head>  
 <script  
 src="http://maps.googleapis.com/maps/api/js">  
 </script>  
 <script>  
 var myCenter=new google.maps.LatLng(11.508742,77.120850);  
 function initialize()  
 {  
 var mapProp = {  
  center:myCenter,  
  zoom:5,  
  mapTypeId:google.maps.MapTypeId.ROADMAP  

Tuesday, 29 September 2015

Use Border Radius on Internet Explorer

How to use Border Radius on Internet Explorer

Step 1 : Need PIE.HTC file download from the given link.Pie.htc

Use the below css code for call the .htc file

 #someSelector {  
 behavior: url('/path/to/file/css3pie.htc');  
 // Normal properties here...  
 }  


Monday, 28 September 2015

Destroy cookies and unset the user data using Codeigniter

How to Destroy cookies and unset the user data using Codeigniter

Step 1 : We create signout.php on view folder and copy the below code.

 <?php  
 redirect(site_path.'login','refresh');  
 ?>  

Create the signout.php on controller folder and copy the below code.

 function __construct()  
      {  
           parent::__construct();  
           $this->load->helper('url');  
           $this->load->library('session');  
           if(!isset($this->session->unset_userdata['userid']))  
           {  
                $this->session->sess_destroy();  
                redirect(site_path.'login','refresh');