give live to php code
some fixes in the demo code
Merge pull request #4 from cordoval/patch-2

give live to php code