js
风口上的猪2015
这个作者很懒,什么都没留下…
展开
-
PHP读取文件内容的五种方式
-----第一种方法-----fread()--------<?php$file_path = "test.txt";if(file_exists($file_path)){$fp = fopen($file_path,"r");$str = fread($fp,filesize($file_path));//指定读取大小,这里把整个文件内容读取出来echo $str = str_replace("\r\n","<br />",$str);fclose($fp);}转载 2020-12-28 16:13:47 · 656 阅读 · 0 评论 -
js限制input file文件上传的大小和类型
<form action="后端接口" method="post" id="uploads"> <div class="fileCon"> <input input="file" id="import" name="attachmentNew" οnchange="fileChange(this);"/> <g:actionSubmit id="uploadfile" value="上传" action="_action_file" ...转载 2020-11-19 22:32:32 · 1149 阅读 · 0 评论