duanmen8491 2014-07-17 22:17
浏览 221

在Android Webview中使用PHP

I created an app using PHP and it runs fine using the HTTP address in the Webview object. When using locally, the PHP script does not work (putting all files in assets). Is there a way for PHP pages to be loaded locally but to define the actual PHP part to be used at the webserver? To clarify, all HTML content of the .php page will be used locally but when needed PHP code it will connect the webserver.

Thanks!

  • 写回答

1条回答 默认 最新

  • dongmin4990 2014-07-17 23:02
    关注

    If you use a php content you should have Internet connection because php codes work on server side not local devices(some apk's install mysql+php in your android device but if you want to publish your apk this way wont work in all devices on local.)

    Also if you want to make an offline project why dont you use javascript "To clarify, all HTML content of the .php page will be used locally"

    Here you can download phpforandroid.apk to work on the local Click Here

    评论

报告相同问题?

悬赏问题

  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)
  • ¥15 keil里为什么main.c定义的函数在it.c调用不了
  • ¥50 切换TabTip键盘的输入法
  • ¥15 可否在不同线程中调用封装数据库操作的类
  • ¥15 微带串馈天线阵列每个阵元宽度计算
  • ¥15 keil的map文件中Image component sizes各项意思