-
PHP里Libevent HTTP客户端实现程序
[PHP教程] 2022-02-23 15:02:00 106人阅读
下面来给各位介绍一段用php实现的Libevent HTTP客户端实现程序,有需要了解的朋友可与小编一起来学习一下. php Libevent HTTP,代码如下: ?php //请求完成回调 function _request_handler($req, $base) { global $pend...[详细]
-
迅速找出php中可能导致cpu飙升问题的代码行
[PHP教程] 2022-02-23 15:01:23 178人阅读
cpu飙升占100%不但是与数据库或硬盘的io输入有关,但程序也是一个非常重要的地方了,今天小编找到一个代码可以测试你的php引起cpu占100%问题的解决办法,有兴趣的朋友可进入参考. 用cpu接近100%时,你如何找到导致cpu飙...[详细]
-
php异步多线程swoole运用实例程序
[PHP教程] 2022-02-23 15:01:02 170人阅读
swoole重新定义PHP语言的高性能网络通信框架,提供了PHP语言的异步多线程服务了,下面我们为了证实它就来做一个例子测试一下吧. Swoole 提供了PHP语言的异步多线程服务器,异步TCP/UDP网络客户端,异步MySQL,数据库连接...[详细]
-
PHP产生MySQL数据表结构程序代码
[PHP教程] 2022-02-23 15:00:36 52人阅读
用过dedecms系统的朋友都会看到在后台的数据表管理中我们可以在后台看到表的数据表结构及字符长度了,下面我也整理了一个PHP生成MySQL数据字典数据表结构例子,大家一起来看看. 程序代码如下: ?php /** * 生成mysql数...[详细]
-
PHPexcel生成复杂的报表表头类示例
[PHP教程] 2022-02-23 15:00:01 99人阅读
PHPexcel是一款非常不错的excel表格操作php插件了,我们通常用它来生成excel文档或数据转换并导入到mysql数据库中,下面介绍的是PHPexcel生成复杂的报表表头类例子. 以前一直有需求,能把Execl里面的数据导入数据库,并...[详细]
-
phpexcel导出与读取excel的经典示例
[PHP教程] 2022-02-23 14:59:24 56人阅读
phpexcel可以让开发者方便快捷的来操作xls文件了,我们下文来整理几个关于phpexcel对数据导入与导出例子. PHPExcel读取excel文件,实例代码如下: require_once(include/common.inc.php); require_once(ROOTPATH . incl...[详细]
-
PHP连通MSSQL2008 2005数据库 SQLSRV 配置
[PHP教程] 2022-02-23 14:58:49 124人阅读
PHP连接MSSQL2008/2005数据库与以往的连接mssql2000是不一样的,连接mssql2008/2005是需要自己添加PHP对MSSQL连接的驱动扩展了,而我们常用的hp.ini中的extension=php_mssql.dll扩展只适用连接于MSSQL2000哦,下面我们...[详细]
-
php memcache处理缓存数据实例
[PHP教程] 2022-02-23 14:55:40 124人阅读
memcache是一个分布式的数据处理插件,我们可以利用它来提高服务器性能,特别是对数据库的操作用了memcache它之后会有非常大的提升哦,下面我来给各位介绍一个php memcache使用例子. 一般来说,如果并发量不大的情况,使...[详细]
-
用PHP在服务端合并多个JS与CSS文件减少HTTP请求
[PHP教程] 2022-02-23 14:55:18 135人阅读
在Web,js,css文件会越多,那么对就增加了http请求数,解决该问题的一个好的方法就是合并js,css文件,下面就简单介绍一个方法,十分简单,本文以实现原理为主,代码可能会有出入,如果大家直接用请调试一下. HTML代码如下: l...[详细]
-
PHP+AJAX完成的国际域名查询系统开发实例教程
[PHP教程] 2022-02-23 14:53:24 183人阅读
很多站长都兼职卖域名,赚点小外块,不要鄙视,都希望能够在自己的网站上实现域名查询,看看域名是否可以购卖,现在我们就来讲讲用PHP+AJAX如何实现国际域名查询系统. PHP+AJAX 域名查询预备知识 本查询系统利用 PHP 和 J...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]