This is a working php example : source code is here phpexample.php