2013年1月9日
摘要: 在这里operate.php相当于一个接口,其中get_user_list 是一个API(获取用户列表),讲求返回的数据类型为JSON格式。你只需要在你PHP代码中执行这条链接他就会返回。GET方式的直接使用$file_contents = file_get_content('http://localhost/operate.php?act=get_user_list&type=json')POST方式得用下面的(需要开启PHP curl支持)。$url = 'http://localhost/operate.php?act=get_user_list& 阅读全文
posted @ 2013-01-09 16:45 douqiumiao 阅读(513) 评论(0) 推荐(0) 编辑