$_POST 只有Coentent-Type的值为application/x-www.form-urlencoded和multipart/form-data两种类型时,$_POST才能获取到数据。 $GLOBALS['HTTP_RAW_POST_DATA'] 如果php无法识别Coentent-Ty Read More
posted @ 2018-09-29 12:32 纭卿殇 Views(505) Comments(0) Diggs(0) Edit
假设文件上传字段的名称file_name,则: $_FILES['file_name']['error']有以下几种类型 1、UPLOAD_ERR_OK 其值为 0,没有错误发生,文件上传成功。 2、UPLOAD_ERR_INI_SIZE 其值为 1,上传的文件超过了 php.ini 中 uploa Read More
posted @ 2018-09-29 12:28 纭卿殇 Views(1011) Comments(0) Diggs(0) Edit