douzhangli9563 2014-10-26 08:44
浏览 61

将Android应用程序连接到MySQL数据库[关闭]

I've designed an android app connected to remote MySQL database using PHP for the purpose of inserting data from the app to the database.

Currently I put PHP file in a local server XAMPP but in this case the server has to be always available so the application could work correctly.

Is there any other places to put or upload the PHP file to be online so anyone can test the application without the need for my local Server to be available.

Note that I can not upload it on the same MySQL database server because it already designed before.

  • 写回答

3条回答 默认 最新

  • dpb_4431 2014-10-26 08:52
    关注

    You can use WAMP sever on your system(PC or laptop) and put it online as shown. Just you have to do is to replace the IP from 'localhost' to 'xxx.xx.xx.xx' in your database connection file. enter image description here

    However, if you want your server available for 24 * 7, you can use some free web hosting services like 000webhost.com (and many others. search on google). They give some free space for hosting sites and apps with back end having PHP.

    评论

报告相同问题?

悬赏问题

  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥15 帮我写一个c++工程