日期:2014-05-16 浏览次数:20486 次
<?php exit;?>01-02 10:49:16 | 2 | fopen() [<a href='function.fopen'>function.fopen</a>]: Filename cannot be empty |
<?php exit;?>01-02 10:49:16 | 2 | fgetcsv() expects parameter 1 to be resource, boolean given |
<?php exit;?>01-02 10:49:16 | 2 | fclose() expects parameter 1 to be resource, boolean given |
<form name="myform" id="myform" action="index.php?m=price&c=index&a=insertalldo" method="post" enctype="multipart/form-data"><input name="pc_hash" type="hidden" value="4GxoOl"></form>
$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++;
}