added php sample code