I am developing the android application. which is going to update the content from android to the web(php webservice). Can anyone give me the sample code for my reference.
the simpliest way is to use Sockets. :) if there are rest service you can use internal apache library - DefaultClient...
Sockets
DefaultClient