-
PHP研发注意事项总结
[PHP教程] 2022-07-25 13:16:28 54人阅读
PHP开发注意事项总结 1.使用内嵌的HTML代码,而不是PHP的echo语句。 因为PHP是一门嵌入式Web编程语言,可以将HTML代码和PHP代码相互嵌入。但是很多程序员担心在HTML代码中过多的使用嵌入PHP代码会多次调用PHP解释器...[详细]
-
PHP strtotime函数用法实现原理和源码剖析
[PHP教程] 2022-07-25 13:15:22 52人阅读
这篇文章主要介绍了PHP strtotime函数用法、实现原理和源码分析,本文讲解了strtotime函数的一些用法、strtotime函数的实现基本原理、strtotime(-1 month)求值失败的原因等内容,需要的朋友可以参考下 源码位置:/ext/...[详细]
-
简谈php命令行用法
[PHP教程] 2022-07-25 13:13:56 107人阅读
这篇文章主要介绍了浅谈php命令行用法的相关资料,需要的朋友可以参考下 Php是一个非常流行的web服务端脚本语言。其实,php不仅仅可以在web服务器中充当重要角色。在命令行一样可以执行。 本文中,笔者为各位介绍下ph...[详细]
-
php curl登陆qq后获取用户信息时证书发生错误
[PHP教程] 2022-07-25 13:13:15 134人阅读
这篇文章主要介绍了php curl登陆qq后获取用户信息时证书错误,需要的朋友可以参考下 今晚开放ecmall商城的QQ登陆功能,在回调时产生错误,file_get_contents函数执行时,没有抓取到正确的信息,于是改用curl,但是提...[详细]
-
curl 模拟登录 实现教程详情
[PHP教程] 2022-07-25 13:12:19 120人阅读
模拟登陆 126邮箱 ,人人网等 根据需要自行修改哈,代码如下 //模拟登陆 验证码的网站,首先获取验证码图片的cookie define(SCRIPT_ROOT,dirname(__FILE__)./); $cookieFile = SCRIPT_ROOT.cookie.tmp; $res = curl_...[详细]
-
php生成Excel文件 实现代码介绍
[PHP教程] 2022-07-25 13:11:27 169人阅读
p有段日子没有更新博客了,生怕被百度遗忘啊,biu~biu~.最近有个项目需要统计网站的url和title,保存在excel里面,下面是具体的代码/p pre class=php name=code!--p //php生成excel报表,是通过发送header()头信息完成...[详细]
-
PHP-redis命令文档介绍
[PHP教程] 2022-07-25 13:09:45 70人阅读
Redis本质上一个Key/Value数据库,与Memcached类似的NoSQL型数据库,但是他的数据可以持久化的保存在磁盘上,解决了服务重启后数据不丢失的问题,它的值可以是string(字符串)、list(列表)、sets(集合)或者是ordered ...[详细]
-
PHP变量引用&函数引用和对象采用
[PHP教程] 2022-07-25 13:08:52 116人阅读
PHP变量引用()、函数引用和对象引用 1.函数的引用返回 function test(){static $b=0;//申明一个静态变量$b=$b+1;echo $b;return $b;}$a=test();//这条语句会输出 $b的值 为1$a=5;$a=test();//这条语句会输出 $b的值 ...[详细]
-
PHP中转义正则表达式字符preg_quote
[PHP教程] 2022-07-25 13:07:20 121人阅读
preg_quote 转义正则表达式字符 string preg_quote ( string $str [, string $delimiter = NULL ] ) preg_quote()需要参数str并向其中 每个正则表达式语法中的字符前增加一个反斜线. 这通常用于你有一些运行时字符串...[详细]
-
PHP中设计模式之单例模式
[PHP教程] 2022-07-25 13:06:10 166人阅读
单例模式 :使得类的一个对象成为系统中的唯一实例. PHP中使用单例模式最常见的就是数据库操作了。避免在系统中有多个连接数据库的操作,浪费系统资源的现象,就可以使用单例模式。每次对数据库操作都使用一个实例。 ...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]