android 应用程序的 php 文件的路径(在 server/CPanel 上)是什么?

What will be the path(on server/CPanel) of php file for android application?

我制作了一个本地主机应用程序,用于在 android 中获取信息并将其保存到数据库中。 php 文件在本地主机 (xampp) 上的路径是

private static String url_index = "http://10.0.2.2/prince/select_city.php";

android 应用程序的新路径 private static String url_index 是什么,因为我已经在服务器上购买了域和 space(假设 www.android.com)并且我上传了文件到 public_html 到我的服务器(CPanel)

private static String url_index = "new path after uploading the file on CPanel";

请帮帮我

如果您将文件上传到 public_html 目录,它将在您的 url 的根目录中找到。所以在你的情况下它将是:

http://www.android.com/select_city.php