存储在服务器上运行PHP脚本? [英] Run php script stored in the server?

查看:175
本文介绍了存储在服务器上运行PHP脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有存储在WAMP服务器中的PHP脚本,并希望我的应用程序执行它执行从服务器一些图像treatement则服务器将结果发送到Android手机。 这是可能执行?并请如果是的话你能不能给一些提示?

I have a php script stored in Wamp server, and want that my application execute it to perform some image treatement from server then the server send the result to the Android phone. Is that possible to perform ? And please if so can you give some hints?

非常感谢你。

推荐答案

只要执行HTTP GET请求:

Simply perform HTTP get request:

String url = "http://your.domain.com/path/to/file.php";
HttpClient client = new DefaultHttpClient();

try {
  client.execute(new HttpGet(url));
} catch(IOException e) {
  //do something here
}

这篇关于存储在服务器上运行PHP脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆