Monday, 10 February 2014

Filled Under:

How to use Skype API to Detect Users Status in php

                 skype is a one of the biggest video calling, calling and instant messaging with client website in all over world. skype currently developed and managed by this post i have explained that how to i am getting my skype account status without skype login.

Try this code.

 <html xmlns="" xml:lang="en" lang="en">  
   <title>How to use Skype API to Detect Online Users |</title>  
   <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />  
   <style type="text/css">  
    img {border-width: 0}  
    * {font-family:'Lucida Grande', sans-serif;}  
     width: 357px;  
     height: 28px;  
     font-size: 15px;  
    <h2>How to use Skype API to Detect Online Users example.&nbsp;&nbsp;&nbsp;=> <a href="">Home</a> | <a href="">More Demos</a></h2>  
 function get_skype_status($username, $image = false, $icon = false ){  
   //creating url  
   //if you need small icon  
   if($image && $icon)  
     return "".$username;  
   //if you need image  
   else if($image)  
     return "".$username;  
   //or just text  
     $url = "".$username.".xml";  
     //getting contents  
     $curl = curl_init();  
     curl_setopt($curl, CURLOPT_URL, $url);  
     curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);  
     $data = curl_exec($curl);  
     $pattern = '/xml:lang="en">(.*)</';  
     preg_match($pattern,$data, $match);   
     return $match[1];    
 $status = "";  
   $ID = $_POST['status'];  
   //getting skype status icon  
   $ico = get_skype_status("$ID", true, true);  
   $status .= "<p>Skype icon:</p>";  
   $status .= "<p><img src='".$ico."'/></p>";  
   //getting skype status image  
   $image = get_skype_status("$ID", true);  
   $status .= "<p>Skype image:</p>";  
   $status .= "<p><img src='".$image."'/></p>";  
   //getting skype status text  
   $text = get_skype_status("$ID");  
   $status .= "<p>Skype status:</p>";  
   $status .= "<p>$text</p>";  
   $status = 'Your skype id: '.$ID.' status:<br>'.$status.'<br>';  
 echo $status.'  
   <form action="index.php" method="post">  
   <input type="text" name="status" id="status" placeholder="Skype Username" /><input type="submit" value="Get Status" style="padding: 5px;" />  


  1. Great Information sir.
    Read about technology here
    hire php developers india

  2. Hey really awesome post and unique content . i like it. good work keep it up .. Visit :- Skype Support Also Call +1-800-231-4635 USA (Toll Free).