-
PHP导出EXCEL快速开发攻略PHPEXCEL的使用详解
[PHP教程] 2022-07-20 12:17:42 133人阅读
PHP导出EXCEL快速开发指南 phpexcel有专有的开发文档,详细操作请参考其开发文档,本文档只是对其在使用上作了优化整合,便于在新项目中快速开发。 phpexcel生成文件同样有两种方式,一种方式为直接输出,一种方式为...[详细]
-
PHP Cookie的用法教程详解
[PHP教程] 2022-07-20 12:16:35 190人阅读
PHP Cookie的使用教程详解字体 网友1、设置CookiePHP用SetCookie函数来设置Cookie。必须注意的一点是:Cookie是HTTP协议头的一部分 ,用于浏览器和服务器之间传递信息,所以必须 在任何属于HTML文件本身的内容输出之...[详细]
-
深入PHP与浏览器缓存的解析
[PHP教程] 2022-07-20 12:16:04 73人阅读
我们往往在服务器上对缓存设置进行各种优化方案,但是我们却很少注意到客户端缓存,准确的说是浏览器的缓存机制。 其实每种浏览器都有缓存策略,会暂时将每一个浏览过的文件缓存在一个特殊的文件夹里。我们就可以在...[详细]
-
PHP判断图片格式的七种方法小结
[PHP教程] 2022-07-20 12:14:40 92人阅读
使用php判断文件图片的格式 复制代码 代码如下:www.CuoXIn.com ?php $imgurl = http://www.jb51.net/images/logo.gif; //方法1 echo $ext = strrchr($imgurl,.); echo hr; //方法2 echo $ext1 = substr($imgurl,strr...[详细]
-
基于session_unset与session_destroy的区别详解
[PHP教程] 2022-07-20 12:14:13 96人阅读
session_unset() 释放当前在内存中已经创建的所有$_SESSION变量,但不删除session文件以及不释放对应的sessionid session_destroy() 删除当前用户对应的session文件以及释放sessionid,内存中的$_SESSION变量内容依...[详细]
-
基于PHP CURL获取邮箱地址的详解
[PHP教程] 2022-07-20 12:13:23 174人阅读
CURL可谓居家旅行必备之杀人良药,为何如此形容?就是因为他好用方便能实现页面抓取模拟登录采集等一系列功能。 记得第一次接触CURL的时候是要实现完成从邮箱用户列表的抓...[详细]
-
深入php函数file_get_contents超时处理的方法详
[PHP教程] 2022-07-20 12:12:55 182人阅读
深入php函数file_get_contents超时处理的方法详解 一.增加超时的时间限制 这里需要注意:set_time_limit只是设置你的PHP程序的超时时间,而不是file_get_contents函数读取URL的超时时间。真正的修改 file_get_conten...[详细]
-
PHP CLI模式下的多进程应用分析
[PHP教程] 2022-07-20 12:12:11 95人阅读
PHP在很多时候不适合做常驻的SHELL进程, 他没有专门的gc例程, 也没有有效的内存管理途径. 所以如果用PHP做常驻SHELL, 你会经常被内存耗尽导致abort而unhappy. 而且, 如果输入数据非法, 而脚本没有检测, 导致abort, ...[详细]
-
基于php-fpm 参数的深入理解
[PHP教程] 2022-07-20 12:11:43 158人阅读
ps aux |grep php-fpm |more 查看php-fpm总数 php-fpm.conf 配置 pid string PID文件的位置. 默认为空. error_log string 错误日志的位置. 默认: 安装路径#INSTALL_PREFIX#/log/php-fpm.log. log_level string 错误...[详细]
-
php-cli简介不会Shell语言一样用Shell
[PHP教程] 2022-07-20 12:09:27 92人阅读
php-cli简介(不会Shell语言一样用Shell) 1.基础知识 1.1 什么是Shell编程? 在 Unix 中,shell 可不是简单的命令解释器(典型的有 Windows 中的 DOS ),而是一个全功能的编程环境。Shell 是操作系统的一部分,用来与...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]