Incoming text message upload on webserver android

I want to get all incoming messages in web-server on php file by android phone java code, without third party app.

So please give a solution How I Do it by android java coding.