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 [...]
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 [...]
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> [...]









