且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

存储在服务器上运行PHP脚本?

更新时间:2023-02-22 20:51:00

只要执行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
}