10 2013 档案
摘要:PHP读取excel文件 require("Classes/PHPExcel.php"); require("Classes/PHPExcel/IOFactory.php"); require("Classes/PHPExcel/Reader/Excel5.php"); require("Classes/PHPExcel/Reader/Excel2007.php"); $filePath = "text.xls" ; $PHPExcel = new PHPExcel() ; $PHPReader
阅读全文
摘要:从 PHP 4.2.0 开始,PHP 将随文件信息数组一起返回一个对应的错误代码。该代码可以在文件上传时生成的文件数组中的 error 字段中被找到,也就是 $_FILES['userfile']['error']。UPLOAD_ERR_OK其值为 0,没有错误发生,文件上传成功。UPLOAD_ERR_INI_SIZE其值为 1,上传的文件超过了 php.ini 中 upload_max_filesize 选项限制的值。UPLOAD_ERR_FORM_SIZE其值为 2,上传文件的大小超过了 HTML 表单中 MAX_FILE_SIZE 选项指定的值。UPLOA
阅读全文