PHP Check Proxies

<?php function checkProxies($proxies){    $url = ‘https://www.svnlabs.com/’;    $count = count($proxies);    echo ‘Number of proxies in file: ‘ . $count . ‘<br />’;  $curl_arr = array();  $master = curl_multi_init();  for($i = 0; $i < $count; $i++) {  $proxy = $proxies[$i];  $curl_arr[$i] = curl_init();  curl_setopt($curl_arr[$i], CURLOPT_RETURNTRANSFER, TRUE);  curl_setopt($curl_arr[$i], CURLOPT_HEADER, FALSE);  curl_setopt($curl_arr[$i], CURLOPT_URL, $url);  curl_setopt($curl_arr[$i], CURLOPT_CONNECTTIMEOUT, … Read more

SVNLabs Tools

HTML2CSV converts html/xhtml to csv/xls. VMG2TXT converts Nokia VMG message file to text file. VCard Parser Extract information from VCard. HTML2RSS converts html/xhtml to rss/xml feed. Amazon S3 upload file to Amazon S3 Bucket. CSV Mapper Import CSV file after adjusting Columns. JavaScript Twitter Bird a2zVideoAPI – search videos with page link EBook Search Engine … Read more

The best way to consume API

    <?php require_once(‘lib/nusoap.php’); $url = “http://www.hotelscombined.com/api/wsdl/SearchSoap.wsdl”; // web service URL $client = new nusoap_client($url, false); // soap client to consume API // XML payload from “soapUI” to send over wsdl server $xmlRequest='<soapenv:Envelope xmlns:soapenv=”http://schemas.xmlsoap.org/soap/envelope/” xmlns:tem=”http://tempuri.org/” xmlns:hot=”http://schemas.datacontract.org/2004/07/HotelsCombined.WebServices.Version4″>    <soapenv:Header/>    <soapenv:Body>       <tem:HotelSearch>          <!–Optional:–>          <tem:request>             <hot:ApiKey>?</hot:ApiKey>             <hot:Checkin>?</hot:Checkin>             <hot:Checkout>?</hot:Checkout>             <hot:DisplayCurrency>?</hot:DisplayCurrency>             <hot:Guests>?</hot:Guests>             <hot:HotelID>?</hot:HotelID>             <hot:LanguageCode>?</hot:LanguageCode>             <hot:Rooms>?</hot:Rooms>             <hot:TimeOutInSeconds>?</hot:TimeOutInSeconds>             <hot:UserAgent>?</hot:UserAgent>             <hot:UserID>?</hot:UserID>             <hot:UserIPAddress>?</hot:UserIPAddress>          </tem:request>       </tem:HotelSearch> … Read more

How to check RTMP source stream is live or not?

Dear Friends, You can check RTMP Source is live or not using socket programming, but that will not give you exact output. Today I have tried Linux utility “rtmpdump” to test & check RTMP Source it produced quite interesting results on command line…. # rtmpdump -v -r rtmp://giraldatvlivefs.fplive.net/giraldatvlive-live/stream001 -o /tmp/rtmp-checker.log <?php /*  *  * RTMPChecker … Read more

Save Facebook Profile Photo

<?php $facebook_uid = ‘100000296428149’; $sourcecode = save_facebook_profile_photo($facebook_uid); print_r($sourcecode); file_put_contents(“images/”.$facebook_uid.”.jpg”, file_get_contents($sourcecode[‘url’])); //this is name of new file that i save function save_facebook_profile_photo( $id ) {     $options = array(         CURLOPT_RETURNTRANSFER => true, // return web page         CURLOPT_HEADER => false, // don’t return headers         CURLOPT_FOLLOWLOCATION => true, // follow redirects         CURLOPT_ENCODING => “”, // handle all encodings         CURLOPT_USERAGENT … Read more

Amazon E-Commerce Service or ECS

Amazon’s ECS is very good service for accessing Amazon’s product database. We can register to this web service quickly, It provides a free access key to access Amazon Store. Amazon have rich set of web services 🙂 Web Services are used to access DATA over cross platform environments. Using ECS-driven websites and applications, we can earn … Read more

Block badAgents on site

PHP is very powerful language to block bad agents. Below is the code to avoid webspider using PHP in_array(). <?php $badAgents = array(‘Acunetix Web Vulnerability Scanner’, ‘Bot\ mailto:[email protected]’, ‘ChinaClaw’, ‘Custo’, ‘DISCo’, ‘Download\ Demon’, ‘eCatch’, ‘EirGrabber’, ‘EmailSiphon’, ‘EmailWolf’, ‘Express\ WebPictures’, ‘ExtractorPro’, ‘EyeNetIE’, ‘FlashGet’, ‘GetRight’, ‘GetWeb!’, ‘Go!Zilla’, ‘Go-Ahead-Got-It’, ‘GrabNet’, ‘Grafula’, ‘HMView’, ‘HTTrack’, ‘Image\ Stripper’, ‘Image\ Sucker’, ‘Indy\ Library’, ‘InterGET’, ‘Internet\ Ninja’, ‘JetCar’, ‘JOC\ Web\ Spider’, ‘larbin’, ‘LeechFTP’, ‘Mass\ Downloader’, ‘MIDown\ tool’, ‘Mister\ PiX’, … Read more

a2zVideoAPI WordPress Plugin

a2zVideoAPI WordPress Plugin: https://www.svnlabs.com/blogs/a2zVideoAPI.zip http://wordpress.org/extend/plugins/a2zvideoapi/ Plugin Name: a2zVideoAPI widget Plugin URI: http://svnlabs.com/a2zvideoapi/ Description: a2zVideoAPI allows you to add a sidebar widget to show video from various sites including youtube, dailymotion, google, vimeo, metacafe, blip.tv, hulu, 5min, myspace, ehow, break, flickr etc. Author: Sandeep Verma Version: 0.7 Author URI: https://www.svnlabs.com/blogs Other: Curl must be on your … Read more