PHP code, especially for tasks such as registering , should never be hosted on the client side or embedded in the front-end application, but instead hosted on the server side, hidden from the user, for the security of your database / application. If you only plan to host your php with your Android application for the case, you need to test it and, ultimately, not have access to the server, then you can consider using the Google App Engine , since it allows you to emulate the server locally without the need for a server . Here you will find information about Amazon RDS .
You can put php in the same directory where you put your index.html file, i.e. in the root public folder of your domain. To upload it to Amazon, you can use cPanel or Filezilla or any other panel you want, among the options available to Amazon for its users.
In the event that Amazon does not provide a place to host your php, you can get a host that offers you static IP access to it, a carefully remembered URL for free . This is very useful especially for testing. However, if you decide at some point to register a personalized domain name, there are other good options for comparison.
Avanz
source share