Get PID from FBID

On June 12, 2011, in Facebook, Tricks, by Sandeep Verma

Hits: 1508  <?php include(“lib/facebook.php”); $APPLICATION_ID = “xxxxxxxxxxxxxxx”; $APPLICATION_SECRET = “yyyyyyyyyyyyyyyyyyyyyyyyyyyy”; $facebook = new Facebook(array( ‘appId’ => $APPLICATION_ID, ‘secret’ => $APPLICATION_SECRET, ‘cookie’ => true )); $fbid=”xxxxxxxxxx”; $fql = “SELECT pid FROM photo WHERE object_id=”.$fbid; $param = array(  ’method’ => ‘fql.query’,  ’query’ => $fql,  ’callback’ => ” ); $fqlResult = $facebook->api($param); $fql = “SELECT src_small, src_big FROM photo [...]

Installing Apache, MySQL, PHP in CentOS 5.5 on Rackspace Cloud

On June 9, 2011, in CentOS, Concentrate, Imagine, LAMP, Launch, Linux, Mysql, Observe, Open Source, PHP, Rackspace Cloud, Tricks, by Sandeep Verma

Hits: 4733  Most of cloud users prefer Rackspace Cloud for its better service and cost effectiveness… All commands are performed as root to install Apache, MySQL, PHP in CentOS 5.5 Server on Rackspace Cloud. Install Apache # sudo yum install httpd mod_ssl Configure ServerName # sudo /etc/init.d/httpd start Remove Error Starting httpd: httpd: Could not reliably [...]

Tagged with:  

The best way to consume API

On June 7, 2011, in Concentrate, CURL, Imagine, LAMP, Launch, Observe, Open Source, PHP, Shared Library, Tricks, Web Services, by Sandeep Verma

Hits: 665      <?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> [...]

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...