[PHP]curl模拟表单上传文件
摘要:
直接贴代码 1 /** 2 * php curl 模拟表单上传单个文件 3 * 4 * @param type $file 5 * @param type $file_field 6 * @param type $url 7 * @param type $type 8 * @param type $post_data 9 * @return type 10 */11 function post_file($file, $url, $file_field='file', $type='', $post_data=array(), $timeout=5) {12 i 阅读全文
posted @ 2012-03-15 10:44 _seco 阅读(537) 评论(0) 推荐(0) 编辑