Trial code for using REST n PHP