时间:2021-07-01 10:21:17 帮助过:26人阅读
01-02 10:49:16 | 2 | fopen() [function.fopen]: Filename cannot be empty |
01-02 10:49:16 | 2 | fgetcsv() expects parameter 1 to be resource, boolean given |
01-02 10:49:16 | 2 | fclose() expects parameter 1 to be resource, boolean given |
分享到:
$file=$_FILES["file"];
$file_type = substr(strstr($file['name'],'.'),1);
setlocale(LC_ALL, 'zh_CN');
$row=1;
$handle = fopen($file['tmp_name'],"r");
while ($data = fgetcsv($handle,1000,',')){
print_r($data);
$row++;
}