-
解决FastCGI 进程超过了配置的活动超时时限的问
[PHP教程] 2022-07-22 12:18:04 160人阅读
近日,需要满足测试需求,进行大数据并发测试时,报出【HTTP 错误 500.0 - Internal Server Error E:/PHP/php-cgi.exe - FastCGI 进程超过了配置的活动超时时限】 解决办法: IIS7-FastCGI设置-双击php-cgi.exe-活动...[详细]
-
Smarty foreach控制循环次数的实现详解
[PHP教程] 2022-07-22 12:17:15 170人阅读
在smarty中数组是经常会用到的,循环遍历数组用 section 或者 foreach ,如何得到数组长度或者判断一个数组个数呢 1.可以用{$array| count} 来试试。 2. 复制代码 代码如下: {foreach from=$variable key=key name=n...[详细]
-
PHP中使用协同程序实现合作多任务第1 2页
[PHP教程] 2022-07-22 11:52:11 156人阅读
PHP5.5一个比较好的新功能是实现对生成器和协同程序的支持。对于生成器,PHP的文档和各种其他的博客文章(就像这一个或这一个)已经有了非常详细的讲解。协同程序相对受到的关注就少了,所以协同程序虽然有很强大的...[详细]
-
分析php防止form重复提交的方法
[PHP教程] 2022-07-20 12:51:29 62人阅读
本篇文章是对php防止form重复提交的方法进行了详细的分析介绍,需要的朋友参考下 ************************************************************* 用户提交表单时可能因为网速的原因,或者网页被恶意刷新,致使同一...[详细]
-
php5.3 注意事项介绍
[PHP教程] 2022-07-20 12:50:26 54人阅读
php5.3 新特性 1.支持命名空间(namespace) 5.3以前 复制代码 代码如下: ?php class Zend_Db_Table_Select { //表示当前这个类文件位于Zend/Db/Table下 } 5.3 复制代码 代码如下: ?php namespace Zend/Db/Table cla...[详细]
-
计算php页面运行时间的函数一览
[PHP教程] 2022-07-20 12:49:57 116人阅读
本篇文章是对计算php页面运行时间的函数进行了详细的分析介绍,需要的朋友参考下 一个计算php页面运行时间的函数。 复制代码 代码如下:?php/*@ 计算php程序运行时间*/function microtime_float(){list($usec, $sec) ...[详细]
-
有关php循环跳出的问题
[PHP教程] 2022-07-20 12:48:36 57人阅读
本篇文章是对php中循环跳出的问题进行了详细的分析介绍,需要的朋友参考下 复制代码 代码如下: //php当前循环为1,循环由里到外依次递增,break默认为1,例如跳出第2层循环 echo 1层循环br/; break 2; //跳出第2层循...[详细]
-
深入分析PHP中的伪多线程与多进程
[PHP教程] 2022-07-20 12:47:59 100人阅读
本篇文章是对PHP中的(伪)多线程与多进程进行了详细的分析介绍,需要的朋友参考下 (伪)多线程:借助外力 利用WEB服务器本身的多线程来处理,从WEB服务器多次调用我们需要实现多线程的程序。 QUOTE: 我们知道PHP本身是...[详细]
-
php 比较常用算法和时间复杂度
[PHP教程] 2022-07-20 12:46:58 57人阅读
本篇文章是对php中的常用算法以及时间复杂度进行了详细的分析介绍,需要的朋友参考下 按数量级递增排列,常见的时间复杂度有:常数阶O(1),对数阶O(log2n),线性阶O(n),线性对数阶O(nlog2n),平方阶O(n2),立方阶O(n3) ...[详细]
-
简析php插件 HTMLPurifier HTML解析器
[PHP教程] 2022-07-20 12:46:06 125人阅读
本篇文章是对php插件 HTMLPurifier HTML解析器进行了详细的分析介绍,需要的朋友参考下 第一种方式 复制代码 代码如下: ?php require_once HTMLPurifier.auto.php; $config = HTMLPurifier_Config::createDefault();...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]