Slim function in php

Slim is a simple powerful PHP 5 framework to create RESTful web applications. The Slim micro framework is a template language whose goal is reduce the syntax to the essential parts without becoming cryptic. <?php require ‘Slim/Slim.php’; Slim::init(); Slim::get(‘/hello/:name’, function ($name) { echo “Hello $name”; }); Slim::run(); ?> How to install Slim

iWishYou – My Best Wishes with MP3 on Facebook

iWishYou is a facebook application where you can share Wishes / Greeting as songs for friend’s birthday, events, daily wishes. A wish is a hope or desire for something, iWishYou attract users with nice share on FB Walls. It is the better way to express your emotions to your friends & circle.

Theory About Bulk Emails

Electronic mail (e-mail), is a method of exchanging digital messages from an author to one or more recipients. Modern email operates across the Internet or other computer networks. An email message consists of three components, the message envelope, the message header, and the message body. The message header contains control information, including, minimally, an originator’s … Read more

I have Cloud Power

Amazon Web Services AWS is an IaaS platform and provides maximum freedom for developers in choice of the OS, middleware and development environment. Google App Engine + Google Apps Google App Engine is used as SaaS, it provides free limited resources (disk space and bandwidth), GAE supports programming languages – PHP, Python and Java. Facebook … Read more

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

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 determine … 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