-
PHP怎么切割excel大文件
[PHP教程] 2022-09-12 09:21:19 148人阅读
本篇文章主要讲述的是利用phpspreadsheet切割excel大文件,具有一定的参考价值,感兴趣的朋友可以了解一下,希望对你有所启发。 利用phpspreadsheet可以轻松的解析excel文件,但是phpspreadsheet的内存消耗也是比较...[详细]
-
php简单创建zip压缩文件的技巧
[PHP教程] 2022-09-12 09:20:15 163人阅读
本文实例讲述了php简单创建zip压缩文件的方法。分享给大家供大家参考,具体如下: /* creates a compressed zip file */ function create_zip($files = array(),$destination = ,$overwrite = false) { //if the zip...[详细]
-
PHP采用自定义函数实现遍历目录下所有文件的技
[PHP教程] 2022-09-07 09:53:49 90人阅读
这篇文章主要介绍了PHP采用自定义函数实现遍历目录下所有文件的方法,是PHP程序开发中常见的功能,需要的朋友可以参考下。 目录的遍历是PHP程序设计中经常会用到的一个功能,很多PHP项目都有这一功能模块。今天本文就...[详细]
-
php递归删除目录下的文件但保留的实例介绍
[PHP教程] 2022-09-07 09:53:20 109人阅读
这篇文章主要介绍了php递归删除目录下的文件但保留的实例分享,需要的朋友可以参考下。 用php程序删除目录和文件比到ftp删除有很多优势。首先进ftp就比较麻烦,然后删除大量文件的时候ftp删除很慢,还有就是程序只想...[详细]
-
PHP读取大文件的类SplFileObject使用详解
[PHP教程] 2022-09-07 09:52:34 197人阅读
一般读取文件我们用fopen 或者 file_get_contents ,前者可以循环读取,后者可以一次性读取,但都是将文件内容一次性加载来操作。 如果加载的文件特别大时,如几百M,上G时,这时性能就降下来了,那么PHP里有没有对大...[详细]
-
php无限遍历文件夹示例介绍
[PHP教程] 2022-09-07 09:51:58 78人阅读
这篇文章主要介绍了php无限遍历文件夹示例,需要的朋友可以参考下。 最近在能php目录操作,搞了一个目录无限遍历: 使用的函数有: isset()判断某个变量是否定义 chdir() 将当前目录改变为指定的目录。 opendi()打开...[详细]
-
php生成excel文件的简单技巧
[PHP教程] 2022-09-07 09:51:24 75人阅读
生成excel文件,最简单的莫过于把数据库的数据导入到excel就行了,下面有个不错的示例,大家可以参考下。 生成excel 当然使用的是 phpExcel这个类库了,可是它太麻烦了,对于只要简单生成来说有点不值得。 什么叫简单,...[详细]
-
php读取文件内容的三种可行方法示例详解
[PHP教程] 2022-09-07 09:50:54 177人阅读
这篇文章主要介绍了php读取文件内容的三种方法,需要的朋友可以参考下 php读取文件内容的三种方法: //**************第一种读取方式***************************** header(content-type:text/html;charset=utf-8); //...[详细]
-
php文件上传的例子及参数介绍
[PHP教程] 2022-09-07 09:50:19 176人阅读
这篇文章主要介绍了php文件上传的例子及参数,有需要的朋友可以参考一下 1.上传表单 upload.html 程序代码如下: form enctype=multipart/form-data action=upload.php method=post input type=hidden name=max_file_...[详细]
-
php打开远程文件的方法和风险及处理方法
[PHP教程] 2022-09-07 09:49:46 161人阅读
本文讲的是php打开远程文件的使用方法,还有使用风险和解决方法。 PHP有一个配置选项叫allow_url_fopen,该选项默认是有效的。它允许你指向许多类型的资源,并像本地文件一样处理。例如,通过读取URL你可以取得某一...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]