added sample code for retreival using php