-
php里解压压缩文件实例源码
[PHP教程] 2022-02-10 14:45:07 132人阅读
仔细的研究了一下,原来用php写的解压程序效率比想象的还是高很多的,既然这么好,干脆再优化一下后用到自己后台中,虽然现在大部分空间的控制面板中有压缩和解压这个功能,但是毕竟有时候有些麻烦. 做这个之前,没有接触...[详细]
-
php把pdf生成png缩略图的实例程序
[PHP教程] 2022-02-10 14:44:43 138人阅读
需要安装imagick及其php扩展,一共有二个函数,都是从网上摘下来的,还没测试,这个方案应该可行,可以简单的仿照在线文档功能,有机会在项目中实践一下. 第一种,代码如下: /** * PDF2PNG * @param $pdf 待处理的PDF文件 *...[详细]
-
PHP多线程 pthreads 和自动加载BUG问题
[PHP教程] 2022-02-10 14:44:15 113人阅读
php多线程功能是php5.3才真正的支持了,下面我就尝试了pthreads功能的一个测试同时也发测试时发现了一些bug了,具体bug原因还无法解决看其它朋友有经验吗. 需要注意的是,如果尝试用数组在线程间交换数据,你会失望的,因...[详细]
-
php多线程抓取信息测试示例
[PHP教程] 2022-02-10 14:43:57 123人阅读
只在php5.3以后的版本才真正的可以使用多线程序了,以前都是假的curl实现的多线程工作,下面我来给各位介绍几个多线程抓取信息测试例子,希望对各位会有帮助. PHP 5.3 以上版本,使用pthreads PHP扩展,可以使PHP真正地支...[详细]
-
php里Curl函数常用的两个例子,登陆 soap
[PHP教程] 2022-02-10 14:43:31 148人阅读
curl在php中在性能方法要比较其它相同功能函数要高得多,下面我给大家介绍我自己常用的函数一个使用PHP curl 来做登陆后的抓取时使用,一个使用PHP curl来实现soap;我想你会感兴趣. 例子,模拟登陆,代码如下: /** * 模...[详细]
-
php完成memcache缓存实例详解
[PHP教程] 2022-02-10 14:43:06 120人阅读
一篇用php实现memcache缓存实例详解,这里利用了很多我们以前可能很少使用到的可用扩展,在php中共享内存也一样,使用一些共享的函数,无需安装任何扩展,开发人员就能够轻松操作内存段. 概述:共享内存是一种在相同机器中...[详细]
-
php file_get_contents和curl性能比较
[PHP教程] 2022-02-10 14:42:31 123人阅读
在php中如果不仔细的去分析性能会发现file_get_contents与curl两个同很多共同点的,他们都可以采集文件打开文件,但是如果仔细一对比会发现很多不同点,下面我们一起来看看file_get_contents与curl区别. PHP中fopen,fi...[详细]
-
PHP中运用PHPExcel导出Excel示例
[PHP教程] 2022-02-10 14:41:48 127人阅读
在php中导出excel有一种最简单的方法就是导出csv文件,但要做到真正的导出excel文件我们可以借助于PHPExcel插件来实现. PHPExcel是个很强大的PHP操作Excel的类库,但是对于简单的将数据用PHP 导出 Excel来说这有点显得...[详细]
-
php中nusoap使用java axis2发布的webservice
[PHP教程] 2022-02-10 14:41:20 132人阅读
调用webservice:开发环境是:Eclipse3.6 (java IDE)+ JDK 1.6 + Tomcat 7.0 + Axis2 1.6 + php 5.2.14 (IDE为eclipse-php-helios-SR1-win32.zip)+ apache2.2.15,这些软件随时都在更新,请读者谷歌百度一下到官网下载...[详细]
-
运用php创建word文档的例子
[PHP教程] 2022-02-10 14:40:56 106人阅读
下面来看一个使用php创建word文档的例子的,创建word文件处理类非常的简单,我们只要加载起来然后创建类再生成就可以了,例子代码如下: ?php include(word.php); $word=new word; $word-start(); ? 直接用php创建word文...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]